Add guest label to admin customers index

This commit is contained in:
Matt-Yorkley
2018-06-14 15:46:21 +01:00
committed by Matt-Yorkley
parent 4fe1e1fc9f
commit 583f16b38d
3 changed files with 15 additions and 1 deletions

View File

@@ -1,3 +1,14 @@
.tag-with-rules {
color: black;
}
table#customers.index {
tr.customer {
.guest-label {
color: #999;
display: block;
}
}
}

View File

@@ -75,7 +75,9 @@
%tr.customer{ 'ng-repeat' => "customer in filteredCustomers = ( customers | filter:quickSearch | orderBy:predicate:reverse ) | limitTo:customerLimit track by customer.id", 'ng-class-even' => "'even'", 'ng-class-odd' => "'odd'", :id => "c_{{customer.id}}" }
-# %td.bulk
-# %input{ :type => "checkbox", :name => 'bulk', 'ng-model' => 'customer.checked' }
%td.email{ 'ng-show' => 'columns.email.visible', "ng-bind" => '::customer.email' }
%td.email{ 'ng-show' => 'columns.email.visible'}
%span{ 'ng-bind' => '::customer.email' }
%span.guest-label{ 'ng-show' => 'customer.user_id == null' }= t('.guest_label')
%td.name{ 'ng-show' => 'columns.name.visible'}
%input{ type: 'text', name: 'name', ng: { model: 'customer.name' }, 'obj-for-update' => 'customer', 'attr-for-update' => 'name'}
%td.code{ 'ng-show' => 'columns.code.visible' }

View File

@@ -376,6 +376,7 @@ en:
update_address: 'Update Address'
confirm_delete: 'Sure to delete?'
search_by_email: "Search by email/code..."
guest_label: 'Guest checkout'
destroy:
has_associated_orders: 'Delete failed: customer has associated orders with his shop'