mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 18:29:40 +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(
|
||||
name: { value: params[:domain_name] },
|
||||
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
|
||||
|
||||
|
|
|
@ -4,11 +4,11 @@
|
|||
.col-md-8
|
||||
.panel.panel-default
|
||||
.panel-heading
|
||||
%h3.panel-title= t('result')
|
||||
%h3.panel-title= t(:result)
|
||||
.panel-body
|
||||
%dl.dl-horizontal
|
||||
%dt= t('domain_name')
|
||||
%dt= t(:domain_name)
|
||||
%dd= @data.css('name').text
|
||||
|
||||
%dt= t('valid_to')
|
||||
%dt= t(:valid_to)
|
||||
%dd= @data.css('exDate').text
|
||||
|
|
|
@ -4,18 +4,18 @@
|
|||
.col-md-8
|
||||
= form_tag renew_registrar_domains_path, class: 'form-horizontal', method: :get do
|
||||
.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
|
||||
= text_field_tag :domain_name, params[:domain_name], class: 'form-control', placeholder: t('domain_name'), autocomplete: 'off'
|
||||
.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
|
||||
= text_field_tag :cur_exp_date, params[:cur_exp_date], class: 'form-control', placeholder: 'yyyy-mm-dd', autocomplete: 'off'
|
||||
.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
|
||||
= select_tag :period_unit,
|
||||
= select_tag :period,
|
||||
options_for_select(Depp::Domain::PERIODS, params[:period]), { class: 'form-control' }
|
||||
.form-group
|
||||
.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