Sha256: a1e8b1025c39385b9502542691ea9541b9ceec2cd1ee7016adf4ee65ec4f6fcb

Contents?: true

Size: 1.53 KB

Versions: 32

Compression:

Stored size: 1.53 KB

Contents

<table>
  <tr>
    <td><label><%=t("name")%></label></td>
    <td><%= text_field :payment_method, :name, {"style" => "width:200px"} %></td>
  </tr>
  <tr>
    <td><label><%=t("description")%></label></td>
    <td><%= text_area :payment_method, :description, {:cols => 60, :rows => 4} %></td>
  </tr>
  <tr>
    <td><label><%=t("environment")%></label></td>
    <td>
      <%= collection_select(:payment_method, :environment, Configuration.configurations.keys, :to_s, :titleize, {}, {:id => "gtwy-env"}) %>
    </td>
  </tr>
  <tr>
    <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>
    <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">
  <%= 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

32 entries across 32 versions & 7 rubygems

Version Path
spree-0.11.4 vendor/extensions/theme_default/app/views/admin/payment_methods/_form.html.erb
apispree_core-0.0.0 app/views/admin/payment_methods/_form.html.erb
My-Commerce_core-1.1.0 app/views/admin/payment_methods/_form.html.erb
My-Commerce_core-1.0.0 app/views/admin/payment_methods/_form.html.erb
MyCommerceapi-1.0.0 core/app/views/admin/payment_methods/_form.html.erb
MyCommerce-0.0.3 core/app/views/admin/payment_methods/_form.html.erb
rfcommerce_core-0.0.3 app/views/admin/payment_methods/_form.html.erb
spree_core-0.60.6 app/views/admin/payment_methods/_form.html.erb
spree_core-0.60.5 app/views/admin/payment_methods/_form.html.erb
spree-0.11.3 vendor/extensions/theme_default/app/views/admin/payment_methods/_form.html.erb
spree_core-0.30.2 app/views/admin/payment_methods/_form.html.erb
spree_core-0.40.4 app/views/admin/payment_methods/_form.html.erb
spree_core-0.50.4 app/views/admin/payment_methods/_form.html.erb
spree_core-0.60.4 app/views/admin/payment_methods/_form.html.erb
spree_core-0.50.3 app/views/admin/payment_methods/_form.html.erb
spree_core-0.60.3 app/views/admin/payment_methods/_form.html.erb
spree_core-0.60.2 app/views/admin/payment_methods/_form.html.erb
spree_core-0.60.1 app/views/admin/payment_methods/_form.html.erb
spree_core-0.60.0 app/views/admin/payment_methods/_form.html.erb
spree_core-0.60.0.RC1 app/views/admin/payment_methods/_form.html.erb