Sha256: afcc01dbbab94317c9bbb44ca6b4ae74345ebac5b60640f5375c0db5909efc35

Contents?: true

Size: 1.31 KB

Versions: 59

Compression:

Stored size: 1.31 KB

Contents

<%= form_for(@auth_shopping_payment, as: :payment) do |f| %>
	<%= render :partial => "auth/shared/object_errors.html.erb", locals: {active_model_object: @auth_shopping_payment} %>
    <%= f.hidden_field :cart_id, :value => @auth_shopping_payment.cart_id %>

    <% if @auth_shopping_payment.discount_id %>
        Use Your Discount Token
        <!-- for the discount type of payment we make hidden field of the amount, type, and discount_id.-->
        <%= f.hidden_field :amount, :value => 0.0 %>
        <%= f.hidden_field :discount_id, :value => @auth_shopping_payment.discount_id %>
        <%= f.hidden_field :payment_type, :value => "cash" %> 
    <% else %>
        <%= f.label :amount %>
        <%= f.text_field :amount, :value => @auth_shopping_payment.amount  %>
        <div class="input-field">
        <%= f.select(:payment_type,  [['cash', "cash"], ['card', "card"],["cheque","cheque"]],{} ,{:class => "browser-default"}) %>
        </div>
        <!-- add an input for payment status if it is an admin -->
        <% if current_signed_in_resource.is_admin? %>
          <%= f.select(:payment_status,  [["Payment Not Verified By Cashier", 0], ['Payment Verified By Cashier', 1]],{}, {:class => "browser-default"}) %>
        <% end %>
    <% end %>
		<%= f.submit 'Proceed' %>
<% end %>
<div class="divider m-40-bottom"></div>

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
wordjelly-auth-1.6.0 app/views/auth/shopping/payments/_cash_card_cheque.html.erb
wordjelly-auth-1.5.9 app/views/auth/shopping/payments/_cash_card_cheque.html.erb
wordjelly-auth-1.5.8 app/views/auth/shopping/payments/_cash_card_cheque.html.erb
wordjelly-auth-1.5.7 app/views/auth/shopping/payments/_cash_card_cheque.html.erb
wordjelly-auth-1.5.6 app/views/auth/shopping/payments/_cash_card_cheque.html.erb
wordjelly-auth-1.5.5 app/views/auth/shopping/payments/_cash_card_cheque.html.erb
wordjelly-auth-1.5.4 app/views/auth/shopping/payments/_cash_card_cheque.html.erb
wordjelly-auth-1.5.3 app/views/auth/shopping/payments/_cash_card_cheque.html.erb
wordjelly-auth-1.5.2 app/views/auth/shopping/payments/_cash_card_cheque.html.erb
wordjelly-auth-1.5.1 app/views/auth/shopping/payments/_cash_card_cheque.html.erb
wordjelly-auth-1.5.0 app/views/auth/shopping/payments/_cash_card_cheque.html.erb
wordjelly-auth-1.4.9 app/views/auth/shopping/payments/_cash_card_cheque.html.erb
wordjelly-auth-1.4.8 app/views/auth/shopping/payments/_cash_card_cheque.html.erb
wordjelly-auth-1.4.7 app/views/auth/shopping/payments/_cash_card_cheque.html.erb
wordjelly-auth-1.4.6 app/views/auth/shopping/payments/_cash_card_cheque.html.erb
wordjelly-auth-1.4.5 app/views/auth/shopping/payments/_cash_card_cheque.html.erb
wordjelly-auth-1.4.4 app/views/auth/shopping/payments/_cash_card_cheque.html.erb
wordjelly-auth-1.4.3 app/views/auth/shopping/payments/_cash_card_cheque.html.erb
wordjelly-auth-1.4.2 app/views/auth/shopping/payments/_cash_card_cheque.html.erb
wordjelly-auth-1.4.0 app/views/auth/shopping/payments/_cash_card_cheque.html.erb