28 lines
501 B
Plaintext
28 lines
501 B
Plaintext
<h1>New rate</h1>
|
|
|
|
<% form_for(@rate) do |f| %>
|
|
<%= f.error_messages %>
|
|
|
|
<p>
|
|
<%= f.label :amount %><br />
|
|
<%= f.text_field :amount %>
|
|
</p>
|
|
<p>
|
|
<%= f.label :user_id %><br />
|
|
<%= f.text_field :user_id %>
|
|
</p>
|
|
<p>
|
|
<%= f.label :project_id %><br />
|
|
<%= f.text_field :project_id %>
|
|
</p>
|
|
<p>
|
|
<%= f.label :date_in_effect %><br />
|
|
<%= f.date_select :date_in_effect %>
|
|
</p>
|
|
<p>
|
|
<%= f.submit "Create" %>
|
|
</p>
|
|
<% end %>
|
|
|
|
<%= link_to 'Back', rates_path %>
|