Sha256: 235a6a8ed23902e2c4cba99bbf958739bd75f4f04e7fa57239a2cdd8fce3af01

Contents?: true

Size: 920 Bytes

Versions: 1

Compression:

Stored size: 920 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'>
    <%= admin_data_form_field(klass, @model, col, f).html_safe %>
  </div>  
<% end %>

<% if AdminData::Util.habtm_what(klass).any? %>
  <div class='data'>
    <%= admin_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

1 entries across 1 versions & 1 rubygems

Version Path
admin_data-1.0.21 app/views/admin_data/main/misc/_form.html.erb