From ecf22adc7ddd1d1d8f43d0127da2d176bfa47898 Mon Sep 17 00:00:00 2001 From: evazion Date: Mon, 23 Jan 2017 20:45:33 -0600 Subject: [PATCH] /comments/search: add more search params; style as inline form. --- .../stylesheets/common/simple_form.css.scss | 17 +++++++++++++++++ app/views/comments/search.html.erb | 15 +++++++++------ 2 files changed, 26 insertions(+), 6 deletions(-) diff --git a/app/assets/stylesheets/common/simple_form.css.scss b/app/assets/stylesheets/common/simple_form.css.scss index ee64e96a6..661c6c489 100644 --- a/app/assets/stylesheets/common/simple_form.css.scss +++ b/app/assets/stylesheets/common/simple_form.css.scss @@ -43,3 +43,20 @@ form.simple_form { } } +form.inline-form { + display: table; + + > div.input { + display: table-row; + line-height: 2em; + + label { + text-align: right; + } + + label, input { + display: table-cell; + padding-right: 1em; + } + } +} diff --git a/app/views/comments/search.html.erb b/app/views/comments/search.html.erb index ae5720a0d..eab275a4e 100644 --- a/app/views/comments/search.html.erb +++ b/app/views/comments/search.html.erb @@ -2,13 +2,16 @@