Filter seniority by a range of rungs and a track: level_from, level_to, track; From, To and Track in the rail (WP B)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ae978594b4
commit
4e390d97ca
6 files changed
+207
-71
No files matched your search
@@ -78,12 +78,18 @@
|
||||
<div id="f-company-text" class="rail-legacy" hidden></div>
|
||||
<div id="f-place"></div>
|
||||
<div id="f-place-text" class="rail-legacy" hidden></div>
|
||||
{# The levels come with their counts from /api/roles/facets, so the
|
||||
server's list is the one shown. "No level" is a question only
|
||||
once a level is pressed. #}
|
||||
{# From and to are the rungs of `app.models.RUNGS`, drawn by roles.js
|
||||
from `ROLEDESK_LADDER` with counts from
|
||||
/api/roles/facets; the track says which side of the ladder
|
||||
counts. "No level" is a question only once a bound or a track is
|
||||
set. #}
|
||||
<div class="rail-facet" role="group" aria-labelledby="f-seniority-label">
|
||||
<span class="rail-field" id="f-seniority-label">Seniority</span>
|
||||
<div id="f-seniority" class="rail-chips"></div>
|
||||
<label class="rail-field" for="f-level-from">From</label>
|
||||
<select id="f-level-from"></select>
|
||||
<label class="rail-field" for="f-level-to">To</label>
|
||||
<select id="f-level-to"></select>
|
||||
<div class="seg" id="f-track" role="group" aria-label="Track"></div>
|
||||
<label class="check" id="f-seniority-unknown-row" hidden>
|
||||
<input type="checkbox" id="f-seniority-unknown"> <span>and roles with no level<span
|
||||
class="count" id="f-seniority-unknown-count"></span></span>
|
||||
@@ -150,6 +156,12 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block scripts %}
|
||||
<script>
|
||||
// The seniority ladder, `RUNGS` and `LADDER` of app/models.py, so the
|
||||
// rail's From, To and Track never hold a copy of the words; see
|
||||
// app/web/pages.py.
|
||||
window.ROLEDESK_LADDER = {{ ladder | tojson }};
|
||||
</script>
|
||||
{# base.html has no block in its head; a stylesheet linked from the body
|
||||
applies all the same, and chips.css only adds to app.css. #}
|
||||
<link rel="stylesheet" href="{{ asset('chips.css') }}">
|
||||
|
||||
Reference in new issue
Block a user