Sha256: a590ce89f66996f8e3aaabda7d168a3851f15390a7d13437dd733ec6c18bec3a

Contents?: true

Size: 805 Bytes

Versions: 26

Compression:

Stored size: 805 Bytes

Contents

<a class="close-reveal-modal" aria-label="Close">&#215;</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) %>
        <%= 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

26 entries across 26 versions & 2 rubygems

Version Path
rails_db-2.4.0 app/views/rails_db/tables/_new.html.erb
rails_db-2.3.1 app/views/rails_db/tables/_new.html.erb
rails_db-2.3.0 app/views/rails_db/tables/_new.html.erb
rails_db-2.2.1 app/views/rails_db/tables/_new.html.erb
rails_db-2.2.0 app/views/rails_db/tables/_new.html.erb
rails_db-2.1.1 app/views/rails_db/tables/_new.html.erb
rails_db-2.1.0 app/views/rails_db/tables/_new.html.erb
rails_db-2.0.6 app/views/rails_db/tables/_new.html.erb
rails_db-2.0.5 app/views/rails_db/tables/_new.html.erb
rails_db-2.0.4 app/views/rails_db/tables/_new.html.erb
xplore-0.0.1.alpha app/views/rails_db/tables/_new.html.erb
rails_db-2.0.3 app/views/rails_db/tables/_new.html.erb
rails_db-2.0.2 app/views/rails_db/tables/_new.html.erb
rails_db-2.0.1 app/views/rails_db/tables/_new.html.erb
rails_db-2.0.0 app/views/rails_db/tables/_new.html.erb
rails_db-1.6.0 app/views/rails_db/tables/_new.html.erb
rails_db-1.5.0 app/views/rails_db/tables/_new.html.erb
rails_db-1.4.1 app/views/rails_db/tables/_new.html.erb
rails_db-1.4.0 app/views/rails_db/tables/_new.html.erb
rails_db-1.3.4 app/views/rails_db/tables/_new.html.erb