- model_class = List
.page-header= title :show, @list

dl.dl-horizontal.show-list
  dt= model_class.human_attribute_name(:state)
  dd= @list.state
  dt= model_class.human_attribute_name(:needs_help)
  dd= @list.needs_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?
    dt= Table.model_name.human
    dd= link_to @list.table.number, [:admin, @list.table]
  dt= Supplier.model_name.human
  dd= link_to @list.supplier.name, [:admin, @list.supplier]

.form-actions
  = link_to t("helpers.links.back"), admin_lists_path, class: 'btn'
  '
  = link_to t('helpers.links.edit'), [:edit, :admin, @list], class: 'btn'
  '
  = link_to t("helpers.links.destroy"), [:admin, @list], method: :delete, data: {confirm: are_you_sure? }, class: 'btn btn-danger'
