mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 18:56:05 +02:00
Merge pull request #486 from internetee/remove-registrar-nameservers-controller
Remove unused registrar name servers controller
This commit is contained in:
commit
aa7b29f5a1
5 changed files with 0 additions and 164 deletions
|
@ -1,61 +0,0 @@
|
|||
- content_for :actions do
|
||||
= link_to(t(:back_to_domains), registrar_domains_path, class: 'btn btn-default')
|
||||
= render 'shared/title', name: t(:nameservers)
|
||||
|
||||
.row
|
||||
.col-md-12
|
||||
= search_form_for @q, url: [:registrar, :nameservers], html: { style: 'margin-bottom: 0;' } do |f|
|
||||
.row
|
||||
.col-md-3
|
||||
.form-group
|
||||
= f.label t(:hostname_end)
|
||||
= f.search_field :hostname_end, class: 'form-control', placeholder: t(:hostname_end), autocomplete: 'off'
|
||||
.col-md-3
|
||||
.form-group
|
||||
= label_tag t(:hostname_end_replacement)
|
||||
= text_field_tag :hostname_end_replacement, params[:hostname_end_replacement], class: 'form-control', placeholder: t(:hostname_end_replacement), autocomplete: 'off'
|
||||
.col-md-4{style: 'padding-top: 25px;'}
|
||||
%button.btn.btn-default
|
||||
|
||||
%span.glyphicon.glyphicon-search
|
||||
|
||||
%button.btn.btn-default.js-reset-form
|
||||
= t(:clear_fields)
|
||||
%button.btn.btn-warning{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
|
||||
.table-responsive
|
||||
%table.table.table-hover.table-condensed
|
||||
%thead
|
||||
%tr
|
||||
%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
|
||||
- if params[:q] && params[:q][:hostname_end]
|
||||
- hn = x.hostname.chomp(params[:q][:hostname_end])
|
||||
%td
|
||||
= precede hn do
|
||||
%strong= params[:q][:hostname_end]
|
||||
- else
|
||||
%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
|
||||
|
||||
:coffee
|
||||
$(".js-reset-form").on "click", (e) ->
|
||||
e.preventDefault();
|
||||
window.location = "#{registrar_nameservers_path}"
|
||||
|
|
@ -1,38 +0,0 @@
|
|||
- content_for :actions do
|
||||
= link_to(t(:back_to_domains), registrar_domains_path, class: 'btn btn-default')
|
||||
= render 'shared/title', name: t(:nameservers)
|
||||
|
||||
= form_tag url: [:registrar, :replace_all], html: { style: 'margin-bottom: 0;' } do
|
||||
#nameservers
|
||||
- @domain_params[:nameservers_attributes].each do |k, v|
|
||||
.panel.panel-default
|
||||
.panel-heading.clearfix
|
||||
.pull-left= t(:nameserver)
|
||||
.pull-right
|
||||
= link_to(t(:add_another), '#', class: 'btn btn-default btn-xs add-nameserver')
|
||||
= link_to(t(:delete), '#', class: 'btn btn-default btn-xs destroy')
|
||||
.panel-body
|
||||
.form-group
|
||||
.col-md-3.control-label
|
||||
= label_tag "domain_nameservers_attributes_#{k}_hostname", t(:hostname), class: 'required'
|
||||
.col-md-7
|
||||
= text_field_tag "domain[nameservers_attributes][#{k}][hostname]", v['hostname'],
|
||||
class: 'form-control', required: true
|
||||
.form-group
|
||||
.col-md-3.control-label
|
||||
= label_tag "domain_nameservers_attributes_#{k}_ipv4", t(:ipv4)
|
||||
.col-md-7
|
||||
= text_field_tag "domain[nameservers_attributes][#{k}][ipv4]", v['ipv4'],
|
||||
class: 'form-control', ipv4: true
|
||||
.form-group
|
||||
.col-md-3.control-label
|
||||
= label_tag "domain_nameservers_attributes_#{k}_ipv6", t(:ipv6)
|
||||
.col-md-7
|
||||
= text_field_tag "domain[nameservers_attributes][#{k}][ipv6]", v['ipv6'],
|
||||
class: 'form-control', ipv6: true
|
||||
.row
|
||||
.col-md-8.text-right
|
||||
= button_tag(t('shared.save'), class: 'btn btn-warning')
|
||||
:coffee
|
||||
$("#nameservers").nestedAttributes
|
||||
bindAddTo: $(".add-nameserver")
|
Loading…
Add table
Add a link
Reference in a new issue