Sha256: 4638edc0048a7fae297dbf2b5b7e7e8db47b8332704e421f327dbe1d5e9d4063

Contents?: true

Size: 719 Bytes

Versions: 7

Compression:

Stored size: 719 Bytes

Contents

<h2><%= t('access', :scope => 'spree.api') %></h2>

<% if @user.spree_api_key.present? %>
  <p><strong><%= t('key', :scope => 'spree.api') %></strong> <%= @user.spree_api_key %></p>

  <%= form_tag spree.clear_api_key_admin_user_path(@user), :method => :put do %>
    <%= button t('clear_key', :scope => 'spree.api') %>
  <% end %>

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

<% else %>

  <p><%= t('no_key', :scope => 'spree.api') %></p>
  <%= form_tag spree.generate_api_key_admin_user_path(@user), :method => :put do %>
    <%= button t('generate_key', :scope => 'spree.api') %>
  <% end %>
<% end %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
spree_api-1.2.5 app/views/spree/admin/users/_api_fields.html.erb
spree_api-1.2.4 app/views/spree/admin/users/_api_fields.html.erb
spree_api-1.2.3 app/views/spree/admin/users/_api_fields.html.erb
spree_api-1.2.2 app/views/spree/admin/users/_api_fields.html.erb
spree_api-1.2.0 app/views/spree/admin/users/_api_fields.html.erb
spree_api-1.2.0.rc2 app/views/spree/admin/users/_api_fields.html.erb
spree_api-1.2.0.rc1 app/views/spree/admin/users/_api_fields.html.erb