working ember... again
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
tbody
|
||||
- @sections.each do |section|
|
||||
tr
|
||||
td.link= link_to section.title, [:tables_view, :suppliers, section]
|
||||
td.link= link_to section.title, [:suppliers, section]
|
||||
td.table-info
|
||||
span.table-count= section.tables.size
|
||||
span.active-table-count= (@active_table_ids & section.tables.map(&:id)).size
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
- model_class = Section
|
||||
- content_for :head do
|
||||
= javascript_include_tag 'supplier/app/application'
|
||||
.page-header
|
||||
h1 data-t='section.show.title'
|
||||
dl.dl-horizontal.show-list
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
- model_class = Section
|
||||
- content_for :row do
|
||||
- content_for :head do
|
||||
= javascript_include_tag 'supplier/app/application'
|
||||
/- content_for :row do
|
||||
.span12.section-title= @section.title
|
||||
.span12
|
||||
.well.section-tables-container.section-tables-active
|
||||
@@ -13,7 +15,7 @@
|
||||
span.needs_payment.icon-flag
|
||||
span.needs_help.icon-bell
|
||||
span.active_order.icon-glass
|
||||
#section-table-menu-container.hide
|
||||
/#section-table-menu-container.hide
|
||||
- @tables.each do |table|
|
||||
.section-table-menu-content class="section-table-menu-#{table.id} section-table-list-#{table.active_list_id}"
|
||||
button.btn.btn-info.list-is-helped.hide Question answered!
|
||||
|
||||
@@ -22,7 +22,7 @@ div.page-header= title :index, model_class
|
||||
tr
|
||||
td.link= link_to table.number, [:suppliers, table]
|
||||
td.link= link_to_if table.section.present?, table.section.try(:title), tables_view_suppliers_section_path(table.section)
|
||||
td.timestamp data-time=table.created_at.utc.iso8601
|
||||
td.timestamp data-time=table.created_at.try(:utc).try(:iso8601)
|
||||
td.actions
|
||||
= link_to t('helpers.links.edit'), [:edit, :suppliers, table], class: 'btn btn-mini', data: {t: 'helpers.links.edit'}
|
||||
'
|
||||
|
||||
Reference in New Issue
Block a user