mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 00:42:04 +02:00
Add reserved pw field for registrar domain form #2565
This commit is contained in:
parent
048ab8a475
commit
5f1df12b48
3 changed files with 19 additions and 9 deletions
|
@ -5,7 +5,7 @@
|
|||
= label_tag :domain_name, t(:name), class: 'required'
|
||||
.col-md-7
|
||||
- readonly = params[:domain_name] ? true : false
|
||||
= text_field_tag('domain[name]', @domain_params[:name],
|
||||
= text_field_tag('domain[name]', @domain_params[:name],
|
||||
class: 'form-control', readonly: readonly, required: true)
|
||||
|
||||
- unless params[:domain_name]
|
||||
|
@ -13,13 +13,20 @@
|
|||
.col-md-3.control-label
|
||||
= label_tag :domain_period, t(:period), class: 'required'
|
||||
.col-md-7
|
||||
= select_tag 'domain[period]',
|
||||
= select_tag 'domain[period]',
|
||||
options_for_select(Depp::Domain::PERIODS, @domain_params[:period]), { class: 'form-control' }
|
||||
|
||||
.form-group
|
||||
.col-md-3.control-label
|
||||
= label_tag :domain_registrant, t(:registrant), class: 'required'
|
||||
.col-md-7
|
||||
= select_tag "domain[registrant]",
|
||||
= select_tag "domain[registrant]",
|
||||
options_for_select(@contacts_autocomplete_map, selected: @domain_params[:registrant]),
|
||||
include_blank: true, class: 'js-combobox', required: true
|
||||
|
||||
- unless params[:domain_name]
|
||||
.form-group
|
||||
.col-md-3.control-label
|
||||
= label_tag :domain_reserved_pw, t(:reserved_pw)
|
||||
.col-md-7
|
||||
= text_field_tag('domain[reserved_pw]', @domain_params[:reserved_pw], class: 'form-control')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue