<%-# Licensed to the Apache Software Foundation (ASF) under one #or more contributor license agreements. See the NOTICE file #distributed with this work for additional information #regarding copyright ownership. The ASF licenses this file #to you under the Apache License, Version 2.0 (the #"License"); you may not use this file except in compliance #with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # #Unless required by applicable law or agreed to in writing, #software distributed under the License is distributed on an #"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY #KIND, either express or implied. See the License for the #specific language governing permissions and limitations #under the License. -%>
<% form_remote_for @finance_fee_category, :url=>{:action=>'additional_fees_update', :id => @finance_fee_category.id} do |f| %>
<%= f.text_field :name %>
<%= f.text_field :description %>
<%= calendar_date_select_tag 'additional_fees[start_date]', I18n.l(@collection_date.start_date,:format=>:default),:readonly=>true,:popup=>"force" %>
<%= calendar_date_select_tag 'additional_fees[end_date]', I18n.l(@collection_date.end_date,:format=>:default),:readonly=>true,:popup=>"force" %>
<%= calendar_date_select_tag 'additional_fees[due_date]', I18n.l(@collection_date.due_date,:format=>:default),:readonly=>true,:popup=>"force" %>
<% unless @finance_fee_category.batch_id.nil? %> <%= f.text_field :batch, :value => @finance_fee_category.batch.full_name, :disabled => true %> <% else %> <% end %>
<%= submit_tag "► #{t('update')}",:class=>'submit_button' %> <% end %>