mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 16:32:04 +02:00
Domain create action
This commit is contained in:
parent
1c165cd1e4
commit
e9e1e057f5
4 changed files with 30 additions and 11 deletions
|
@ -1,6 +1,13 @@
|
|||
%h2= t('shared.new_domain')
|
||||
%hr
|
||||
= form_for([:admin, @domain]) do |f|
|
||||
- if @domain.errors.any?
|
||||
- @domain.errors.full_messages.each do |x|
|
||||
= x
|
||||
%br
|
||||
|
||||
|
||||
|
||||
.row
|
||||
.col-md-6
|
||||
.form-group
|
||||
|
@ -12,16 +19,16 @@
|
|||
.col-md-6
|
||||
.form-group.has-feedback
|
||||
= f.label :registrar
|
||||
= f.text_field(:registrar, class: 'form-control js-registrar-typeahead', placeholder: t('shared.registrar_name'), autocomplete: 'off')
|
||||
= text_field_tag(:registrar, params[:registrar], class: 'form-control js-registrar-typeahead', placeholder: t('shared.registrar_name'), autocomplete: 'off')
|
||||
%span.glyphicon.glyphicon-ok.form-control-feedback.js-typeahead-ok.hidden
|
||||
%span.glyphicon.glyphicon-remove.form-control-feedback.js-typeahead-remove
|
||||
= f.hidden_field(:registrar_id, class: 'js-registrar-id')
|
||||
.form-group.has-feedback
|
||||
= f.label :owner_contact
|
||||
= f.text_field(:owner_contact, class: 'form-control js-contact-typeahead', placeholder: t('shared.contact_code'), autocomplete: 'off')
|
||||
= text_field_tag(:owner_contact, params[:owner_contact], class: 'form-control js-contact-typeahead', placeholder: t('shared.contact_code'), autocomplete: 'off')
|
||||
%span.glyphicon.glyphicon-ok.form-control-feedback.js-typeahead-ok.hidden
|
||||
%span.glyphicon.glyphicon-remove.form-control-feedback.js-typeahead-remove
|
||||
= f.hidden_field(:owner_contact, class: 'js-contact-id')
|
||||
= f.hidden_field(:owner_contact_id, class: 'js-contact-id')
|
||||
.row
|
||||
.col-md-12.text-right
|
||||
= button_tag(t('shared.save'), class: 'btn btn-primary')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue