Sha256: 44b7de9370abe24f297364a12c7690f7b2087f4f4e571e4b2ba04d70985022f3

Contents?: true

Size: 1.1 KB

Versions: 9

Compression:

Stored size: 1.1 KB

Contents

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

  <% if @user.spree_api_key.present? %>
    <div class="field">
      <%= label_tag t('key', :scope => 'spree.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 t('clear_key', :scope => 'spree.api'), 'icon-trash' %>
      <% end %>

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

  <% else %>

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

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

</fieldset>

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
spree_api-1.3.5 app/views/spree/admin/users/_api_fields.html.erb
spree_api-1.3.4 app/views/spree/admin/users/_api_fields.html.erb
spree_api-1.3.3 app/views/spree/admin/users/_api_fields.html.erb
spree_api-1.3.2 app/views/spree/admin/users/_api_fields.html.erb
spree_api-1.3.1 app/views/spree/admin/users/_api_fields.html.erb
spree_api-1.3.0 app/views/spree/admin/users/_api_fields.html.erb
spree_api-1.3.0.rc2 app/views/spree/admin/users/_api_fields.html.erb
dup_spree_api-1.3.0.rc1 app/views/spree/admin/users/_api_fields.html.erb
spree_api-1.3.0.rc1 app/views/spree/admin/users/_api_fields.html.erb