Sha256: e2dc691aca4377ad3157dad1fc433ae7608a432db763355b2245b7df2bcd1e5a

Contents?: true

Size: 618 Bytes

Versions: 33

Compression:

Stored size: 618 Bytes

Contents

<!-- Renders a sub-section of a form with fields for every record in a `has_many` association. This is similar to `<input-many>` except there is no ability to add and remove items (i.e. no (+) and (-) buttons).
  -->
<def tag="input-all">
  <% association_fkey = this_field_reflection.foreign_key -%>
  <ul class="input-all #{this_field.dasherize}">
    <li repeat class="#{'record-with-errors' unless this.errors.empty?}">
      <set-scoped form-field-names="&[]">
        <hidden-id-field/>
        <do param="default"/>
        <hidden-fields skip="&association_fkey"/>
      </set-scoped>
    </li>
  </ul>
</def>

Version data entries

33 entries across 33 versions & 1 rubygems

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