Sha256: 515ce87800b8507ef555bd69836e3d667b8ce921f8616e7021a23384e5439db5

Contents?: true

Size: 1.43 KB

Versions: 15

Compression:

Stored size: 1.43 KB

Contents

<div data-hook="admin_recurring_form_fields">

  <div data-hook="recurring">

    <div class="alpha four columns">
      <div id="preference-settings" data-hook class="field">
        <%= label_tag nil, Spree.t(:provider) %>
        <%= select(:recurring, :type, Rails.application.config.spree.recurring_providers.collect {|pro| [pro.display_name, pro]}, {}, {disabled: !@recurring.new_record?, class: 'select2 fullwidth'}) %>

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

          <% if @recurring.respond_to?(:preferences) %>
            <div id="gateway-settings-warning" class="info warning"><%= Spree.t(:provider_settings_warning) %></div>
          <% end %>
        <% end %>
      </div>      
      <div data-hook="active" class="field">
        <ul>
          <li>
            <%= label_tag :nil, Spree.t(:active) %>
            <%= check_box :recurring, :active %>
          </li>
        </ul>
      </div>
    </div>
    
    <div class="omega eight columns">
      <div data-hook="name" class="field">
        <%= label_tag nil, Spree.t(:name) %>
        <%= text_field :recurring, :name, :class => 'fullwidth' %>
      </div>
      <div data-hook="description" class="field">
        <%= label_tag nil, Spree.t(:description) %>
        <%= text_area :recurring, :description, {:cols => 60, :rows => 6, :class => 'fullwidth'} %>
      </div>  
    </div>
    
  </div>
</div>

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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
spree_account_recurring-1.3.1 app/views/spree/admin/recurrings/_form.html.erb
spree_account_recurring-1.2.1 app/views/spree/admin/recurrings/_form.html.erb
spree_account_recurring-1.3.0 app/views/spree/admin/recurrings/_form.html.erb
spree_account_recurring-1.2.0 app/views/spree/admin/recurrings/_form.html.erb
spree_account_recurring-1.1.5 app/views/spree/admin/recurrings/_form.html.erb
spree_account_recurring-1.0.7 app/views/spree/admin/recurrings/_form.html.erb
spree_account_recurring-1.1.4 app/views/spree/admin/recurrings/_form.html.erb
spree_account_recurring-1.0.6 app/views/spree/admin/recurrings/_form.html.erb
spree_account_recurring-1.0.5 app/views/spree/admin/recurrings/_form.html.erb
spree_account_recurring-1.1.3 app/views/spree/admin/recurrings/_form.html.erb
spree_account_recurring-1.1.2 app/views/spree/admin/recurrings/_form.html.erb
spree_account_recurring-1.0.4 app/views/spree/admin/recurrings/_form.html.erb
spree_account_recurring-1.0.3 app/views/spree/admin/recurrings/_form.html.erb
spree_account_recurring-1.0.2 app/views/spree/admin/recurrings/_form.html.erb
spree_account_recurring-1.1.1 app/views/spree/admin/recurrings/_form.html.erb