mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 18:29:40 +02:00
Restyle buttons
This commit is contained in:
parent
03a66e2e68
commit
091a863bb9
4 changed files with 26 additions and 26 deletions
|
@ -4,8 +4,8 @@
|
|||
.panel-heading.clearfix
|
||||
.pull-left= t(:contact)
|
||||
.pull-right
|
||||
= link_to(t(:add_another), '#', class: 'btn btn-primary btn-xs add-domain-contact')
|
||||
= link_to(t(:delete), '#', class: 'btn btn-danger btn-xs destroy')
|
||||
= link_to(t(:add_another), '#', class: 'btn btn-default btn-xs add-domain-contact')
|
||||
= link_to(t(:delete), '#', class: 'btn btn-default btn-xs destroy')
|
||||
.panel-body
|
||||
.form-group
|
||||
.col-md-3.control-label
|
||||
|
@ -17,7 +17,7 @@
|
|||
.col-md-3.control-label
|
||||
= label_tag "domain_contacts_attributes_#{k}_code", t(:contact_code), class: 'required'
|
||||
.col-md-7.has-feedback
|
||||
= text_field_tag("domain[contacts_attributes][#{k}][code]", v['code'],
|
||||
= text_field_tag("domain[contacts_attributes][#{k}][code]", v['code'],
|
||||
class: 'form-control', placeholder: t(:contact_code), autocomplete: 'off', required: true)
|
||||
:coffee
|
||||
$("#domain-contacts").nestedAttributes
|
||||
|
|
|
@ -4,67 +4,67 @@
|
|||
.panel-heading.clearfix
|
||||
.pull-left= t(:dnskey)
|
||||
.pull-right
|
||||
= link_to(t(:add_another), '#', class: 'btn btn-primary btn-xs add-dnskey')
|
||||
= link_to(t(:delete), '#', class: 'btn btn-danger btn-xs destroy')
|
||||
= link_to(t(:add_another), '#', class: 'btn btn-default btn-xs add-dnskey')
|
||||
= link_to(t(:delete), '#', class: 'btn btn-default btn-xs destroy')
|
||||
.panel-body
|
||||
- if ENV['show_ds_data_fields'] == 'true'
|
||||
.form-group
|
||||
.col-md-3.control-label
|
||||
= label_tag "domain_dnskeys_attributes_#{k}_ds_key_tag", t(:ds_key_tag)
|
||||
.col-md-7
|
||||
= text_field_tag "domain[dnskeys_attributes][#{k}][ds_key_tag]", v['ds_key_tag'],
|
||||
= text_field_tag "domain[dnskeys_attributes][#{k}][ds_key_tag]", v['ds_key_tag'],
|
||||
{class: 'form-control'}
|
||||
|
||||
.form-group
|
||||
.col-md-3.control-label
|
||||
= label_tag "domain_dnskeys_attributes_#{k}_ds_alg", t(:ds_algorithm)
|
||||
.col-md-7
|
||||
= select_tag "domain[dnskeys_attributes][#{k}][ds_alg]",
|
||||
= select_tag "domain[dnskeys_attributes][#{k}][ds_alg]",
|
||||
options_for_select(Depp::Dnskey::ALGORITHMS, v['ds_alg']), {class: 'form-control'}
|
||||
|
||||
.form-group
|
||||
.col-md-3.control-label
|
||||
= label_tag "domain_dnskeys_attributes_#{k}_ds_digest_type", t(:ds_digest_type)
|
||||
.col-md-7
|
||||
= select_tag "domain[dnskeys_attributes][#{k}][ds_digest_type]",
|
||||
options_for_select(Depp::Dnskey::DS_DIGEST_TYPES, v['ds_digest_type']),
|
||||
= select_tag "domain[dnskeys_attributes][#{k}][ds_digest_type]",
|
||||
options_for_select(Depp::Dnskey::DS_DIGEST_TYPES, v['ds_digest_type']),
|
||||
{class: 'form-control'}
|
||||
|
||||
.form-group
|
||||
.col-md-3.control-label
|
||||
= label_tag "domain_dnskeys_attributes_#{k}_ds_digest", t(:ds_digest)
|
||||
.col-md-7
|
||||
= text_field_tag "domain[dnskeys_attributes][#{k}][ds_digest]", v['ds_digest'],
|
||||
= text_field_tag "domain[dnskeys_attributes][#{k}][ds_digest]", v['ds_digest'],
|
||||
{class: 'form-control'}
|
||||
|
||||
.form-group
|
||||
.col-md-3.control-label
|
||||
= label_tag "domain_dnskeys_attributes_#{k}_flags", t(:flags)
|
||||
.col-md-7
|
||||
= select_tag "domain[dnskeys_attributes][#{k}][flags]",
|
||||
options_for_select(Depp::Dnskey::FLAGS, v['flags']),
|
||||
= select_tag "domain[dnskeys_attributes][#{k}][flags]",
|
||||
options_for_select(Depp::Dnskey::FLAGS, v['flags']),
|
||||
{ class: 'form-control' }
|
||||
|
||||
.form-group
|
||||
.col-md-3.control-label
|
||||
= label_tag "domain_dnskeys_attributes_#{k}_protocol", t(:protocol)
|
||||
.col-md-7
|
||||
= select_tag "domain[dnskeys_attributes][#{k}][protocol]",
|
||||
options_for_select(Depp::Dnskey::PROTOCOLS, v['protocol']),
|
||||
= select_tag "domain[dnskeys_attributes][#{k}][protocol]",
|
||||
options_for_select(Depp::Dnskey::PROTOCOLS, v['protocol']),
|
||||
{ class: 'form-control' }
|
||||
|
||||
.form-group
|
||||
.col-md-3.control-label
|
||||
= label_tag "domain_dnskeys_attributes_#{k}_alg", t(:alg)
|
||||
.col-md-7
|
||||
= select_tag "domain[dnskeys_attributes][#{k}][alg]",
|
||||
= select_tag "domain[dnskeys_attributes][#{k}][alg]",
|
||||
options_for_select(Depp::Dnskey::ALGORITHMS, v['alg']), { class: 'form-control' }
|
||||
|
||||
.form-group
|
||||
.col-md-3.control-label
|
||||
= label_tag "domain_dnskeys_attributes_#{k}_public_key", t(:public_key)
|
||||
.col-md-7
|
||||
= text_field_tag "domain[dnskeys_attributes][#{k}][public_key]", v['public_key'],
|
||||
= text_field_tag "domain[dnskeys_attributes][#{k}][public_key]", v['public_key'],
|
||||
class: 'form-control'
|
||||
|
||||
:coffee
|
||||
|
|
|
@ -4,26 +4,26 @@
|
|||
.panel-heading.clearfix
|
||||
.pull-left= t(:nameserver)
|
||||
.pull-right
|
||||
= link_to(t(:add_another), '#', class: 'btn btn-primary btn-xs add-nameserver')
|
||||
= link_to(t(:delete), '#', class: 'btn btn-danger btn-xs destroy')
|
||||
= 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'],
|
||||
= 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'],
|
||||
= 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'],
|
||||
= text_field_tag "domain[nameservers_attributes][#{k}][ipv6]", v['ipv6'],
|
||||
class: 'form-control', ipv6: true
|
||||
:coffee
|
||||
$("#nameservers").nestedAttributes
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
- content_for :actions do
|
||||
= link_to(t(:edit), edit_registrar_domains_path(domain_name: params[:domain_name]),
|
||||
class: 'btn btn-primary')
|
||||
= link_to(t(:renew), renew_registrar_domains_path(domain_name: params[:domain_name]),
|
||||
class: 'btn btn-default')
|
||||
= link_to(t(:delete), delete_registrar_domains_path(domain_name: params[:domain_name]),
|
||||
= link_to(t(:edit), edit_registrar_domains_path(domain_name: params[:domain_name]),
|
||||
class: 'btn btn-default')
|
||||
= link_to(t(:renew), renew_registrar_domains_path(domain_name: params[:domain_name]),
|
||||
class: 'btn btn-default')
|
||||
= link_to(t(:delete), delete_registrar_domains_path(domain_name: params[:domain_name]),
|
||||
class: 'btn btn-default')
|
||||
= render 'shared/title', name: truncate(@data.css('name').text)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue