about summary refs log tree commit diff
path: root/app/views
diff options
context:
space:
mode:
authornullkal <nullkal@nil.nu>2017-09-13 19:30:07 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-09-13 12:30:07 +0200
commitda77f65c4684a8a9ee25c3e18f6f09824c765c2d (patch)
treee006c2dbdebdb23d55c4b2e57ff66c7585fb0215 /app/views
parent9e2ff3ef71e917ba88a9062814f3e828f9199009 (diff)
Add instance search feature (#4925)
Diffstat (limited to 'app/views')
-rw-r--r--app/views/admin/instances/index.html.haml10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/views/admin/instances/index.html.haml b/app/views/admin/instances/index.html.haml
index edbd3b217..3314ce077 100644
--- a/app/views/admin/instances/index.html.haml
+++ b/app/views/admin/instances/index.html.haml
@@ -1,6 +1,16 @@
 - content_for :page_title do
   = t('admin.instances.title')
 
+= form_tag admin_instances_url, method: 'GET', class: 'simple_form' do
+  .fields-group
+    - %i(domain_name).each do |key|
+      .input.string.optional
+        = text_field_tag key, params[key], class: 'string optional', placeholder: I18n.t("admin.instances.#{key}")
+
+    .actions
+      %button= t('admin.instances.search')
+      = link_to t('admin.instances.reset'), admin_instances_path, class: 'button negative'
+
 .table-wrapper
   %table.table
     %thead