Sha256: c2b6521be1b6ab0f0e300088715ad3cf63e0f56ac8751e159987399bbab7abd3
Contents?: true
Size: 1.57 KB
Versions: 2
Compression:
Stored size: 1.57 KB
Contents
<% each_controller do -%> <% form_fields = standard_fields :belongs_to, :has_many cancel_to_show_page = linkable?(:show) cancel_to_index_page = !cancel_to_index_page && linkable?(:index) -%> <def tag="form" for="<%= model.name %>"> <form merge param="default"> <error-messages param/> <field-list fields="<%= form_fields * ', ' %>" param/> <div param="actions"> <submit label="Save" param/><or-cancel param="cancel"/> </div> </form> </def> <% creators.each do |creator| -%> <def tag="<%= creator.name.to_s.dasherize %>-form" polymorphic/> <def tag="<%= creator.name.to_s.dasherize %>-form" for="<%= model.name %>"> <form lifecycle="<%= creator.name %>" merge param="default"> <error-messages param/> <field-list fields="<%= creator.parameters * ', ' %>" param/> <div param="actions"> <submit label="<%= creator.name.to_s.titleize %>" param/><or-cancel param="cancel"/> </div> </form> </def> <% end -%> <% transitions.each do |transition| -%> <def tag="<%= transition.name.to_s.dasherize %>-form" polymorphic/> <def tag="<%= transition.name.to_s.dasherize %>-form" for="<%= model.name %>"> <form lifecycle="<%= transition.name %>" merge param="default"> <error-messages param/> <input type="hidden" name="key" value="&this.lifecycle.provided_key" if="&this.lifecycle.provided_key"/> <field-list fields="<%= transition.parameters * ', ' %>" param/> <div param="actions"> <submit label="<%= transition.name.to_s.titleize %>" param/><or-cancel param="cancel"/> </div> </form> </def> <% end -%> <% end # of each_model do -%>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hobo-0.8.10 | dryml_generators/rapid/forms.dryml.erb |
hobo-0.8.9 | dryml_generators/rapid/forms.dryml.erb |