Skip to content

Commit

Permalink
rework ux
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoineSmagghe committed Jun 14, 2024
1 parent 659f71f commit 8e4b595
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/templates/pages/faircalendar/_filters_form.njk
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
{% from 'macros/month_navigator.njk' import month_navigator %}
{% import 'macros/links.njk' as links %}

{% macro filters_form() %}
<pc-frame-form class="pc-cluster pc-gap" style="--cluster-align: flex-end">
{{ links.add(path('people_leave_requests_add'), text='leave-requests-add-title'|trans) }}
{{ month_navigator(monthTarget='#month', yearTarget='#year') }}

<pc-auto-form>
Expand Down
11 changes: 9 additions & 2 deletions src/templates/pages/faircalendar/index.njk
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{% extends 'layouts/app.njk' %}
{% import 'macros/icons.njk' as icons %}
{% import 'macros/links.njk' as links %}
{% from 'macros/breadcrumb.njk' import breadcrumb %}
{% from './_event_list.njk' import event_list with context %}
{% from './_filters_form.njk' import filters_form with context %}
Expand All @@ -8,10 +9,16 @@

{% block main %}
<div class="pc-container">
<pc-frame id="faircalendar">
<pc-frame class="pc-stack" id="faircalendar">
{{ breadcrumb([{ title: title }]) }}

<h1>{{ title }}</h1>
<div class="pc-cluster pc-gap" style="--cluster-justify: space-between; --cluster-align: center">
<h1 class="pc-m" style="--m: 0">
{{ title }}
</h1>

{{ links.add(path('people_leave_requests_add'), text='leave-requests-add-title'|trans) }}
</div>

<div class="pc-with-sidebar pc-with-sidebar-start pc-gap" style="--sidebar-size: 22ch; --non-sidebar-min-size: 80%">
{{ filters_form() }}
Expand Down

0 comments on commit 8e4b595

Please sign in to comment.