Permalink
Browse files

bug fixes(flash meesage issue in additional fees)

git-svn-id: file:///svn/fedena2.1/branches/fedena2.1_i18n@1922 1b8ff446-76f8-11e0-a33c-ba5893e5f458
  • Loading branch information...
1 parent 93c587d commit d02c1b1dc40603200ebac9d3de2a02ad8cc64b93 @foradian foradian committed with foradian Jan 16, 2012
@@ -17,7 +17,6 @@
#specific language governing permissions and limitations
#under the License. -%>
-<% unless flash[:notice].nil? %><p class="flash-msg"><%= flash[:notice] %></p><% end %>
<% unless @additional_categories.empty? %>
<table id="listing" align="center" width="100%" cellpadding="1" cellspacing="1">
<tr class="tr-head">
@@ -16,9 +16,9 @@
#under the License. -%>
<br/>
- <div class="linker"><%= link_to_remote "#{t('add_particular')}", :url => { :action => 'add_particulars_new',:id => @collection_date.id} %></div>
+<div class="linker"><%= link_to_remote "#{t('add_particular')}", :url => { :action => 'add_particulars_new',:id => @collection_date.id} %></div>
<br/>
-<% unless flash[:notice].nil? %><p class="flash-msg"><%= flash[:notice] %></p><% end %>
+
<% unless @particulars.empty? %>
<table id="listing" align="center" width="100%" cellpadding="1" cellspacing="1">
<tr class="tr-head">
@@ -18,23 +18,27 @@
#under the License. -%>
<div id="content-header">
-<%= image_tag("/images/show_finance.png") %>
+ <%= image_tag("/images/show_finance.png") %>
<h1><%= t('fees_text') %></h1>
<h3><%= t('additional_fees') %></h3>
<div id="app-back-button">
<%= link_to_function image_tag("/images/buttons/back.png",:border => 0), "history.back()" %>
</div>
</div>
<div id="page-yield">
+ <div id="flash_box"> </div>
+ <% unless flash[:notice].nil? %>
+ <p class="flash-msg"> <%= flash[:notice] %> </p>
+ <% end %>
<div id="batch">
<div class="label-field-pair"><label><%= t('select_a_batch') %> : </label>
<div class="text-input-bg"> <%= select("id",:id,@batchs.map { |c| [c.full_name, c.id] },
- {:prompt => "#{t('select_a_batch')}"},
- {:onChange => "#{remote_function(:url => {:action => "show_additional_fees_list"}, :with => "'id='+value")}"})%> </div>
- </div>
+ {:prompt => "#{t('select_a_batch')}"},
+ {:onChange => "#{remote_function(:url => {:action => "show_additional_fees_list"}, :with => "'id='+value")}"})%> </div>
+ </div>
</div>
<div id="particulars" >
- <%#= render :partial=>'additional_fees_list' %>
+<%#= render :partial=>'additional_fees_list' %>
</div>
</div>
- <div id="modal-box" style="display:none;"></div>
+<div id="modal-box" style="display:none;"></div>

0 comments on commit d02c1b1

Please sign in to comment.