mirror of
https://github.com/internetee/registry.git
synced 2025-07-03 09:43:36 +02:00
Registrar domain renew view update
This commit is contained in:
parent
b36315faf7
commit
bf4d5c51ce
3 changed files with 9 additions and 9 deletions
|
@ -73,7 +73,7 @@ module Depp
|
||||||
current_user.request(epp_xml.renew(
|
current_user.request(epp_xml.renew(
|
||||||
name: { value: params[:domain_name] },
|
name: { value: params[:domain_name] },
|
||||||
curExpDate: { value: params[:cur_exp_date] },
|
curExpDate: { value: params[:cur_exp_date] },
|
||||||
period: { value: params[:period], attrs: { unit: params[:period_unit] } }
|
period: { value: params[:period].to_s[0], attrs: { unit: params[:period].to_s[1] } }
|
||||||
))
|
))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -4,11 +4,11 @@
|
||||||
.col-md-8
|
.col-md-8
|
||||||
.panel.panel-default
|
.panel.panel-default
|
||||||
.panel-heading
|
.panel-heading
|
||||||
%h3.panel-title= t('result')
|
%h3.panel-title= t(:result)
|
||||||
.panel-body
|
.panel-body
|
||||||
%dl.dl-horizontal
|
%dl.dl-horizontal
|
||||||
%dt= t('domain_name')
|
%dt= t(:domain_name)
|
||||||
%dd= @data.css('name').text
|
%dd= @data.css('name').text
|
||||||
|
|
||||||
%dt= t('valid_to')
|
%dt= t(:valid_to)
|
||||||
%dd= @data.css('exDate').text
|
%dd= @data.css('exDate').text
|
||||||
|
|
|
@ -4,18 +4,18 @@
|
||||||
.col-md-8
|
.col-md-8
|
||||||
= form_tag renew_registrar_domains_path, class: 'form-horizontal', method: :get do
|
= form_tag renew_registrar_domains_path, class: 'form-horizontal', method: :get do
|
||||||
.form-group
|
.form-group
|
||||||
= label_tag :domain_name, t('name'), class: 'col-md-3 control-label'
|
= label_tag :domain_name, t(:name), class: 'col-md-3 control-label'
|
||||||
.col-md-7
|
.col-md-7
|
||||||
= text_field_tag :domain_name, params[:domain_name], class: 'form-control', placeholder: t('domain_name'), autocomplete: 'off'
|
= text_field_tag :domain_name, params[:domain_name], class: 'form-control', placeholder: t('domain_name'), autocomplete: 'off'
|
||||||
.form-group
|
.form-group
|
||||||
= label_tag :cur_exp_date, t('cur_exp_date'), class: 'col-md-3 control-label'
|
= label_tag :cur_exp_date, t(:cur_exp_date), class: 'col-md-3 control-label'
|
||||||
.col-md-7
|
.col-md-7
|
||||||
= text_field_tag :cur_exp_date, params[:cur_exp_date], class: 'form-control', placeholder: 'yyyy-mm-dd', autocomplete: 'off'
|
= text_field_tag :cur_exp_date, params[:cur_exp_date], class: 'form-control', placeholder: 'yyyy-mm-dd', autocomplete: 'off'
|
||||||
.form-group
|
.form-group
|
||||||
= label_tag :domain_period, t('period'), class: 'col-md-3 control-label'
|
= label_tag :domain_period, t(:period), class: 'col-md-3 control-label'
|
||||||
.col-md-7
|
.col-md-7
|
||||||
= select_tag :period_unit,
|
= select_tag :period,
|
||||||
options_for_select(Depp::Domain::PERIODS, params[:period]), { class: 'form-control' }
|
options_for_select(Depp::Domain::PERIODS, params[:period]), { class: 'form-control' }
|
||||||
.form-group
|
.form-group
|
||||||
.col-md-10.text-right
|
.col-md-10.text-right
|
||||||
%button.btn.btn-primary= t('renew')
|
%button.btn.btn-primary= t(:renew)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue