Sha256: 575c7fa063311ada6d844528220e472932badb55a2e8e8e8f11285fc115baebc
Contents?: true
Size: 943 Bytes
Versions: 5
Compression:
Stored size: 943 Bytes
Contents
<a class="close-reveal-modal" aria-label="Close">×</a> <h2 id="modalTitle">New</h2> <%= simple_form_for @record, as: 'record', url: table_create_path(@table, pk_id: @record[@table.primary_key]), remote: true, method: :post, html: {class: 'vertical_form'} do |form| %> <div class='scrollable_form'> <% @record.class.columns.each do |column| %> <% name = column.name %> <% next if [@table.primary_key, 'created_at', 'updated_at'].include?(column.name) %> <% if name.to_s == "country" %> <%= form.input name, label: name, as: :string %> <% else %> <%= form.input name, label: name %> <% end %> <% end %> </div> <%= form.submit 'SAVE', class: 'button small' %> <a class='close' onclick="$('#system_modal').foundation('reveal', 'close');$">Close</a> <% end %> <span class="radius warning label">NOTE: Update will happen without any validations.</span>
Version data entries
5 entries across 5 versions & 1 rubygems