Skip to content

Commit

Permalink
Merge branch 'highways-england-oidc-integration' into commercial-staging
Browse files Browse the repository at this point in the history
  • Loading branch information
dracos committed Oct 25, 2024
2 parents e50446b + 1ebeedb commit 85e97fc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions templates/web/base/admin/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,25 @@

<div class="admin-index-search clearfix">

[% IF c.user.has_body_permission_to('report_edit') %]
<form method="get" action="[% c.uri_for('reports') %]" accept-charset="utf-8">
<label for="search_reports">[% loc('Search Reports') %]</label>
<div class="form-txt-submit-box">
<input type="text" class="form-control" name="search" size="30" id="search_reports" value="[% searched | html %]">
<input type="submit" class="btn" value="[% loc('Go') %]">
</div>
</form>
[% END %]

[% IF c.user.has_body_permission_to('user_edit') %]
<form method="get" action="[% c.uri_for('users') %]" accept-charset="utf-8">
<label for="search_users">[% loc('Search Users') %]</label>
<div class="form-txt-submit-box">
<input type="text" class="form-control" name="search" size="30" id="search_users" value="[% searched | html %]">
<input type="submit" class="btn" value="[% loc('Go') %]">
</div>
</form>
[% END %]

[% TRY %][% PROCESS 'admin/_index_extra_search.html' %][% CATCH file %][% END %]

Expand Down

0 comments on commit 85e97fc

Please sign in to comment.