Sha256: 5f1447f821876a20de43849b021447107bc469fe5c9d52c4f4fbafcbe4edfbe8

Contents?: true

Size: 1.08 KB

Versions: 24

Compression:

Stored size: 1.08 KB

Contents

<fieldset data-hook="admin_user_api_key" class="omega six columns">
  <legend><%= Spree.t('access', :scope => 'api') %></legend>

  <% if @user.spree_api_key.present? %>
    <div class="field">
      <%= label_tag Spree.t('key', :scope => 'api') %>:
      <%= @user.spree_api_key %>
    </div>
    <div class="filter-actions actions">
      <%= form_tag spree.clear_api_key_admin_user_path(@user), :method => :put do %>
        <%= button Spree.t('clear_key', :scope => 'api'), 'icon-trash' %>
      <% end %>

      <span class="or"><%= Spree.t(:or)%></span>

      <%= form_tag spree.generate_api_key_admin_user_path(@user), :method => :put do %>
        <%= button Spree.t('regenerate_key', :scope => 'api'), 'icon-refresh' %>
      <% end %>
    </div>

  <% else %>

    <div class="no-objects-found"><%= Spree.t('no_key', :scope => 'api') %></div>

    <div class="filter-actions actions">
      <%= form_tag spree.generate_api_key_admin_user_path(@user), :method => :put do %>
        <%= button Spree.t('generate_key', :scope => 'api'), 'icon-key' %>
      <% end %>
    </div>
  <% end %>
</fieldset>

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
spree_api-2.1.12 app/views/spree/admin/users/_api_fields.html.erb
spree_api-2.1.11 app/views/spree/admin/users/_api_fields.html.erb
spree_api-2.1.10 app/views/spree/admin/users/_api_fields.html.erb
spree_api-2.0.13 app/views/spree/admin/users/_api_fields.html.erb
spree_api-2.1.9 app/views/spree/admin/users/_api_fields.html.erb
spree_api-2.1.8 app/views/spree/admin/users/_api_fields.html.erb
spree_api-2.0.12 app/views/spree/admin/users/_api_fields.html.erb
spree_api-2.1.7 app/views/spree/admin/users/_api_fields.html.erb
spree_api-2.0.11 app/views/spree/admin/users/_api_fields.html.erb
spree_api-2.0.10 app/views/spree/admin/users/_api_fields.html.erb
spree_api-2.1.6 app/views/spree/admin/users/_api_fields.html.erb
spree_api-2.2.0 app/views/spree/admin/users/_api_fields.html.erb
spree_api-2.1.5 app/views/spree/admin/users/_api_fields.html.erb
spree_api-2.0.9 app/views/spree/admin/users/_api_fields.html.erb
spree_api-2.1.4 app/views/spree/admin/users/_api_fields.html.erb
spree_api-2.0.8 app/views/spree/admin/users/_api_fields.html.erb
spree_api-2.1.3 app/views/spree/admin/users/_api_fields.html.erb
spree_api-2.0.7 app/views/spree/admin/users/_api_fields.html.erb
spree_api-2.1.2 app/views/spree/admin/users/_api_fields.html.erb
spree_api-2.0.6 app/views/spree/admin/users/_api_fields.html.erb