Sha256: 528522c6d0fd324789d2d14b462911b7ece7f813774528687bff7cb7d6d4c204
Contents?: true
Size: 1.38 KB
Versions: 2
Compression:
Stored size: 1.38 KB
Contents
<%= form_for(subscription, url: url) do |f| %> <% if subscription.errors.any? %> <div id="error_explanation" class="alert alert-danger"> <h4 class="alert-heading"><%= pluralize(subscription.errors.count, "error") %> prohibited this subscription from being saved:</h4> <ul class="mb-0"> <% subscription.errors.full_messages.each do |message| %> <li><%= message %></li> <% end %> </ul> </div> <% end %> <div class="form-group"> <%= f.label :plan_id, 'Plan' %> <%= f.collection_select :plan_id, Tang::Plan.all, :id, :name, {}, { class: 'form-control' } %> </div> <div class="form-group"> <%= f.label :quantity %> <%= f.number_field :quantity, min: 1, step: 1, class: 'form-control' %> </div> <div class="form-group"> <%= f.label :trial_end %> <%= f.date_select :trial_end, { include_blank: true, default: nil } %> </div> <div class="form-check"> <%= f.label :end_trial_now, class: 'form-check-label' do %> <%= f.check_box :end_trial_now, class: 'form-check-input' %> End trial now <% end %> </div> <div class="form-group"> <%= f.label :tax_percent %> <%= f.number_field :tax_percent, min: 0, step: 0.0001, class: 'form-control' %> </div> <%= link_to 'Cancel', tang.admin_subscription_path(subscription), class: 'btn btn-secondary' %> <%= f.submit class: 'btn btn-primary' %> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tang-0.0.9 | app/views/tang/admin/subscriptions/_form.html.erb |
tang-0.0.8 | app/views/tang/admin/subscriptions/_form.html.erb |