Sha256: 8ae5ca0d1b0221527b2c252111b3ac9ff9f266b5df6bc528a1835a05676f23c5

Contents?: true

Size: 839 Bytes

Versions: 44

Compression:

Stored size: 839 Bytes

Contents

<%- @orm.column_fields.each_with_index do |column, index| -%>
- error = <%= @orm.has_error(column[:name]) %>
fieldset class='control-group#{error ? ' has-error' : ''}'
  = f.label :<%= column[:name] %>, :class => 'control-label'
  div class='controls'
    = f.<%= column[:field_type] %> :<%= column[:name] %>, :class => 'form-control input-large input-with-feedback'<%- if (index == 0) -%>, :autofocus => true<%- end -%>

    span class='help-inline' = error ? f.error_message_on(:<%= column[:name] %>, :class => 'text-error') : pat(:example)
<%- end -%>

div class="form-actions"
  = f.submit pat(:save), :class => 'btn btn-primary'
  |&nbsp;
  = f.submit pat(:save_and_continue), :class => 'btn btn-info', :name => 'save_and_continue'
  |&nbsp;
  = link_to pat(:cancel), url(:<%= @orm.name_plural %>, :index), :class => 'btn btn-default'

Version data entries

44 entries across 44 versions & 2 rubygems

Version Path
padrino-admin-0.16.0.pre3 lib/padrino-admin/generators/templates/slim/page/_form.slim.tt
padrino-admin-0.16.0.pre2 lib/padrino-admin/generators/templates/slim/page/_form.slim.tt
padrino-admin-0.15.3 lib/padrino-admin/generators/templates/slim/page/_form.slim.tt
padrino-admin-0.15.2 lib/padrino-admin/generators/templates/slim/page/_form.slim.tt
padrino-admin-0.15.1 lib/padrino-admin/generators/templates/slim/page/_form.slim.tt
padrino-admin-0.15.0 lib/padrino-admin/generators/templates/slim/page/_form.slim.tt
padrino-admin-0.14.4 lib/padrino-admin/generators/templates/slim/page/_form.slim.tt
padrino-admin-0.14.3 lib/padrino-admin/generators/templates/slim/page/_form.slim.tt
padrino-admin-0.12.9 lib/padrino-admin/generators/templates/slim/page/_form.slim.tt
padrino-admin-0.14.2 lib/padrino-admin/generators/templates/slim/page/_form.slim.tt
padrino-admin-0.13.3.4 lib/padrino-admin/generators/templates/slim/page/_form.slim.tt
padrino-admin-0.14.1.1 lib/padrino-admin/generators/templates/slim/page/_form.slim.tt
padrino-admin-0.14.1 lib/padrino-admin/generators/templates/slim/page/_form.slim.tt
padrino-admin-0.14.0.2 lib/padrino-admin/generators/templates/slim/page/_form.slim.tt
padrino-admin-0.14.0.1 lib/padrino-admin/generators/templates/slim/page/_form.slim.tt
padrino-admin-0.14.0 lib/padrino-admin/generators/templates/slim/page/_form.slim.tt
padrino-admin-0.14.0.rc2 lib/padrino-admin/generators/templates/slim/page/_form.slim.tt
padrino-admin-0.14.0.rc1 lib/padrino-admin/generators/templates/slim/page/_form.slim.tt
padrino-admin-0.13.3.3 lib/padrino-admin/generators/templates/slim/page/_form.slim.tt
padrino-admin-0.13.3.2 lib/padrino-admin/generators/templates/slim/page/_form.slim.tt