Sha256: ea14631be407a2a3a292550a06eb0630c188e56356b24af05e55a4c8462cb652

Contents?: true

Size: 925 Bytes

Versions: 10

Compression:

Stored size: 925 Bytes

Contents

<% @columns.each do |col| %>
  <div class='col_box'>
    <span class='col_name'><%= col.name %></span>
    <span class='col_type'>[<%= col.type.to_s %>]</span>
  </div>
  <div class='data'>
    <%= form_field(klass, @model, col, f).html_safe %>
  </div>
<% end %>

<% if AdminData::ActiveRecordUtil.declared_habtm_association_names(klass).any? %>
  <div class='data'>
    <%= form_field_for_habtm_records(klass, @model, f, '').html_safe %>
  </div>
<% end %>

<div class='group navform' style='padding-top:10px;'>
  <% if params[:action] == 'edit' || params[:action] == 'update' %>
    <% label = 'Update' %>
  <% else %>
    <% label = 'Create' %>
  <% end %>
  <%= f.submit(label, :class => 'button', :disable_with => 'Please wait ...') %>
</div>

<style>
  .col_name {
    color: #222;
    font-size: 15px;
  }
  .col_type {
    color: dimgray;
  }
  .col_box {
    margin-top: 20px;
    padding-bottom: 4px;
  }
</style>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
admin_data-1.1.9 app/views/admin_data/crud/misc/_form.html.erb
admin_data-1.1.8 app/views/admin_data/crud/misc/_form.html.erb
admin_data-1.1.7 app/views/admin_data/crud/misc/_form.html.erb
admin_data-1.1.6 app/views/admin_data/crud/misc/_form.html.erb
admin_data-1.1.5 app/views/admin_data/crud/misc/_form.html.erb
admin_data-1.1.4 app/views/admin_data/crud/misc/_form.html.erb
admin_data-1.1.3 app/views/admin_data/crud/misc/_form.html.erb
admin_data-1.1.2 app/views/admin_data/crud/misc/_form.html.erb
admin_data-1.1.1 app/views/admin_data/crud/misc/_form.html.erb
admin_data-1.1.0 app/views/admin_data/crud/misc/_form.html.erb