Add statuses and responsive utils

This commit is contained in:
Martin Lensment 2014-09-08 10:52:37 +03:00
parent 9a62319142
commit 98cbae993d
9 changed files with 128 additions and 9 deletions

View file

@ -12,4 +12,7 @@
%tr
%td= link_to(x, root_path)
%td= x.email
%td= link_to(t('shared.edit'), root_path, class: 'btn btn-primary btn-xs')
%td
= link_to(t('shared.edit'), root_path, class: 'btn btn-primary btn-xs')
= link_to(t('shared.detach'), root_path, method: :delete, data: { confirm: t('shared.are_you_sure') }, class: 'btn btn-warning btn-xs')

View file

@ -14,4 +14,6 @@
%td= link_to(x, root_path)
%td= x.ipv4
%td= x.ipv6
%td= link_to(t('shared.edit'), root_path, class: 'btn btn-primary btn-xs')
%td
= link_to(t('shared.edit'), root_path, class: 'btn btn-primary btn-xs')
= link_to(t('shared.delete'), root_path, method: :delete, data: { confirm: t('shared.are_you_sure') }, class: 'btn btn-danger btn-xs')

View file

@ -0,0 +1,17 @@
.panel.panel-default
.panel-heading= t('shared.statuses')
.table-responsive
%table.table.table-hover.table-bordered.table-condensed
%thead
%tr
%th{class: 'col-xs-4'}= t('shared.status')
%th{class: 'col-xs-5'}= t('shared.description')
%th{class: 'col-xs-3'}= t('shared.action')
%tbody
- @domain.domain_statuses.each do |x|
%tr
%td= x.value
%td= x.description
%td
= link_to(t('shared.edit'), root_path, class: 'btn btn-primary btn-xs')
= link_to(t('shared.delete'), root_path, method: :delete, data: { confirm: t('shared.are_you_sure') }, class: 'btn btn-danger btn-xs')

View file

@ -12,4 +12,6 @@
%tr
%td= link_to(x, root_path)
%td= x.email
%td= link_to(t('shared.edit'), root_path, class: 'btn btn-primary btn-xs')
%td
= link_to(t('shared.edit'), root_path, class: 'btn btn-primary btn-xs')
= link_to(t('shared.detach'), root_path, method: :delete, data: { confirm: t('shared.are_you_sure') }, class: 'btn btn-warning btn-xs')

View file

@ -1,11 +1,21 @@
%h2= "#{t('shared.domain_details')}"
.row
.col-sm-6
%h2.text-center-xs
= "#{t('shared.domain_details')}"
.col-sm-6
%h2.text-right.text-center-xs
= link_to(t('shared.edit'), root_path, class: 'btn btn-primary')
= link_to(t('shared.delete'), root_path, method: :delete, data: { confirm: t('shared.are_you_sure') }, class: 'btn btn-danger')
%hr
.row
.col-md-6= render 'admin/domains/partials/general'
.col-md-6= render 'admin/domains/partials/owner'
.row
.col-md-12= render 'admin/domains/partials/nameservers'
.row
.col-md-12= render 'admin/domains/partials/statuses'
.row
.col-md-12= render 'admin/domains/partials/tech_contacts'
.row
.col-md-12= render 'admin/domains/partials/admin_contacts'
.row
.col-md-12= render 'admin/domains/partials/nameservers'