Sha256: 49fdc2836fd303f68baa0b9aaa054a1e4a15e4ab059718e357e4255327b2e223

Contents?: true

Size: 1.47 KB

Versions: 2

Compression:

Stored size: 1.47 KB

Contents

<% content_for :page_title do %>
  <%= link_to @user.email, spree.edit_admin_user_url(@user) %> /
  <%= Spree.t('avalara_entity_use_codes') %>
<% end %>

<%= render partial: 'spree/admin/users/sidebar', locals: { current: :avalara_informtion } %>

<fieldset data-hook="admin_user_edit_general_settings" class="alpha twelve columns">
  <div data-hook="admin_user_edit_form_header">
    <%= render partial: 'spree/shared/error_messages', locals: { target: @user } %>
  </div>

  <div data-hook="admin_user_edit_form">
    <%= form_for [:admin, @user], method: :put do |f| %>
      <div class="form-group">
        <%= label_tag :avatax_entity_use_code_id, Spree.t(:avalara_entity_use_code) %><br />
        <%= f.select(:avatax_entity_use_code_id, @use_codes, { include_blank: true }, class: 'form-control'  ) %>
      </div>

      <div class="form-group">
        <%= f.label :exemption_number, Spree.t(:exemption_number) %>
        <%= f.text_field :exemption_number, class: 'form-control' %>
      </div>

      <div class="form-group">
        <%= f.label :vat_id, Spree.t(:vat_identification_number) %>
        <%= f.text_field :vat_id, class: 'form-control' %>
      </div>

      <div class="form-group">
        <% if can?(:update, @user) %>
          <div data-hook="admin_user_edit_form_button">
            <%= render partial: 'spree/admin/shared/edit_resource_links', locals: { collection_url: admin_users_url } %>
          </div>
        <% end %>
      </div>
    <% end %>
  </div>
</fieldset>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_avatax_official-1.8.0 app/views/spree/admin/users/avalara_information.html.erb
spree_avatax_official-1.7.1 app/views/spree/admin/users/avalara_information.html.erb