report details
  1. <%=form.label :name %><%=form.text_field :name %>
  2. <%=form.label :date_from %><%=form.date_select :date_from %>
  3. <%=form.label :date_to %><%=form.date_select :date_to %>
report items <%= render(@items, :form => form) %>
accountaim amountpositionlevelaction
<%= link_to "přidej", new_report_item_path(@report) %>
<%= javascript_tag do %> $("#add_item").bind("ajax:loading", function(et, e){ $(this).html("Loading..."); // swap link text }); <% end %>