cirandas.net

commit d1ab4af6c9ee96a6319457abcc823ace6303e947

Author: Hugo Melo <hugo@riseup.net>

Change the button to remove from order

 plugins/orders/locales/en-US.yml | 2 +-
 plugins/orders/locales/pt-BR.yml | 2 +-
 plugins/orders/public/javascripts/views/item.tag.slim | 4 ++--


diff --git a/plugins/orders/locales/en-US.yml b/plugins/orders/locales/en-US.yml
index 469442f8144f09a8bb0b0a8e4e2aa13af76f6bba..8b921add5b8afd5abd48b008833847c93a8a3251 100644
--- a/plugins/orders/locales/en-US.yml
+++ b/plugins/orders/locales/en-US.yml
@@ -193,7 +193,7 @@
       item:
         no_stock: "This product is not stock anymore"
         _edit:
-          remove_from_order: "remove from order"
+          remove_from_order: "Remove"
           removed: 'removed'
           submit: 'OK'
           this_product_requires: "This product requires a minimum of %{value}. The minimum was kept."




diff --git a/plugins/orders/locales/pt-BR.yml b/plugins/orders/locales/pt-BR.yml
index f92be74d8bea065f5adb2c3921233fc757ad6f26..242f62d4923ce88f9a4c546b15c8d25556156dc5 100644
--- a/plugins/orders/locales/pt-BR.yml
+++ b/plugins/orders/locales/pt-BR.yml
@@ -194,7 +194,7 @@
       item:
         no_stock: "Este produto não está mais em estoque"
         _edit:
-          remove_from_order: "Remover do pedido"
+          remove_from_order: "Remover"
           removed: 'removido'
           submit: 'OK'
           this_product_requires: "Este produto requer um mínimo de %{value}. O mínimo foi mantido."




diff --git a/plugins/orders/public/javascripts/views/item.tag.slim b/plugins/orders/public/javascripts/views/item.tag.slim
index 70fe3b4307e5c49e96089f9c90024011f81deebb..2454ef409eaac97de473424ee8638bb61c2e79f9 100644
--- a/plugins/orders/public/javascripts/views/item.tag.slim
+++ b/plugins/orders/public/javascripts/views/item.tag.slim
@@ -17,9 +17,9 @@         order-item-quantity-price each='{status_id,status in item.statuses}' item='{item}' status='{status}' status-id='{status_id}' if='{!(status.flags.not_modified && !status.flags.editable)}'
 
     .more
       .actions if='{parent.order.may_edit}'
-        a href='#' onclick='{adminRemove}' if='{parent.order.admin}'
+        a class="action-button" href='#' onclick='{adminRemove}' if='{parent.order.admin}'
           '{t('views.item._edit.remove_from_order')}
-        a href='#' onclick='{userRemove}' if='{!parent.order.admin}'
+        a class="action-button" href='#' onclick='{userRemove}' if='{!parent.order.admin}'
           '{t('views.item._edit.remove_from_order')}
 
       .orders-price-with-unit.price-with-unit.box-field if='{parent.order.may_edit}' title="{priceUnit()}"