mirror of
https://github.com/internetee/registry.git
synced 2025-08-01 23:42:04 +02:00
Adding nameservers to domain
This commit is contained in:
parent
24e7beed5b
commit
c24c8c7181
10 changed files with 69 additions and 8 deletions
|
@ -12,7 +12,11 @@
|
|||
.col-md-6
|
||||
.form-group
|
||||
= f.label :registrar
|
||||
= f.text_field(:registrar, class: 'form-control js-registrars-typeahead', placeholder: t('shared.registrar_name'))
|
||||
= f.text_field(:registrar, class: 'form-control js-registrars-typeahead', placeholder: t('shared.registrar_name'), autocomplete: 'off')
|
||||
= f.hidden_field(:registrar_id)
|
||||
.form-group
|
||||
= f.label :owner_contact
|
||||
= f.text_field(:owner_contact, class: 'form-control js-contacts-typeahead', placeholder: t('shared.contact_code'))
|
||||
= f.text_field(:owner_contact, class: 'form-control js-contacts-typeahead', placeholder: t('shared.contact_code'), autocomplete: 'off')
|
||||
.row
|
||||
.col-md-12.text-right
|
||||
= button_tag(t('shared.save'), class: 'btn btn-primary')
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
.panel.panel-default
|
||||
.panel-heading= t('shared.nameservers')
|
||||
.panel-heading.clearfix
|
||||
.pull-left
|
||||
= t('shared.nameservers')
|
||||
.pull-right
|
||||
= link_to(t('shared.add'), new_admin_domain_nameserver_path(@domain), class: 'btn btn-primary btn-xs')
|
||||
.table-responsive
|
||||
%table.table.table-hover.table-bordered.table-condensed
|
||||
%thead
|
||||
|
@ -17,3 +21,7 @@
|
|||
%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')
|
||||
%tfoot
|
||||
%tr
|
||||
%td{colspan: 4}
|
||||
Nameservers count must be between %{min}-%{max}
|
||||
|
|
3
app/views/admin/nameservers/new.haml
Normal file
3
app/views/admin/nameservers/new.haml
Normal file
|
@ -0,0 +1,3 @@
|
|||
= form_for([:admin, @domain, @nameserver]) do |f|
|
||||
= f.text_field :hostname
|
||||
= f.button 'save'
|
Loading…
Add table
Add a link
Reference in a new issue