lgs/paymill-on-rails

View on GitHub
app/views/paymill_on_rails/plans/_form.html.erb

Summary

Maintainability
Test Coverage


<%= form_for @plan, :html => { :class => 'form-horizontal' } do |f| %>
  <div class="control-group">
    <%= f.label :paymill_id, :class => 'control-label' %>
    <div class="controls">
      <%= f.text_field :paymill_id, :class => 'text_field' %>
    </div>
  </div>
  <div class="control-group">
    <%= f.label :name, :class => 'control-label' %>
    <div class="controls">
      <%= f.text_field :name, :class => 'text_field' %>
    </div>
  </div>
  <div class="control-group">
    <%= f.label :price, :class => 'control-label' %>
    <div class="controls">
      <%= f.text_field :price, :class => 'text_field' %>
    </div>
  </div>

  <div class="form-actions">
    <%= f.submit nil, :class => 'btn btn-primary' %>
    <%= link_to t('.cancel', :default => t("helpers.links.cancel")),
                plans_path, :class => 'btn' %>
  </div>
<% end %>