mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Add guest label to admin customers index
This commit is contained in:
committed by
Matt-Yorkley
parent
4fe1e1fc9f
commit
583f16b38d
@@ -1,3 +1,14 @@
|
||||
.tag-with-rules {
|
||||
color: black;
|
||||
}
|
||||
|
||||
table#customers.index {
|
||||
|
||||
tr.customer {
|
||||
|
||||
.guest-label {
|
||||
color: #999;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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' }
|
||||
|
||||
@@ -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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user