% content_for :head do %>
<%= stylesheet_link_tag "index" , :media => "all"%>
<% end %>
Новый платёж
<% form_for @payment, :url => {:action => 'create'}, :html => {:autocomplete => "off"} do |f| -%>
<%= f.error_messages %>
| Дата: |
<%= calendar_field_tag "operation_date", Time.now, {:name => @payment.class.name.underscore + '[operation_date]', :class =>"required"}, {:with_time => 'true'} %> |
| Сотрудник: |
<%= f.collection_select(:employee_id, Employee.working, :id, :nic) %> |
| Сумма: |
<%= f.text_field :sum, :size => 10 %> |
| Описание: |
<%= f.text_field :description, :size => 50 %> |
| <%= f.submit "Сохранить" %> |
<% end %>
<%= button_to "Назад", payments_path, :method => :get %> |