mirror of
https://github.com/internetee/registry.git
synced 2025-05-16 17:37:17 +02:00
Convert HAML to ERB
This commit is contained in:
parent
0b3b61bf24
commit
472d37f30f
2 changed files with 42 additions and 27 deletions
|
@ -1,27 +0,0 @@
|
||||||
= render 'shared/title', name: t(:transfer_domain)
|
|
||||||
|
|
||||||
.row
|
|
||||||
.col-md-8
|
|
||||||
= form_tag transfer_registrar_domains_path, class: 'form-horizontal', method: :post, multipart: true, autocomplete: 'off' do
|
|
||||||
.form-group
|
|
||||||
.col-md-3.control-label
|
|
||||||
= label_tag :domain_name, t(:name), class: 'required'
|
|
||||||
.col-md-7
|
|
||||||
= text_field_tag :domain_name, params[:domain_name], class: 'form-control',
|
|
||||||
placeholder: t(:domain_name), autocomplete: 'off', autofocus: true, required: true
|
|
||||||
.form-group
|
|
||||||
.col-md-3.control-label
|
|
||||||
= label_tag :password, t(:password), class: 'required'
|
|
||||||
.col-md-7
|
|
||||||
= text_field_tag :password, params[:password],
|
|
||||||
class: 'form-control', autocomplete: 'off', required: true
|
|
||||||
.form-group
|
|
||||||
.col-md-3.control-label
|
|
||||||
= label_tag 'legal_document', t(:legal_document)
|
|
||||||
.col-md-7
|
|
||||||
= file_field_tag 'legal_document'
|
|
||||||
.form-group
|
|
||||||
.col-md-10.text-right
|
|
||||||
%button.btn.btn-warning{ name: 'request' }= t(:transfer)
|
|
||||||
/%button.btn.btn-warning{ name: 'approve' }= t(:approve)
|
|
||||||
/%button.btn.btn-warning{ name: 'reject' }= t(:reject)
|
|
42
app/views/registrar/domains/transfer_index.html.erb
Normal file
42
app/views/registrar/domains/transfer_index.html.erb
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
<%= render 'shared/title', name: t(:transfer_domain) %>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-8">
|
||||||
|
<%= form_tag transfer_registrar_domains_path, class: 'form-horizontal', method: :post, multipart: true, autocomplete: 'off' do %>
|
||||||
|
<div class="form-group">
|
||||||
|
<div class="col-md-3 control-label">
|
||||||
|
<%= label_tag :domain_name, t(:name), class: 'required' %>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-7">
|
||||||
|
<%= text_field_tag :domain_name, params[:domain_name], class: 'form-control', placeholder: t(:domain_name), autocomplete: 'off', autofocus: true, required: true %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<div class="col-md-3 control-label">
|
||||||
|
<%= label_tag :password, t(:password), class: 'required' %>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-7">
|
||||||
|
<%= text_field_tag :password, params[:password], class: 'form-control', autocomplete: 'off', required: true %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<div class="col-md-3 control-label">
|
||||||
|
<%= label_tag 'legal_document', t(:legal_document) %>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-7">
|
||||||
|
<%= file_field_tag 'legal_document' %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<div class="col-md-10 text-right">
|
||||||
|
<button class="btn btn-warning" name="request">
|
||||||
|
<%= t(:transfer) %>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
</div>
|
Loading…
Add table
Add a link
Reference in a new issue