mirror of
https://github.com/internetee/registry.git
synced 2025-07-24 19:48:28 +02:00
Refatored to use shared/title partial
This commit is contained in:
parent
4c660df43e
commit
8d4124585c
73 changed files with 402 additions and 411 deletions
|
@ -1,5 +1,5 @@
|
|||
%h2= t('zonefile_settings')
|
||||
%hr
|
||||
= render 'shared/title', name: t(:zonefile_settings)
|
||||
|
||||
= form_for [:admin, @zonefile_setting], html: { class: 'form-horizontal' } do |f|
|
||||
.row
|
||||
.col-md-12
|
||||
|
@ -47,4 +47,4 @@
|
|||
|
||||
.row
|
||||
.col-md-12.text-right
|
||||
%button.btn.btn-primary=t('save')
|
||||
%button.btn.btn-primary= t(:save)
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
.row
|
||||
.col-sm-12
|
||||
%h2.text-center-xs= t('zonefile_settings')
|
||||
%hr
|
||||
= render 'shared/title', name: t(:zonefile_settings)
|
||||
|
||||
.row
|
||||
.col-md-12
|
||||
.table-responsive
|
||||
|
@ -9,12 +7,14 @@
|
|||
%thead
|
||||
%tr
|
||||
%th{class: 'col-xs-10'}
|
||||
= t('origin')
|
||||
= t(:origin)
|
||||
%th{class: 'col-xs-2'}
|
||||
= t('action')
|
||||
= t(:action)
|
||||
%tbody
|
||||
- @zonefile_settings.each do |x|
|
||||
%tr
|
||||
%td= link_to(x, edit_admin_zonefile_setting_path(x))
|
||||
%td
|
||||
= link_to(t('generate_zonefile'), admin_zonefiles_path(origin: x.origin), method: 'post', class: 'btn btn-xs btn-primary')
|
||||
= link_to(t(:generate_zonefile),
|
||||
admin_zonefiles_path(origin: x.origin),
|
||||
method: 'post', class: 'btn btn-xs btn-primary')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue