Sha256: 7bc6b1a55be9b3ef03bb8724162d3d608db68b3d73ade40812eee53f5a4248a3

Contents?: true

Size: 1.46 KB

Versions: 8

Compression:

Stored size: 1.46 KB

Contents

<%= form_for @chargeback, :url => {:action => :create}, :html => {:class => 'form-horizontal'} do |f| %>
    <%= f.hidden_field :payment_id %>
    <%= f.hidden_field :currency %>

    <div class="form-group">
      <%= f.label :amount, 'Amount', :class => 'col-sm-2 control-label' %>
      <div class="col-sm-10">
        <%= f.number_field :amount, :step => :any, :id => 'chargeback_amount', :class => 'form-control' %>
        <p class="help-block">Currency: <%= @chargeback.currency %></p>
      </div>
    </div>
    <div class="form-group">
      <%= label_tag :reason, 'Reason', :class => 'col-sm-2 control-label' %>
      <div class="col-sm-10">
        <%= select_tag :reason, options_for_select(Kaui.chargeback_reason_codes), :class => 'form-control' %>
      </div>
    </div>
    <div class="form-group">
      <div class="col-sm-offset-2 col-sm-10">
        <div class="checkbox">
          <%= label_tag :cancel_all_subs do %>
              <%= check_box_tag :cancel_all_subs %>Cancel account subscriptions?
          <% end %>
        </div>
      </div>
    </div>
    <div class="form-group">
      <%= label_tag :comment, 'Comment', :class => 'col-sm-2 control-label' %>
      <div class="col-sm-10">
        <%= text_area_tag :comment, nil, :rows => 3, :class => 'form-control' %>
      </div>
    </div>
    <div class="form-group">
      <div class="col-sm-offset-2 col-sm-10">
        <%= submit_tag 'Save', :class => 'btn btn-default' %>
      </div>
    </div>
<% end %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
kaui-3.0.4 app/views/kaui/chargebacks/_form.html.erb
kaui-3.0.2 app/views/kaui/chargebacks/_form.html.erb
kaui-2.2.1 app/views/kaui/chargebacks/_form.html.erb
kaui-3.0.1 app/views/kaui/chargebacks/_form.html.erb
kaui-2.1.0 app/views/kaui/chargebacks/_form.html.erb
kaui-2.0.4 app/views/kaui/chargebacks/_form.html.erb
kaui-2.0.3 app/views/kaui/chargebacks/_form.html.erb
kaui-2.0.2 app/views/kaui/chargebacks/_form.html.erb