Sha256: 9d93e9bc3e248285cead09cb09b5cadc06701dbaa902f6a2ef1a965d3f8fab8a

Contents?: true

Size: 1.67 KB

Versions: 2

Compression:

Stored size: 1.67 KB

Contents

<table data-hook="payment_method">
  <tr data-hook="name">
    <td><label><%=t("name")%></label></td>
    <td><%= text_field :payment_method, :name, {"style" => "width:200px"} %></td>
  </tr>
  <tr data-hook="description">
    <td><label><%=t("description")%></label></td>
    <td><%= text_area :payment_method, :description, {:cols => 60, :rows => 4} %></td>
  </tr>
  <tr data-hook="environment">
    <td><label><%=t("environment")%></label></td>
    <td>
      <%= collection_select(:payment_method, :environment, Configuration.configurations.keys, :to_s, :titleize, {}, {:id => "gtwy-env"}) %>
    </td>
  </tr>
  <tr data-hook="display">
    <td><label><%=t("display")%></label></td>
    <td>
      <%= select(:payment_method, :display_on, PaymentMethod::DISPLAY.collect {|display| [t(display), display == :both ? nil : display.to_s]}) %>
    </td>
  </tr>
  <tr data-hook="active">
    <td><label><%= t("active") %></label></td>
    <td>
      <label class="sub">
        <%= radio_button(:payment_method, :active, true ) %>
        <%= t("yes") %>
      </label> &nbsp;
      <label class="sub">
        <%= radio_button(:payment_method, :active, false ) %>
        <%= t("no") %>
      </label>
    </td>
  </tr>
</table>

<h2><%= t('settings') %></h2>

<div id="preference-settings" data-hook>
  <%= f.label(:type, t("provider")) %>
  <%= collection_select(:payment_method, :type, @providers, :to_s, :name, {}, {:id => "gtwy-type"}) %>

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

    <% if @object.respond_to?(:preferences) %>
      <div id="gateway-settings-warning" style="color:#FF0000"><%= t('provider_settings_warning')%></div>
    <% end %>
  <% end %>
</div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_core-0.70.0.rc2 app/views/admin/payment_methods/_form.html.erb
spree_core-0.70.RC1 app/views/admin/payment_methods/_form.html.erb