Sha256: 175ba785ee815c60de20c9b2605d0a7a96d8b7afdfe3e4121abd9115493d45a9

Contents?: true

Size: 929 Bytes

Versions: 10

Compression:

Stored size: 929 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.new(klass).declared_habtm_association_names.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 & 2 rubygems

Version Path
the_jobbook_admin_data-1.3.0a app/views/admin_data/crud/misc/_form.html.erb
admin_data-1.2.1 app/views/admin_data/crud/misc/_form.html.erb
admin_data-1.2.0 app/views/admin_data/crud/misc/_form.html.erb
admin_data-1.1.16 app/views/admin_data/crud/misc/_form.html.erb
admin_data-1.1.15 app/views/admin_data/crud/misc/_form.html.erb
admin_data-1.1.14 app/views/admin_data/crud/misc/_form.html.erb
admin_data-1.1.13 app/views/admin_data/crud/misc/_form.html.erb
admin_data-1.1.12 app/views/admin_data/crud/misc/_form.html.erb
admin_data-1.1.11 app/views/admin_data/crud/misc/_form.html.erb
admin_data-1.1.10 app/views/admin_data/crud/misc/_form.html.erb