From 452caffc7dd7879ab618c7c2f37a1eab985fc9ff Mon Sep 17 00:00:00 2001 From: Artur Beljajev Date: Mon, 18 Jun 2018 00:49:35 +0300 Subject: [PATCH] Improve UI --- .../contacts/show/_domains.html.erb | 31 ++++++++++--------- config/locales/registrant/contacts.en.yml | 3 +- 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/app/views/registrant/contacts/show/_domains.html.erb b/app/views/registrant/contacts/show/_domains.html.erb index 8cc2e111e..e88ef0c63 100644 --- a/app/views/registrant/contacts/show/_domains.html.erb +++ b/app/views/registrant/contacts/show/_domains.html.erb @@ -3,23 +3,24 @@
-
- <%= t '.header'%> -
+
+
+ <%= t '.header' %> +
-
- <%= form_tag request.path, method: :get do %> - <%= select_tag :domain_filter, - options_for_select(%w(Registrant AdminDomainContact TechDomainContact), - selected: params[:domain_filter]), - include_blank: true, - class: 'form-control2 selectize2' %> - - <% end %> +
+ <%= form_tag request.path, method: :get, class: 'form-inline' do %> + <%= select_tag :domain_filter, + options_for_select(%w(Registrant AdminDomainContact TechDomainContact), + selected: params[:domain_filter]), + include_blank: t('.all'), + class: 'form-control' %> + + <% end %> +
-
diff --git a/config/locales/registrant/contacts.en.yml b/config/locales/registrant/contacts.en.yml index 0cb49130c..ef6ea173f 100644 --- a/config/locales/registrant/contacts.en.yml +++ b/config/locales/registrant/contacts.en.yml @@ -14,4 +14,5 @@ en: notes: Note domains: - header: Domains \ No newline at end of file + header: Domains + all: All roles \ No newline at end of file