Sha256: 76afb5f859594e3ebb65160d2c47c57bc010b8e5aa107e9d1ce0cb7552660ce5

Contents?: true

Size: 851 Bytes

Versions: 6

Compression:

Stored size: 851 Bytes

Contents

<%= render 'header' %>

<h1>Change coupon</h1>

<%= form_for(@customer, url: tang.admin_customer_coupon_path(@customer), method: :put) do |f| %>
  <% if @customer.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@customer.errors.count, "error") %> prohibited this customer from being saved:</h2>

      <ul>
      <% @customer.errors.full_messages.each do |message| %>
        <li><%= message %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="form-group">
    <%= f.label :coupon_id %>
    <%= f.collection_select :coupon_id, Tang::Coupon.all, :id, :stripe_id, { prompt: true }, { class: 'form-control' } %>
  </div>

  <%= link_to 'Cancel', tang.admin_customer_path(@customer), class: 'btn btn-secondary' %>
  <%= f.submit 'Change coupon', class: 'btn btn-primary' %>
<% end %>


<%= render 'footer' %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
tang-0.2.2 app/views/tang/admin/customers/coupon.html.erb
tang-0.2.1 app/views/tang/admin/customers/coupon.html.erb
tang-0.2.0 app/views/tang/admin/customers/coupon.html.erb
tang-0.1.0 app/views/tang/admin/customers/coupon.html.erb
tang-0.0.9 app/views/tang/admin/customers/coupon.html.erb
tang-0.0.8 app/views/tang/admin/customers/coupon.html.erb