mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 10:45:58 +02:00
fixed views
This commit is contained in:
parent
6f5cd11859
commit
ee442beb2e
2 changed files with 1 additions and 35 deletions
|
@ -1,34 +0,0 @@
|
||||||
.row
|
|
||||||
.col-md-12
|
|
||||||
= search_form_for [:admin, @q], html: { style: 'margin-bottom: 0;', class: 'js-form', autocomplete: 'off' } do |f|
|
|
||||||
.row
|
|
||||||
.col-md-3
|
|
||||||
.form-group
|
|
||||||
= label_tag :name
|
|
||||||
= f.search_field :name, value: params[:q][:name], class: 'form-control', placeholder: t(:name)
|
|
||||||
.col-md-3
|
|
||||||
.form-group
|
|
||||||
= label_tag :registrant
|
|
||||||
= f.search_field :registrant, value: params[:q][:registrant], class: 'form-control', placeholder: t('.registrant_placeholder')
|
|
||||||
.col-md-3
|
|
||||||
.form-group
|
|
||||||
= label_tag t(:registrar_name)
|
|
||||||
= select_tag '[q][registrar]', options_for_select(Registrar.all.map { |x| [x, x.name] }, selected: params[:q][:registrar]), { include_blank: true, class: 'form-control', placeholder: t('.registrant')}
|
|
||||||
.col-md-3
|
|
||||||
.form-group
|
|
||||||
= label_tag :action
|
|
||||||
= select_tag '[q][event]', options_for_select([['Update', 'update'], ['Destroy', 'destroy'], ['Create', 'create']], params[:q][:event]), { include_blank:true, multiple: false, placeholder: t(:choose), class: 'form-control js-combobox' }
|
|
||||||
.row
|
|
||||||
.col-md-3
|
|
||||||
.col-md-3
|
|
||||||
.col-md-3
|
|
||||||
.form-group
|
|
||||||
= label_tag t(:results_per_page)
|
|
||||||
= text_field_tag :results_per_page, params[:results_per_page], class: 'form-control', placeholder: t(:results_per_page)
|
|
||||||
.col-md-3{style: 'padding-top: 25px;'}
|
|
||||||
%button.btn.btn-primary
|
|
||||||
|
|
||||||
%span.glyphicon.glyphicon-search
|
|
||||||
|
|
||||||
= link_to(t('.reset_btn'), admin_domain_versions_path, class: 'btn btn-default')
|
|
||||||
%hr
|
|
|
@ -1,5 +1,5 @@
|
||||||
<h1>New Admin Account</h1>
|
<h1>New Admin Account</h1>
|
||||||
|
|
||||||
<%= render 'form', admin_account: @admin_account %>
|
<%= render 'form', account: @account %>
|
||||||
|
|
||||||
<%= link_to 'Back', admin_accounts_path %>
|
<%= link_to 'Back', admin_accounts_path %>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue