Skip to content

Commit

Permalink
[#495 state:resolved] remove belongs_to select input from default
Browse files Browse the repository at this point in the history
input-many field-list
  • Loading branch information
bryanlarsen committed Nov 26, 2009
1 parent 2120168 commit 4e8f4f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hobo/taglibs/rapid_forms.dryml
Expand Up @@ -891,20 +891,20 @@ The body of the tag will be repeated for each of the current records in the coll
-->
<def tag="input-many" attrs="fields,skip" polymorphic>
<set empty="&this.empty?"/>
<% skip ||= this.proxy_reflection.klass.reflect_on_all_associations.detect {|p| p.primary_key_name==this.proxy_reflection.primary_key_name}.try.name.to_s if this.respond_to? :proxy_reflection %>
<ul class="input-many #{this_field.dasherize} #{css_data :input_many_prefix, param_name_for_this}">
<li repeat class="#{'record-with-errors' unless this.errors.empty?}">
<error-messages without-heading class="sub-record"/>
<hidden-id-field/>
<div class="input-many-item" param="default">
<field-list merge-attrs="fields" />
<field-list merge-attrs="fields" skip="&skip"/>
</div>
<div class="buttons">
<button type="button" class="remove-item" merge-attrs="disabled" param="remove-item">-</button>
<button type="button" class="add-item" if="&last_item?" merge-attrs="disabled" param="add-item">+</button>
</div>
</li>
<li if="&empty">
<% skip ||= this.proxy_reflection.klass.reflect_on_all_associations.detect {|p| p.primary_key_name==this.proxy_reflection.primary_key_name}.try.name.to_s if this.respond_to? :proxy_reflection %>
<fake-field-context fake-field="0" context="&this.try.new_candidate || this.member_class.new">
<div class="input-many-item" param="default">
<field-list merge-attrs="fields" skip="&skip"/>
Expand Down

0 comments on commit 4e8f4f7

Please sign in to comment.