mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
Make domain statuses form horizontal
This commit is contained in:
parent
b64723d684
commit
5e09e5e8b4
1 changed files with 11 additions and 11 deletions
|
@ -1,4 +1,4 @@
|
||||||
#domain_statuses
|
#domain-statuses
|
||||||
= f.fields_for :domain_statuses, @client_statuses do |status_fields|
|
= f.fields_for :domain_statuses, @client_statuses do |status_fields|
|
||||||
.panel.panel-default
|
.panel.panel-default
|
||||||
.panel-heading.clearfix
|
.panel-heading.clearfix
|
||||||
|
@ -11,17 +11,17 @@
|
||||||
= render 'shared/errors', object: status_fields.object
|
= render 'shared/errors', object: status_fields.object
|
||||||
- if status_fields.object.errors.any?
|
- if status_fields.object.errors.any?
|
||||||
%hr
|
%hr
|
||||||
.row
|
.form-group
|
||||||
.col-md-6
|
= status_fields.label :value, class: 'col-md-2 control-label'
|
||||||
.form-group
|
.col-md-10
|
||||||
= status_fields.label :value
|
= status_fields.select :value, options_for_select(DomainStatus.statuses_for_client, status_fields.object.value.try(:sub, 'client', '')), {include_blank: true}, {class: 'form-control'}
|
||||||
= status_fields.select :value, options_for_select(DomainStatus.statuses_for_client, status_fields.object.value.try(:sub, 'client', '')), {include_blank: true}, {class: 'form-control'}
|
|
||||||
.col-md-6
|
.form-group
|
||||||
.form-group
|
= status_fields.label :description, class: 'col-md-2 control-label'
|
||||||
= status_fields.label :description
|
.col-md-10
|
||||||
= status_fields.text_field :description, class: 'form-control', autocomplete: 'off'
|
= status_fields.text_field :description, class: 'form-control', autocomplete: 'off'
|
||||||
:javascript
|
:javascript
|
||||||
$("#domain_statuses").nestedAttributes({
|
$("#domain-statuses").nestedAttributes({
|
||||||
bindAddTo: $(".add-domain-status"),
|
bindAddTo: $(".add-domain-status"),
|
||||||
afterAdd: function(item) {
|
afterAdd: function(item) {
|
||||||
item.find('.errors').html('');
|
item.find('.errors').html('');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue