diff options
author | Filipp Lepalaan <filipp@mac.com> | 2016-10-26 16:09:19 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2016-10-26 16:09:19 +0300 |
commit | 937dc1fd0c74b2d53c53a20fdb7c84e9c4b73b5f (patch) | |
tree | e3c66bf2cdd28966b91931ead898807937783e84 /servo/templates/orders | |
parent | 247297eb673dc8dd20713e0f9c8938a70e7e91be (diff) | |
download | Servo-937dc1fd0c74b2d53c53a20fdb7c84e9c4b73b5f.tar.gz Servo-937dc1fd0c74b2d53c53a20fdb7c84e9c4b73b5f.tar.bz2 Servo-937dc1fd0c74b2d53c53a20fdb7c84e9c4b73b5f.zip |
Assign/unassign from order toolbar
Diffstat (limited to 'servo/templates/orders')
-rwxr-xr-x | servo/templates/orders/toolbar.html | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/servo/templates/orders/toolbar.html b/servo/templates/orders/toolbar.html index 425833c..286d93e 100755 --- a/servo/templates/orders/toolbar.html +++ b/servo/templates/orders/toolbar.html @@ -77,14 +77,20 @@ </a> <ul class="dropdown-menu"> {% if request.user in order.followed_by.all %} - <li><a href="{% url 'orders-toggle_follow' order.pk %}">{% trans "Unfollow Order" %}</a></li> + <li><a href="{% url 'orders-toggle_follow' order.pk %}">{% trans "Unfollow" %}</a></li> {% else %} - <li><a href="{% url 'orders-toggle_follow' order.pk %}">{% trans "Follow Order" %}</a></li> + <li><a href="{% url 'orders-toggle_follow' order.pk %}">{% trans "Follow" %}</a></li> {% endif %} + {% if request.user == order.user %} + <li><a href="{% url 'orders-remove_user' order.pk request.user.pk %}">{% trans "Unassign" %}</a></li> + {% else %} + <li><a href="{% url 'orders-update' order.pk 'user' request.user.pk %}">{% trans "Assign to me" %}</a></li> + {% endif %} + <li class="divider"></li> {% if perms.servo.add_order and perms.servo.copy_order %} - <li><a href="{% url 'orders-copy_order' order.pk %}">{% trans "Duplicate Order" %}</a></li> + <li><a href="{% url 'orders-copy_order' order.pk %}">{% trans "Duplicate" %}</a></li> {% else %} - <li><a class="disabled" href="#">{% trans "Duplicate Order" %}</a></li> + <li><a class="disabled" href="#">{% trans "Duplicate" %}</a></li> {% endif %} <li><a href="{% url 'barcodes-view' order.code %}?f=svg" target="_blank">{% trans "Show Barcode" %}</a></li> <li class="divider"></li> |