Sha256: 03b515115522615b67938f797a564867a4ee0c98623236ba1f912d8db0063f9f
Contents?: true
Size: 1.79 KB
Versions: 2
Compression:
Stored size: 1.79 KB
Contents
<h1>Select a destination invoice:</h1> <% if @errors_during_move.length > 0 -%> <div class="error-message"> <p>The following error(s) prevented your move from completing:</p> <ul> <% @errors_during_move.each do |error| -%> <li><%=h error%></li> <% end -%> </ul> </div> <% end -%> <p>The following un-published invoices are available targets for this move:</p> <% form_remote_tag( :url => { :action => "move_to_invoice", :id => params[:id], :eid => params[:eid], :nested => 'true', :parent_model => 'Invoice', :parent_column => 'activities' }, :loading => "Modalbox.hide();$('#{loading_indicator_id(:action => :pagination)}').style.visibility = 'visible';", :complete => "$('#{loading_indicator_id(:action => :pagination)}').style.visibility = 'hidden';", :failure => "ActiveScaffold.report_500_response('#{active_scaffold_id}')", :method => :get ) do %> <% if @dest_invoices and @dest_invoices.length > 0 -%> <%= select_tag( 'move_to_invoice_id', options_for_select( [['(None)', nil]]+@dest_invoices.collect{|inv| [inv.long_name, inv.id]}, params[:move_to_invoice_id].to_i ) ) %> <% else -%> <p class="warning-message">We're sorry, but no un-published invoices were available in the database for this move.</p> <% end -%> <p>This activity's client and invoice association will be matched with the selected destination. If "(None)" is selected, this actvity will be removed from its current invoice, and placed back in the unassigned activity queue.</p> <p> <%= submit_tag 'Move...', :class => "MB_focusable" %> or <%= link_to_function 'Cancel & Close', "Modalbox.hide();", :class => "MB_focusable", :title => 'Cancel & Close' %> </p> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
brisk-bills-0.8.2 | app/views/admin/activities_with_prices/move_to_invoice.html.erb |
brisk-bills-0.8.1 | app/views/admin/activities_with_prices/move_to_invoice.html.erb |