Sha256: d6c1be46e5303c7be1c3e6ebda360b66e67f8a05f7aff6218da1f36854847192
Contents?: true
Size: 841 Bytes
Versions: 3
Compression:
Stored size: 841 Bytes
Contents
<%- @orm.column_fields.each_with_index do |column, index| -%> - error = <%= @orm.has_error(column[:name]) %> %fieldset.control-group{:class => error ? 'has-error' : ''} =f.label :<%= column[:name] %>, :class => 'control-label' .controls <% if column[:field_type] == :text_area %>~<% else %>=<% end %>f.<%= column[:field_type] %> :<%= column[:name] %>, :class => 'input-xlarge input-with-feedback'<%- if (index == 0) -%>, :autofocus => true<%- end -%> %span.help-inline=error ? f.error_message_on(:<%= column[:name] %>, :class => 'text-error') : pat(:example) <%- end -%> .form-actions =f.submit pat(:save), :class => 'btn btn-primary' =f.submit pat(:save_and_continue), :class => 'btn btn-info', :name => 'save_and_continue' =link_to pat(:cancel), url(:<%= @orm.name_plural %>, :index), :class => 'btn'
Version data entries
3 entries across 3 versions & 1 rubygems