backup push
This commit is contained in:
@@ -4,6 +4,14 @@
|
||||
= f.label :state, class: 'control-label'
|
||||
.controls
|
||||
= f.text_field :state, class: 'text_field'
|
||||
.control-group class=(@list.errors[:need_help].any? ? 'error' : nil)
|
||||
= f.label :need_help, class: 'control-label'
|
||||
.controls
|
||||
= f.check_box :need_help, class: 'check_box'
|
||||
.control-group class=(@list.errors[:needs_payment].any? ? 'error' : nil)
|
||||
= f.label :needs_payment, class: 'control-label'
|
||||
.controls
|
||||
= f.check_box :needs_payment, class: 'check_box'
|
||||
.control-group class=(@list.errors[:closed_at].any? ? 'error' : nil)
|
||||
= f.label :closed_at, class: 'control-label'
|
||||
.controls
|
||||
|
||||
@@ -5,6 +5,8 @@ div.page-header= title :index, model_class
|
||||
thead
|
||||
tr
|
||||
th= model_class.human_attribute_name(:state)
|
||||
th= model_class.human_attribute_name(:need_help)
|
||||
th= model_class.human_attribute_name(:needs_payment)
|
||||
th= model_class.human_attribute_name(:closed_at)
|
||||
th= Table.model_name.human
|
||||
th= model_class.human_attribute_name(:created_at)
|
||||
@@ -13,8 +15,10 @@ div.page-header= title :index, model_class
|
||||
- @lists.each do |list|
|
||||
tr
|
||||
td= link_to list.state, list
|
||||
td= list.need_help
|
||||
td= list.needs_payment
|
||||
td= list.closed_at
|
||||
td= link_to list.table.number, list.table
|
||||
td= link_to_if list.table.present?, list.table.try(:number), list.table
|
||||
td=l list.created_at, format: :short
|
||||
td
|
||||
= link_to t('helpers.links.edit'), [:edit, list], class: 'btn btn-mini'
|
||||
|
||||
@@ -4,6 +4,10 @@
|
||||
dl.dl-horizontal.show-list
|
||||
dt= model_class.human_attribute_name(:state)
|
||||
dd= @list.state
|
||||
dt= model_class.human_attribute_name(:need_help)
|
||||
dd= @list.need_help
|
||||
dt= model_class.human_attribute_name(:needs_payment)
|
||||
dd= @list.needs_payment
|
||||
dt= model_class.human_attribute_name(:closed_at)
|
||||
dd= @list.closed_at
|
||||
- if @list.table.present?
|
||||
|
||||
Reference in New Issue
Block a user