mirror of
https://github.com/internetee/registry.git
synced 2025-07-20 09:46:09 +02:00
21 lines
680 B
Text
21 lines
680 B
Text
- panel_class = contact.errors.messages[:statuses] ? 'panel-danger' : 'panel-default'
|
|
#contact_statuses.panel{class: panel_class}
|
|
.panel-heading.clearfix
|
|
= t(:statuses)
|
|
.table-responsive
|
|
%table.table.table-hover.table-bordered.table-condensed
|
|
%thead
|
|
%tr
|
|
%th{class: 'col-xs-6'}= t(:status)
|
|
%th{class: 'col-xs-6'}= t(:notes)
|
|
%tbody
|
|
- contact.statuses.each do |status|
|
|
%tr
|
|
%td= status
|
|
%td= contact.status_notes[status]
|
|
|
|
- if contact.errors.messages[:statuses]
|
|
%tfoot
|
|
- @domain.errors.messages[:statuses].each do |s|
|
|
%tr
|
|
%td{colspan: 4}= s
|