app/views/spree/admin/users/index.html.erb in spree_backend-4.0.0.rc3 vs app/views/spree/admin/users/index.html.erb in spree_backend-4.0.0
- old
+ new
@@ -29,13 +29,15 @@
<%= f.label :bill_address_lastname_cont, Spree.t(:last_name) %>
<%= f.text_field :bill_address_lastname_cont, class: 'form-control js-filterable' %>
</div>
</div>
</div>
- <div class="form-group">
- <%= f.label :bill_address_company_cont, Spree.t(:company) %>
- <%= f.text_field :bill_address_company_cont, class: 'form-control js-filterable' %>
- </div>
+ <% if Spree::Config[:company] %>
+ <div class="form-group">
+ <%= f.label :bill_address_company_cont, Spree.t(:company) %>
+ <%= f.text_field :bill_address_company_cont, class: 'form-control js-filterable' %>
+ </div>
+ <% end %>
<div data-hook="admin_users_index_search_buttons" class="form-actions">
<%= button Spree.t(:search), 'search' %>
</div>
<% end %>
</div>