Sha256: c928137a26bb3d19e447a79a45e4cd51a8fe0130f64899436ce5a9fe9ccff0eb

Contents?: true

Size: 1.95 KB

Versions: 5

Compression:

Stored size: 1.95 KB

Contents

<% # Usage of old-style form helpers in this file is INTENTIONAL
   # For reasons, see commit 3e981c7. %>
<div data-hook="admin_payment_method_form_fields">

  <div data-hook="payment_method">

    <div class="alpha four columns">
      <div id="preference-settings" data-hook class="field">
        <%= f.label :type, t(:provider) %>
        <%= collection_select(:payment_method, :type, @providers, :to_s, :name, {}, {:id => 'gtwy-type', :class => 'select2 fullwidth'}) %>

        <% unless @object.new_record? %>
          <%= preference_fields(@object, f) %>

          <% if @object.respond_to?(:preferences) %>
            <div id="gateway-settings-warning" class="info warning"><%= t(:provider_settings_warning) %></div>
          <% end %>
        <% end %>
      </div>      
      <div data-hook="environment" class="field">
        <%= label_tag nil, t(:environment) %>
        <%= collection_select(:payment_method, :environment, Rails.configuration.database_configuration.keys.sort, :to_s, :titleize, {}, {:id => 'gtwy-env', :class => 'select2 fullwidth'}) %>        
      </div>
      <div data-hook="active" class="field">
        <%= label_tag nil, t(:active) %>
        <ul>
          <li>
            <%= radio_button :payment_method, :active, true %>
            <%= label_tag nil, t(:yes) %>
          </li>        
          <li>
            <%= radio_button :payment_method, :active, false %>
            <%= label_tag nil, t(:no) %>
          </li>
        </ul>
      </div>
    </div>
    
    <div class="omega eight columns">
      <div data-hook="name" class="field">
        <%= label_tag nil, t(:name) %>
        <%= text_field :payment_method, :name, :class => 'fullwidth' %>
      </div>
      <div data-hook="description" class="field">
        <%= label_tag nil, t(:description) %>
        <%= text_area :payment_method, :description, {:cols => 60, :rows => 6, :class => 'fullwidth'} %>
      </div>  
    </div>
    
  </div>
</div>

<div class="clear"></div>

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
spree_core-1.3.1 app/views/spree/admin/payment_methods/_form.html.erb
spree_core-1.3.0 app/views/spree/admin/payment_methods/_form.html.erb
spree_core-1.3.0.rc2 app/views/spree/admin/payment_methods/_form.html.erb
dup_spree_core-1.3.0.rc1 app/views/spree/admin/payment_methods/_form.html.erb
spree_core-1.3.0.rc1 app/views/spree/admin/payment_methods/_form.html.erb