Sha256: c4bd75bac6ab7c2a600c7e2da424e4c05478255636ccbd517d313c805b3a7632

Contents?: true

Size: 1.48 KB

Versions: 33

Compression:

Stored size: 1.48 KB

Contents

<!-- A `<textarea>` input -->
<def tag="input" for="text" attrs="name">
  <%= text_area_tag(name, this, deunderscore_attributes(attributes)) %>
</def>

<!-- A checkbox plus a hidden-field. The hidden field trick comes from Rails - it means that when the checkbox is not checked, the parameter name is still submitted, with a '0' value (the value is '1' when the checkbox is checked) -->
<def tag="input" for="boolean" attrs="name">
  <%= unless attributes[:disabled]
        cb_tag = check_box_tag(name, '1', this, deunderscore_attributes(attributes))
        cb_hidden_tag = hidden_field_tag(name, '0', :id => nil)
        cb_hidden_tag + cb_tag
      end %>
</def>

<!-- A password input - `<input type='password'>` -->
<def tag="input" for="password" attrs="name">
  <%= password_field_tag(name, this, deunderscore_attributes(attributes)) %>
</def>

<!-- An `<input type='text'>` input. -->
<def tag="input" for="integer" attrs="name">
  <%= text_field_tag(name, this, deunderscore_attributes(attributes)) %>
</def>

<!-- An `<input type='text'>` input. -->
<def tag="input" for="BigDecimal" attrs="name">
  <%= text_field_tag(name, this, deunderscore_attributes(attributes)) %>
</def>

<!-- An `<input type='text'>` input. -->
<def tag="input" for="float" attrs="name">
  <%= text_field_tag(name, this, deunderscore_attributes(attributes)) %>
</def>

<!-- An `<input type='text'>` input. -->
<def tag="input" for="string" attrs="name">
  <%= text_field_tag(name, this, deunderscore_attributes(attributes)) %>
</def>

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
hobo_rapid-2.2.6 taglibs/inputs/input_for.dryml
hobo_rapid-2.2.5 taglibs/inputs/input_for.dryml
hobo_rapid-2.2.4 taglibs/inputs/input_for.dryml
hobo_rapid-2.2.3 taglibs/inputs/input_for.dryml
hobo_rapid-2.2.2 taglibs/inputs/input_for.dryml
hobo_rapid-2.2.1 taglibs/inputs/input_for.dryml
hobo_rapid-2.2.0 taglibs/inputs/input_for.dryml
hobo_rapid-2.1.2 taglibs/inputs/input_for.dryml
hobo_rapid-2.1.1 taglibs/inputs/input_for.dryml
hobo_rapid-2.1.0 taglibs/inputs/input_for.dryml
hobo_rapid-2.1.0.pre4 taglibs/inputs/input_for.dryml
hobo_rapid-2.1.0.pre3 taglibs/inputs/input_for.dryml
hobo_rapid-2.1.0.pre2 taglibs/inputs/input_for.dryml
hobo_rapid-2.1.0.pre1 taglibs/inputs/input_for.dryml
hobo_rapid-2.0.1 taglibs/inputs/input_for.dryml
hobo_rapid-2.0.0 taglibs/inputs/input_for.dryml
hobo_rapid-2.0.0.pre10 taglibs/inputs/input_for.dryml
hobo_rapid-2.0.0.pre9 taglibs/inputs/input_for.dryml
hobo_rapid-2.0.0.pre8 taglibs/inputs/input_for.dryml
hobo_rapid-2.0.0.pre7 taglibs/inputs/input_for.dryml