Sha256: a3935fd749643b42d371c0eb305f28a486a60d698cfbe0586287064fd8648320

Contents?: true

Size: 950 Bytes

Versions: 8

Compression:

Stored size: 950 Bytes

Contents

<h2>New item</h2>

<% form_for(@item) do |f| %>
  <%= f.error_messages %>

  <p>
    <%= f.label :title %><br />
    <%= f.text_field :title %>
  </p>
  <p>
    <%= f.label :amount %><br />
    <%= f.text_field :amount %>
  </p>
  <p>
    <%= f.label :category_id %><br />
    <%= f.select :category_id, @categories.map{|c| [c.name, c.id]}  %>
  </p>
  <p>
    <%= f.label :date %><br />
    <%= f.text_field :date %>
  </p>
  <p>
    <%= f.label :position %><br />
    <%= f.text_field :position %>
  </p>
  <p id="one_account">
    <%= f.label :account_id %><br />
    <%= f.select :account_id, @accounts.map{|a| [a.name, a.id]}  %>
  </p>
  <p id="two_accounts">
    <%= f.label :account_id_from %><br />
    <%= f.select :account_id_from, @accounts.map{|a| [a.name, a.id]}  %>
    → <%= f.select :account_id_to, @accounts.map{|a| [a.name, a.id]}  %>
  </p>
  <p>
    <%= f.submit 'Create' %>
  </p>
<% end %>

<%= link_to 'Back', items_path %>

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
yhara-moneyrail-0.0.2 app/views/items/new.html.erb
moneyrail-0.1.6 app/views/items/new.html.erb
moneyrail-0.1.5 app/views/items/new.html.erb
moneyrail-0.1.4 app/views/items/new.html.erb
moneyrail-0.1.2 app/views/items/new.html.erb
moneyrail-0.1.1 app/views/items/new.html.erb
moneyrail-0.1.0 app/views/items/new.html.erb
moneyrail-0.0.2 app/views/items/new.html.erb