Sha256: a03003b3160334c73abf5d3b15aa9e18da4e4b9a39ae3c935d26ec7fb299f9aa

Contents?: true

Size: 1.6 KB

Versions: 3

Compression:

Stored size: 1.6 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.text_field :amount, :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 %>

<%= javascript_tag do %>
$(document).ready(function() {
  $("#chargeback_amount").keydown(function(event) {
    preventNonNumericValues(event);
  });
});
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
kaui-0.16.2 app/views/kaui/chargebacks/_form.html.erb
kaui-0.16.1 app/views/kaui/chargebacks/_form.html.erb
kaui-0.16.0 app/views/kaui/chargebacks/_form.html.erb