Fix closing list problem not unlinking the table active list

This commit is contained in:
2014-12-17 17:51:31 +01:00
parent bdcb0d60b8
commit 87881177ab
8 changed files with 24 additions and 21 deletions
@@ -6,10 +6,15 @@
if table.active_list
div.table-actions
.title= table.number
.table-action-row
= view "mark-list-helped-button" contentBinding="table.active_list"
= view "close-list-button" contentBinding="table.active_list"
.table-action-row=currency table.active_list.total
if table.active_list
.table-action-row
= view "mark-list-helped-button" contentBinding="table.active_list"
= view "close-list-button" contentBinding="table.active_list"
each order in table.active_list.active_orders
.table-action-row= order.display_tag
.table-action-row.total
= link-to "list" table.active_list
=currency table.active_list.total
/.table-action-row
a{action "editTable" table}: span.fa.fa-lg.fa-wrench
each user in table.active_list.users
@@ -1,6 +0,0 @@
if content.list.needs_help
li
button.btn.btn-info.btn-small id="list-is-helped-button-#{content.list.id}" onclick="Qsupplier.mark_list_as_helped('{{content.list.id}}')" {{t "list.is_helped_button"}}
button.btn.btn-warning.btn-small class="of-list-#{content.list.id}" onclick="Qsupplier.close_list('#{content.list.id}')" data-t="list.close_list"
li
a data-t='section.tables_view.table_actions.got_to_table' href="suppliers_table_path(@table)" {{t 'section.tables_view.table_actions.got_to_table'}}