mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 01:35:10 +02:00
Refactor and view improvement
This commit is contained in:
parent
1f2ba55acb
commit
03a66e2e68
5 changed files with 47 additions and 34 deletions
|
@ -1,7 +1,8 @@
|
|||
- content_for :actions do
|
||||
= link_to(t(:new), new_registrar_domain_path, class: 'btn btn-primary')
|
||||
= link_to(t(:new), new_registrar_domain_path, class: 'btn btn-default')
|
||||
= link_to(t(:transfer), transfer_registrar_domains_path, class: 'btn btn-default')
|
||||
= link_to(t(:keyrelay), registrar_keyrelay_path, class: 'btn btn-default')
|
||||
= link_to(t(:nameservers), registrar_nameservers_path, class: 'btn btn-default')
|
||||
= render 'shared/title', name: t(:domains)
|
||||
|
||||
.row
|
||||
|
@ -12,7 +13,7 @@
|
|||
= text_field_tag :domain_name, params[:domain_name], class: 'form-control', placeholder: t('domain_name'), autocomplete: 'off', autofocus: true
|
||||
.col-md-1.text-right.text-center-xs
|
||||
.form-group
|
||||
%button.btn.btn-primary
|
||||
%button.btn.btn-default
|
||||
|
||||
%span.glyphicon.glyphicon-search
|
||||
|
||||
|
@ -37,7 +38,7 @@
|
|||
= Time.zone.parse(x['valid_to']).try(:to_date)
|
||||
%td
|
||||
= link_to(t(:edit), edit_registrar_domains_path(domain_name: x['name']),
|
||||
class: 'btn btn-primary btn-xs')
|
||||
class: 'btn btn-default btn-xs')
|
||||
= link_to(t(:renew), renew_registrar_domains_path(domain_name: x['name']),
|
||||
class: 'btn btn-default btn-xs')
|
||||
= link_to(t(:delete), delete_registrar_domains_path(domain_name: x['name']),
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
/ - content_for :actions do
|
||||
/ = link_to(t(:add_deposit), new_registrar_deposit_path, class: 'btn btn-primary')
|
||||
/ = link_to(t(:account_activity), registrar_account_activities_path, class: 'btn btn-default')
|
||||
- content_for :actions do
|
||||
= link_to(t(:back_to_domains), registrar_domains_path, class: 'btn btn-default')
|
||||
= render 'shared/title', name: t(:nameservers)
|
||||
|
||||
.row
|
||||
|
@ -20,10 +19,13 @@
|
|||
|
||||
%span.glyphicon.glyphicon-search
|
||||
|
||||
%button.btn.btn-default{name: 'replace'}
|
||||
= t(:replace)
|
||||
%button.btn.btn-default.js-reset-form
|
||||
= t(:clear_fields)
|
||||
%button.btn.btn-primary{name: 'replace'}
|
||||
= t(:replace)
|
||||
.row
|
||||
.col-md-12
|
||||
%p.help-block= t('hostnames_will_be_replaced_only_if_domain_validates_with_the_new_nameserver')
|
||||
%hr
|
||||
.row
|
||||
.col-md-12
|
||||
|
@ -31,9 +33,10 @@
|
|||
%table.table.table-hover.table-condensed
|
||||
%thead
|
||||
%tr
|
||||
%th{class: 'col-xs-4'}= t(:hostname)
|
||||
%th{class: 'col-xs-4'}= t(:ipv4)
|
||||
%th{class: 'col-xs-4'}= t(:ipv6)
|
||||
%th{class: 'col-xs-3'}= t(:hostname)
|
||||
%th{class: 'col-xs-3'}= t(:ipv4)
|
||||
%th{class: 'col-xs-3'}= t(:ipv6)
|
||||
%th{class: 'col-xs-3'}= t(:domain)
|
||||
%tbody
|
||||
- @nameservers.each do |x|
|
||||
%tr
|
||||
|
@ -46,9 +49,10 @@
|
|||
%td= x.hostname
|
||||
%td= x.ipv4
|
||||
%td= x.ipv4
|
||||
%td= link_to(x.domain, info_registrar_domains_url(domain_name: x.domain.name))
|
||||
.row
|
||||
.col-md-12
|
||||
/ = paginate @nameservers
|
||||
= paginate @nameservers
|
||||
|
||||
:coffee
|
||||
$(".js-reset-form").on "click", (e) ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue