Sha256: d1752b31e8c7895cb5269957811c0d31b5f18bc21dc788fa65b513fe5f80aad2
Contents?: true
Size: 847 Bytes
Versions: 2
Compression:
Stored size: 847 Bytes
Contents
<%%= form_for @<%= table_name.singularize %> do |f| %> <table class="outer"> <% @attr_cols.each do |col| %> <tr> <% if options.datepicker? && [:date, :time, :datetime].include?(col.type) %> <td><%%= f.hd_label :<%= col.name %> %> <td class="field"><%%= f.<%= col.type %>_picker :<%= col.name %> %></td> <% else %> <td><%%= f.label :<%= col.name %> %></td> <td class="field"><%%= f.<%= col.field_type %> :<%= col.name %> %></td> <% end %> </tr> <% end %> <tr> <% if options.ext_form_submit? %> <td colspan="2" style="text-align: center;"> <%%= f.submit "Save & Back to List", name: "btn_index" %> <%%= f.submit "Save & Reload", name: "btn_reload" %> </td> <% else %> <td colspan="2"><%%= f.submit %></td> <% end %> </tr> </table> <%% end %> <br /> <%%= link_to "Back", <%= table_name %>_path %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
controller_scaffolding-1.4.1 | lib/templates/erb/controller/_form.html.erb |
controller_scaffolding-1.4.0 | lib/templates/erb/controller/_form.html.erb |