diff options
author | Zarino Zappia <mail@zarino.co.uk> | 2019-09-23 13:21:52 +0100 |
---|---|---|
committer | Zarino Zappia <mail@zarino.co.uk> | 2019-09-23 13:21:52 +0100 |
commit | 2c7b4a10863f86c6b22bb26b3d2230b1f558c17c (patch) | |
tree | 7e7b14d01e548485178e5be5aa7813c6e4848280 | |
parent | 48c090b8fd4b0570c9a416cc73d0109815e9d742 (diff) |
Support for select boxes in .form-txt-submit-box
-rw-r--r-- | templates/web/base/admin/index.html | 28 | ||||
-rw-r--r-- | web/cobrands/sass/_admin.scss | 7 | ||||
-rw-r--r-- | web/cobrands/sass/_base.scss | 3 |
3 files changed, 19 insertions, 19 deletions
diff --git a/templates/web/base/admin/index.html b/templates/web/base/admin/index.html index d31334a8c..5a469b08e 100644 --- a/templates/web/base/admin/index.html +++ b/templates/web/base/admin/index.html @@ -39,19 +39,21 @@ and to receive notices of updates. </form> [% IF c.user.is_superuser %] - <form method="get" action="[% c.uri_for('bodies') %]"> - <label for="search_body">[% loc('Edit body details') %]</label> - <select class="form-control" id="search_body" name="body"> - [% FOREACH body IN bodies %] - [%- SET id = body.id %] - <option[% IF body.deleted %] class="adminhidden"[% END %] value="[% body.id %]"> - [% body.name | html %] - [%- IF body.parent %], [% body.parent.name | html %][% END -%] - </option> - [% END %] - </select> - <input type="submit" class="btn" value="[% loc('Go') %]"> - </form> +<form method="get" action="[% c.uri_for('bodies') %]"> + <label for="search_body">[% loc('Edit body details') %]</label> + <div class="form-txt-submit-box"> + <select class="form-control" id="search_body" name="body"> + [% FOREACH body IN bodies %] + [%- SET id = body.id %] + <option[% IF body.deleted %] class="adminhidden"[% END %] value="[% body.id %]"> + [% body.name | html %] + [%- IF body.parent %], [% body.parent.name | html %][% END -%] + </option> + [% END %] + </select> + <input type="submit" class="btn" value="[% loc('Go') %]"> + </div> +</form> [% END %] </div> diff --git a/web/cobrands/sass/_admin.scss b/web/cobrands/sass/_admin.scss index 745c74fd7..d36c8ced0 100644 --- a/web/cobrands/sass/_admin.scss +++ b/web/cobrands/sass/_admin.scss @@ -167,12 +167,9 @@ $button_bg_col: #a1a1a1; // also search bar (tables) .admin-index-search { width: 27em; - form { - clear: #{$left}; - } + select { - max-width: 65%; - float: #{$left}; + width: 15em; } } diff --git a/web/cobrands/sass/_base.scss b/web/cobrands/sass/_base.scss index 4cdb483ae..063136eb8 100644 --- a/web/cobrands/sass/_base.scss +++ b/web/cobrands/sass/_base.scss @@ -495,7 +495,8 @@ small#or:after { input[type=tel], input[type=number], input[type=text], - input[type=email] { + input[type=email], + select { width: auto; max-width: none; @include flex(72 0 auto); |