Sha256: 31f9260ff03b4900c1360fcdfb4f88f18e3d046a972047cfd5979f33eed60220

Contents?: true

Size: 761 Bytes

Versions: 12

Compression:

Stored size: 761 Bytes

Contents

<a class="close-reveal-modal" aria-label="Close">&#215;</a>

<h2 id="modalTitle">Edit</h2>

<%= simple_form_for @record, as: 'record', url: table_update_path(@table, pk_id: @record[@table.primary_key]), remote: true, method: :put, html: {class: 'vertical_form'} do |form| %>
    <div class='scrollable_form'>
      <% @record.class.columns.each do |column| %>
        <% name = column.name %>
        <% next if name == @table.primary_key %>
        <%= form.input name, label: name %>
      <% 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

12 entries across 12 versions & 1 rubygems

Version Path
rails_db-2.0.0 app/views/rails_db/tables/_edit.html.erb
rails_db-1.6.0 app/views/rails_db/tables/_edit.html.erb
rails_db-1.5.0 app/views/rails_db/tables/_edit.html.erb
rails_db-1.4.1 app/views/rails_db/tables/_edit.html.erb
rails_db-1.4.0 app/views/rails_db/tables/_edit.html.erb
rails_db-1.3.4 app/views/rails_db/tables/_edit.html.erb
rails_db-1.3.3 app/views/rails_db/tables/_edit.html.erb
rails_db-1.3.2 app/views/rails_db/tables/_edit.html.erb
rails_db-1.3.1 app/views/rails_db/tables/_edit.html.erb
rails_db-1.3 app/views/rails_db/tables/_edit.html.erb
rails_db-1.1.1 app/views/rails_db/tables/_edit.html.erb
rails_db-1.1 app/views/rails_db/tables/_edit.html.erb