set_locale = CGI.param('set_eg_locale') || CGI.cookie('eg_locale') || base_locale;
%]
-<form id="locale_picker_form" class="row" action="[% mkurl() %]" method="post">
+<form id="locale_picker_form" class="form-inline ml-auto" action="[% mkurl() %]" method="post">
+ <div class="input-group">
<label for="locale_picker" class="color_4 light_border col-3 text-left">[% l("Language:") %]</label>
[%- FOREACH param IN CGI.params(); -%]
[%- NEXT IF param.key == 'set_eg_locale'; -%]
<option value="[% locale | html %]" [% selected %]>[% ctx.locales.$locale | html %]</option>
[%- END %]
</select>
- <div class="col-3">
- <button type="submit" class="btn btn-sm btn-confirm float-right"/><i class="fas fa-save" aria-hidden="true"></i>[% l(" Save Changes") %]</button>
- </div>
+ <button type="submit" class="btn btn-sm btn-confirm float-right"/><i class="fas fa-save" aria-hidden="true"></i>[% l("Save Changes") %]</button>
+ </div>
</form>
[%- END %]
set_locale = CGI.param('set_eg_locale') || CGI.cookie('eg_locale') || base_locale;
%]
-<form class="row mx-2" action="[% mkurl() %]" method="post">
- <td for="locale_picker" class="color_4 light_border">[% l("Language:") %]</td>
+<form id="pref_locale_picker_form" class="row" action="[% mkurl() %]" method="post">
+ <label for="pref_locale_picker" class="color_4 light_border col-3 text-left">[% l("Language:") %]</label>
[%- FOREACH param IN CGI.params(); -%]
[%- NEXT IF param.key == 'set_eg_locale'; -%]
<input type="hidden" name="[% param.key | html %]" value="[% param.value | html %]" />
[%- END; -%]
- <td>
- <select id="locale_picker" name="set_eg_locale" class="form-control form-control-sm">
+
+ <select id="pref_locale_picker" name="set_eg_locale" class="form-control form-control-sm col-6">
[%- FOREACH locale IN ctx.locales.keys %]
[%- IF set_locale == locale;
selected = 'selected="selected"';
<option value="[% locale | html %]" [% selected %]>[% ctx.locales.$locale | html %]</option>
[%- END %]
</select>
- <br>
- <input type="submit" class="btn btn-sm btn-confirm" value="[% l("Submit") %]" />
- </td>
+ <div class="col-3">
+ <button type="submit" class="btn btn-sm btn-confirm float-right"/><i class="fas fa-save" aria-hidden="true"></i>[% l(" Save Changes") %]</button>
+ </div>
</form>
[%- END %]
<a class="nav-link" href="[% ctx.link_four %]">Example Link 4</a>
</li>
</ul>
+ [%- INCLUDE "opac/parts/locale_picker.tt2" %]
<!--Right Links-->
<ul class="navbar-nav ml-auto nav-fr px-3">
<!--If not signed in, show sign in button-->