diff --git a/app/views/registrar/domain_transfers/_form.html.erb b/app/views/registrar/domain_transfers/_form.html.erb new file mode 100644 index 000000000..1377ec427 --- /dev/null +++ b/app/views/registrar/domain_transfers/_form.html.erb @@ -0,0 +1,38 @@ +<%= form_tag registrar_domain_transfers_path, class: 'form-horizontal', multipart: true, autocomplete: 'off' do %> +
+
+ <%= label_tag :domain_name, t(:name), class: 'required' %> +
+
+ <%= text_field_tag :domain_name, params[:domain_name], class: 'form-control', placeholder: t(:domain_name), + autocomplete: 'off', autofocus: true, required: true %> +
+
+ +
+
+ <%= label_tag :password, t(:password), class: 'required' %> +
+
+ <%= text_field_tag :password, params[:password], class: 'form-control', autocomplete: 'off', + required: true %> +
+
+ +
+
+ <%= label_tag 'legal_document', t(:legal_document) %> +
+
+ <%= file_field_tag 'legal_document' %> +
+
+ +
+
+ +
+
+<% end %> diff --git a/app/views/registrar/domain_transfers/new.html.erb b/app/views/registrar/domain_transfers/new.html.erb index 3e277aa39..cc1cfb4a8 100644 --- a/app/views/registrar/domain_transfers/new.html.erb +++ b/app/views/registrar/domain_transfers/new.html.erb @@ -6,41 +6,6 @@
- <%= form_tag registrar_domain_transfers_path, class: 'form-horizontal', multipart: true, autocomplete: 'off' do %> -
-
- <%= label_tag :domain_name, t(:name), class: 'required' %> -
-
- <%= text_field_tag :domain_name, params[:domain_name], class: 'form-control', placeholder: t(:domain_name), autocomplete: 'off', autofocus: true, required: true %> -
-
- -
-
- <%= label_tag :password, t(:password), class: 'required' %> -
-
- <%= text_field_tag :password, params[:password], class: 'form-control', autocomplete: 'off', required: true %> -
-
- -
-
- <%= label_tag 'legal_document', t(:legal_document) %> -
-
- <%= file_field_tag 'legal_document' %> -
-
- -
-
- -
-
- <% end %> + <%= render 'form' %>
diff --git a/config/locales/registrar/domain_transfers.en.yml b/config/locales/registrar/domain_transfers.en.yml index bf1a4a8c9..8c37aa686 100644 --- a/config/locales/registrar/domain_transfers.en.yml +++ b/config/locales/registrar/domain_transfers.en.yml @@ -3,7 +3,9 @@ en: domain_transfers: new: header: Domain transfer - transfer_btn: Transfer create: header: Domain transfer + + form: + transfer_btn: Transfer