style: align with the ep-corporate-design skill

This commit is contained in:
fromme committed 2026-11-12 15:24:35 +01:00
1 parent 50ef662dd3
commit ebad54e989
162 files changed
+768 -640

No files matched your search

+35
View File
@@ -0,0 +1,35 @@
import { Controller } from '@hotwired/stimulus'
/*
* The sidebar as a drawer on small screens: a modal <dialog> (target "dialog"), so focus stays inside
* and Escape closes it. A click on the dimmed page beside it closes it too, and so does widening the
* window until the sidebar shows (lg).
*/
export default class extends Controller {
static targets = ['dialog']
connect () {
this.wide = window.matchMedia('(min-width: 64rem)')
this.onWide = (event) => event.matches && this.close()
this.wide.addEventListener('change', this.onWide)
}
disconnect () {
this.wide.removeEventListener('change', this.onWide)
}
open () {
this.dialogTarget.showModal()
}
close () {
this.dialogTarget.close()
}
// a click on the dialog element itself, not on its content, is a click on the backdrop
closeOnBackdrop (event) {
if (event.target === this.dialogTarget) {
this.close()
}
}
}
@@ -1,16 +0,0 @@
import { Controller } from '@hotwired/stimulus'
export default class extends Controller {
static outlets = [ 'mobilenav' ]
static classes = [ 'closed' ]
trigger({ params: { mode } }) {
this.mobilenavOutlet.toggle(mode)
}
toggle(mode) {
// Add animation classes only now to avoid fouc
this.element.classList.add('transition-transform', 'duration-300')
this.element.classList.toggle(this.closedClass, 'close' === mode)
}
}
@@ -1,30 +0,0 @@
import { Controller } from '@hotwired/stimulus'
export default class extends Controller {
static classes = ['closed', 'iconClosed', 'iconExpanded']
static targets = ['submenu', 'button', 'icon']
static values = { expanded: Boolean }
toggleSubmenu() {
this.expandedValue = !this.expandedValue
}
expandedValueChanged(expanded) {
this.submenuTarget.classList.toggle(this.closedClass, false === expanded)
if (false === this.hasButtonTarget) {
return
}
this.buttonTarget.setAttribute('aria-expanded', expanded)
if (false === this.hasIconTarget) {
return
}
if (true === expanded) {
this.iconTarget.classList.add(...this.iconExpandedClasses)
this.iconTarget.classList.remove(...this.iconClosedClasses)
} else {
this.iconTarget.classList.add(...this.iconClosedClasses)
this.iconTarget.classList.remove(...this.iconExpandedClasses)
}
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
-33
View File
@@ -1,36 +1,3 @@
/* lato-regular - latin */
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: 'Lato';
font-style: normal;
font-weight: 400;
src: url('../fonts/lato-v24-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* lato-italic - latin */
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: 'Lato';
font-style: italic;
font-weight: 400;
src: url('../fonts/lato-v24-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* lato-700 - latin */
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: 'Lato';
font-style: normal;
font-weight: 700;
src: url('../fonts/lato-v24-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* lato-900 - latin */
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: 'Lato';
font-style: normal;
font-weight: 900;
src: url('../fonts/lato-v24-latin-900.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
.htmx-indicator{
@apply invisible;
}
-34
View File
@@ -1,43 +1,9 @@
@import "./components/badge.css";
@import "./components/autocomplete.css";
@import "./components/button.css";
@import "./components/datatable.css";
@import "./components/datepicker.css";
@import "./components/toast.css";
@import "./components/tooltip.css";
@import "./components/timeline.css";
@import "./components/mail-body.css";
@import "./components/questionnaire.css";
/* the entries of the header's account menu (_partials/_user_menu.html.twig) */
.user-menu-item {
@apply flex items-center gap-x-3 px-4 py-2 text-ink no-underline hover:bg-page hover:text-brand;
}
/* white box on the light blue page, as the card of the apps portal (EP/apps frontend/components/ui.ts) */
.card {
@apply border border-line bg-white;
}
/* heading of a section or card */
.section-title {
@apply text-base font-semibold uppercase tracking-wide text-brand;
}
/*
* A row of tabs (_partials/_tabs.html.twig, the questionnaire list). The row scrolls sideways on
* narrow screens, which makes it a vertical scroll container too, so nothing may stick out below
* it: the base line is an inset shadow the tabs' underline paints over, not a border they would
* have to overlap with a negative margin.
*/
.tabs {
@apply flex overflow-x-auto shadow-[inset_0_-1px_0_var(--color-line)];
}
.tab {
@apply shrink-0 whitespace-nowrap border-b-4 border-transparent px-3 py-2 text-sm text-ink hover:text-brand;
}
.tab--current {
@apply border-brand-bright font-bold text-brand;
}
+2 -66
View File
@@ -1,4 +1,6 @@
@import "tailwindcss";
@import "toastify-js/src/toastify.css";
@import "./ep-design.css";
@import "./_base.css" layer(base);
@import "./_components.css" layer(components);
@@ -6,66 +8,6 @@
@source inline("rotate-90");
/*
* Corporate design of the internal E&P tools, as defined by the apps portal (Gitea EP/apps,
* frontend/app/globals.css) and ported to Symfony by epbms: Lato, deep blue as the brand colour,
* magenta only for the main action, square shapes, light blue page.
* Status colours (green, red, amber) always come with text, never alone.
*/
@theme {
--font-sans: Lato, sans-serif;
--font-weight-semibold: 700;
--font-weight-bold: 900;
/* square everywhere; rounded-full stays round. Plain `rounded` reads --radius. */
--radius: 0px;
--radius-xs: 0px;
--radius-sm: 0px;
--radius-md: 0px;
--radius-lg: 0px;
--radius-xl: 0px;
--radius-2xl: 0px;
--radius-3xl: 0px;
--radius-4xl: 0px;
--color-brand: #18527b; /* E&P deep blue, 8.5:1 on white */
--color-brand-dark: #103c5b;
--color-brand-mid: #165883;
--color-brand-bright: #009fff; /* underlines and focus, never text */
--color-brand-light: #e3eef8;
--color-page: #ebf3fa; /* page background */
--color-line: #d8e3ed; /* borders */
--color-ink: #27272a; /* text */
--color-muted: #52525b; /* secondary text, 7.7:1 on white */
--color-accent: #c4097c; /* magenta of the main action */
--color-accent-from: #960167;
--color-accent-to: #fa1a8c;
/* the colour name the templates were written with, now on the brand colour */
--color-primary: var(--color-brand);
}
/*
* Tailwind 3 defaults that Tailwind 4 changed: borders were gray-200 instead of currentColor,
* and buttons had a pointer cursor.
*/
@layer base {
*,
::after,
::before,
::backdrop,
::file-selector-button {
border-color: var(--color-line, currentcolor);
}
button:not(:disabled),
[role="button"]:not(:disabled) {
cursor: pointer;
}
}
/*
* Thin scrollbars without a track for inner scrolling areas. The page scrollbar takes its
* style from <html>, which body * leaves out. Firefox and Chrome/Edge 121+ honour these;
@@ -76,10 +18,4 @@
scrollbar-width: thin;
scrollbar-color: var(--color-gray-300) transparent;
}
/* visible keyboard focus everywhere (WCAG 2.4.7) */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
outline: 3px solid var(--color-brand-bright);
outline-offset: 2px;
}
}
-28
View File
@@ -1,28 +0,0 @@
/*
* Buttons as in the apps portal (EP/apps frontend/components/ui.ts): square, small bold uppercase.
* The default is filled brand blue; magenta (.btn--cta) only for the one main action of a page.
*/
.btn {
@apply inline-flex space-x-1 justify-center items-center text-xs uppercase tracking-wide font-semibold py-2.5 px-4 no-underline transition-colors;
@apply bg-brand text-white hover:bg-brand-dark disabled:opacity-50 disabled:cursor-not-allowed;
}
.btn--small {
@apply py-1 px-2;
}
.btn--secondary {
@apply border border-brand bg-white text-brand hover:bg-brand hover:text-white;
}
.btn--cta {
background-image: linear-gradient(120deg, var(--color-accent-from), #9e036a 40%, var(--color-accent-to));
}
.btn--cta:hover {
background-image: linear-gradient(120deg, #7d0156, #8a035d 40%, #e3107c);
}
.btn--cta:disabled {
background-image: none;
}
-23
View File
@@ -1,23 +0,0 @@
@import "toastify-js/src/toastify.css";
.toastify {
@apply max-w-sm border-l-4 px-4 py-3 text-sm shadow-lg;
background: none;
}
/* in the colours of the alerts, as in epbms */
.toastify--success {
@apply border-emerald-700 bg-emerald-50 text-emerald-950;
}
.toastify--warning {
@apply border-red-700 bg-red-50 text-red-950;
}
.toastify--info {
@apply border-brand bg-brand-light text-ink;
}
.toastify .toast-close {
@apply ml-3 text-current opacity-60 hover:opacity-100;
}
+5 -5
View File
@@ -1,18 +1,18 @@
@import "tippy.js/dist/tippy.css";
.tippy-box {
background-color: var(--color-primary);
background-color: var(--color-brand);
}
.tippy-box[data-placement^='top'] > .tippy-arrow::before {
border-top-color: var(--color-primary);
border-top-color: var(--color-brand);
}
.tippy-box[data-placement^='bottom'] > .tippy-arrow::before {
border-bottom-color: var(--color-primary);
border-bottom-color: var(--color-brand);
}
.tippy-box[data-placement^='left'] > .tippy-arrow::before {
border-left-color: var(--color-primary);
border-left-color: var(--color-brand);
}
.tippy-box[data-placement^='right'] > .tippy-arrow::before {
border-right-color: var(--color-primary);
border-right-color: var(--color-brand);
}
+316
View File
@@ -0,0 +1,316 @@
/*
* E&P corporate design for the internal Symfony tools, taken from the E&P apps template (Gitea EP/apps,
* frontend/app/globals.css, frontend/components/): Lato, deep blue as the brand colour, magenta only
* for the one main action of a page, square shapes, light blue page.
* Status colours (green, red, amber) always come with text, never alone.
*
* Import after Tailwind: @import "tailwindcss"; @import "./ep-design.css"; @plugin "@tailwindcss/forms";
* The toast styles expect toastify-js (@import "toastify-js/src/toastify.css" before this file).
*/
/*
* Lato (OFL) ships with the app, so browsers load nothing from Google: 400 (and italic), 700, 900. No 600:
* font-semibold renders as 700, like font-bold; font-black is 900. The weights are not remapped.
*/
@font-face {
font-family: "Lato";
font-style: normal;
font-weight: 400;
font-display: swap;
src: url("../fonts/lato-400.woff2") format("woff2");
}
@font-face {
font-family: "Lato";
font-style: italic;
font-weight: 400;
font-display: swap;
src: url("../fonts/lato-400-italic.woff2") format("woff2");
}
@font-face {
font-family: "Lato";
font-style: normal;
font-weight: 700;
font-display: swap;
src: url("../fonts/lato-700.woff2") format("woff2");
}
@font-face {
font-family: "Lato";
font-style: normal;
font-weight: 900;
font-display: swap;
src: url("../fonts/lato-900.woff2") format("woff2");
}
@theme {
--font-sans: "Lato", ui-sans-serif, system-ui, sans-serif;
/* square everywhere; rounded-full stays round. Plain `rounded` reads --radius. */
--radius: 0px;
--radius-xs: 0px;
--radius-sm: 0px;
--radius-md: 0px;
--radius-lg: 0px;
--radius-xl: 0px;
--radius-2xl: 0px;
--radius-3xl: 0px;
--radius-4xl: 0px;
--color-brand: #18527b; /* E&P deep blue, 8.5:1 on white */
--color-brand-dark: #103c5b;
--color-brand-mid: #165883;
--color-brand-bright: #009fff; /* underlines and focus, never text */
--color-brand-light: #e3eef8;
--color-page: #ebf3fa; /* page background */
--color-line: #d8e3ed; /* borders */
--color-ink: #27272a; /* text */
--color-muted: #52525b; /* secondary text, 7.7:1 on white */
--color-accent: #c4097c; /* magenta of the main action */
--color-accent-from: #960167;
--color-accent-to: #fa1a8c;
}
/*
* Tailwind 3 defaults that Tailwind 4 changed: borders were a light gray instead of currentColor,
* and buttons had a pointer cursor.
*/
@layer base {
*,
::after,
::before,
::backdrop,
::file-selector-button {
border-color: var(--color-line, currentcolor);
}
button:not(:disabled),
[role="button"]:not(:disabled) {
cursor: pointer;
}
/* modals: centred (Preflight resets the browser's margin: auto), the page behind dimmed and blurred */
dialog:modal {
margin: auto;
max-height: 85vh;
}
dialog::backdrop {
background: rgb(39 39 42 / 0.35);
backdrop-filter: blur(3px);
}
/* visible keyboard focus everywhere (WCAG 2.4.7) */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
outline: 3px solid var(--color-brand-bright);
outline-offset: 2px;
}
}
/*
* Components as in the apps template (frontend/components/ui.ts, Field.tsx, Alert.tsx). Magenta
* only for the one main action of a page.
*/
@layer components {
.btn,
.btn-primary,
.btn-secondary {
@apply inline-flex items-center justify-center gap-2 px-4 py-2.5 text-xs font-bold uppercase tracking-wide no-underline transition-colors disabled:cursor-not-allowed;
}
.btn-primary {
@apply text-white;
background-image: linear-gradient(120deg, var(--color-accent-from), #9e036a 40%, var(--color-accent-to));
}
.btn-primary:hover {
background-image: linear-gradient(120deg, #7d0156, #8a035d 40%, #e3107c);
}
.btn-primary:disabled {
background-image: none;
background-color: #64748b;
}
.btn-secondary {
@apply border border-brand bg-white text-brand hover:bg-brand hover:text-white;
}
/* small actions in toolbars and on cards, next to the one main action */
.btn-tool {
@apply inline-flex items-center gap-1 rounded border border-line bg-white px-2 py-1 text-sm text-ink hover:border-brand hover:text-brand disabled:cursor-default disabled:border-line disabled:text-gray-400;
}
/* the "⋯" behind which the actions of a card or row wait (menu_controller.js) */
.btn-more {
@apply inline-flex h-6 w-6 shrink-0 items-center justify-center rounded text-muted hover:bg-page hover:text-brand aria-expanded:bg-page aria-expanded:text-brand;
}
.menu-panel {
@apply fixed z-40 min-w-48 border border-line bg-white py-1 text-sm shadow-lg;
}
.menu-item {
@apply block w-full px-3 py-1.5 text-left text-ink no-underline hover:bg-page hover:text-brand focus:bg-page;
}
.menu-item-danger {
@apply block w-full px-3 py-1.5 text-left text-red-800 hover:bg-page hover:text-red-900 focus:bg-page;
}
.input {
@apply block w-full border border-slate-500 bg-white px-3 py-2 text-sm text-slate-900 placeholder:text-slate-500 focus:border-brand-bright aria-[invalid=true]:border-red-700 aria-[invalid=true]:ring-1 aria-[invalid=true]:ring-red-700 disabled:bg-slate-100 disabled:text-slate-600;
}
.field-label {
@apply block text-xs font-bold uppercase tracking-wide text-slate-700;
}
/* white box on the light blue page */
.card {
@apply border border-line bg-white;
}
.section-title {
@apply text-base font-bold uppercase tracking-wide text-brand;
}
/* a row of tabs; the base line is an inset shadow, so a row that scrolls sideways doesn't scroll vertically too */
.tabs {
@apply flex overflow-x-auto shadow-[inset_0_-1px_0_var(--color-line)];
}
.tab {
@apply shrink-0 whitespace-nowrap border-b-4 border-transparent px-3 py-2 text-sm text-ink no-underline hover:text-brand;
}
.tab[aria-current],
.tab[aria-selected="true"] {
@apply border-brand-bright font-bold text-brand;
}
/* the main views as tabs in the header (_partials/_header.html.twig), for apps with few views */
.header-tab {
@apply flex items-center whitespace-nowrap border-b-4 border-transparent px-3 text-ink no-underline hover:text-brand;
}
.header-tab[aria-current] {
@apply border-brand-bright font-bold text-brand;
}
/*
* Sidebar navigation for apps with many views (_partials/_sidebar_menu.html.twig): on the light
* blue page, the current item is a white box.
*/
.sidebar-heading {
@apply px-2 pt-5 pb-1 text-[11px] font-bold uppercase tracking-wide text-muted;
}
.sidebar-link {
@apply flex w-full items-center gap-x-3 p-2 text-left text-sm leading-6 font-bold text-ink no-underline hover:bg-white/60 hover:text-brand;
}
.sidebar-sublink {
@apply block py-2 pr-2 pl-10 text-sm leading-6 text-ink no-underline hover:bg-white/60 hover:text-brand;
}
:is(.sidebar-link, .sidebar-sublink)[aria-current],
.sidebar-link--ancestor {
@apply bg-white text-brand;
}
.sidebar-group > summary {
@apply list-none;
}
.sidebar-group > summary::-webkit-details-marker {
display: none;
}
/* chevron of a group that opens in place */
.sidebar-group > summary::after {
@apply ml-auto size-2 shrink-0 rotate-45 border-r-2 border-b-2 border-current opacity-60 transition-transform content-[''];
}
.sidebar-group[open] > summary::after {
@apply -rotate-135;
}
/* the sidebar as a drawer from the left on small screens (drawer_controller.js) */
dialog.drawer {
@apply m-0 h-dvh max-h-none w-80 max-w-[calc(100vw-4rem)] bg-page p-0;
}
/* lists in a card: the outer cells line up with the card's padding */
.data-table {
@apply w-full;
}
.data-table thead tr {
@apply border-b-2 border-brand text-left text-[11px] font-bold uppercase tracking-wide text-brand;
}
.data-table th {
@apply px-2 py-2;
}
.data-table td {
@apply px-2 py-1.5;
}
.data-table :is(th, td):first-child {
@apply pl-5;
}
.data-table :is(th, td):last-child {
@apply pr-5;
}
.data-table tbody tr {
@apply border-b last:border-b-0;
}
/* notices (_partials/_alert.html.twig): light, with a coloured bar on the left */
.notice {
@apply border-l-4 px-4 py-2;
}
/* toasts (toast_controller.js) in the colours of the notices */
.toastify {
@apply max-w-sm rounded-none border-l-4 bg-none px-4 py-3 text-sm shadow-lg;
}
.toastify--success {
@apply border-emerald-700 bg-emerald-50 text-emerald-950;
}
.toastify--error {
@apply border-red-700 bg-red-50 text-red-950;
}
.toastify--warning {
@apply border-amber-600 bg-amber-50 text-amber-950;
}
.toastify--info {
@apply border-brand bg-brand-light text-ink;
}
.toastify .toast-close {
@apply ml-3 text-current opacity-60 hover:opacity-100;
}
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}
+1 -1
View File
@@ -1,3 +1,3 @@
knp_menu:
twig:
template: _partials/_menu.html.twig
template: _partials/_sidebar_menu.html.twig
+2
View File
@@ -1,6 +1,8 @@
twig:
default_path: '%kernel.project_dir%/templates'
form_themes: ['forms.html.twig']
globals:
app_name: Team
paths:
'%kernel.project_dir%/assets/images': images
+3 -3
View File
@@ -166,7 +166,7 @@ class AdminMenuBuilder extends AbstractMenuBuilder
],
]);
$this->addHeading($menu, 'Feedback &amp; Auswertung');
$this->addHeading($menu, 'Feedback & Auswertung');
$menu->addChild('Teamer:innen-Feedback', [
'route' => 'app_administrative_feedback_index',
@@ -257,14 +257,14 @@ class AdminMenuBuilder extends AbstractMenuBuilder
{
$menu = $this->createRootElement();
$menu->addChild('Stammdaten &amp; Foto', [
$menu->addChild('Stammdaten & Foto', [
'route' => 'app_administrative_teamer_profile',
'routeParameters' => $this->getDefaultRouteParameters('uuid'),
'linkAttributes' => [
'title' => 'Stammdaten & Foto',
],
]);
$menu->addChild('Jobprofile, Skills &amp; Status', [
$menu->addChild('Jobprofile, Skills & Status', [
'route' => 'app_admin_teamer_skills',
'routeParameters' => $this->getDefaultRouteParameters('uuid'),
'linkAttributes' => [
+2 -2
View File
@@ -117,7 +117,7 @@ class ManagerMenuBuilder extends AbstractMenuBuilder
],
]);
$this->addHeading($menu, 'Feedback &amp; Auswertung');
$this->addHeading($menu, 'Feedback & Auswertung');
$menu->addChild('Teamer:innen-Feedback', [
'route' => 'app_administrative_feedback_index',
@@ -198,7 +198,7 @@ class ManagerMenuBuilder extends AbstractMenuBuilder
{
$menu = $this->createRootElement();
$menu->addChild('Stammdaten &amp; Foto', [
$menu->addChild('Stammdaten & Foto', [
'route' => 'app_administrative_teamer_profile',
'routeParameters' => $this->getDefaultRouteParameters('uuid'),
'linkAttributes' => [
+3 -3
View File
@@ -70,13 +70,13 @@ class TeamerMenuBuilder extends AbstractMenuBuilder
]);
}
$profileMenu->addChild('Stammdaten &amp; Foto', [
$profileMenu->addChild('Stammdaten & Foto', [
'route' => 'app_teamer_profile_index',
'linkAttributes' => [
'title' => 'Stammdaten & Foto',
],
]);
$profileMenu->addChild('Jobprofile &amp; Skills', [
$profileMenu->addChild('Jobprofile & Skills', [
'route' => 'app_teamer_profile_skills',
'linkAttributes' => [
'title' => 'Jobprofile & Skills',
@@ -152,7 +152,7 @@ class TeamerMenuBuilder extends AbstractMenuBuilder
],
]);
$infoMenu = $menu->addChild('FAQ &amp; Kontakt', [
$infoMenu = $menu->addChild('FAQ & Kontakt', [
'extras' => [
'icon' => 'info',
],
+15 -10
View File
@@ -1,11 +1,16 @@
{% set type = type|default('info') %}
{# light with a coloured left bar, as the notices of the apps portal (EP/apps Alert.tsx) #}
<div class="{{ html_classes('p-4 mb-4 flex items-start space-x-2 border-l-4', { 'border-brand bg-brand-light text-ink': type == 'info', 'border-red-700 bg-red-50 text-red-950': type == 'warning', 'border-emerald-700 bg-emerald-50 text-emerald-950': type == 'success' }) }}">
{{ icon(type == 'success' ? 'check' : 'alert', 'w-5 h-5 shrink-0') }}
<div class="leading-relaxed text-base">
{% block message %}
{{ message | nl2br }}
{% endblock %}
</div>
{#
A notice in the style of the apps template's Alert.tsx (ep-corporate-design): `type` is success,
error, warning or info, `message` the text; `embed` it and fill the `message` block for markup.
Errors are announced at once (role="alert"), the others politely.
#}
{% set styles = {
success: ['border-emerald-700 bg-emerald-50 text-emerald-950', 'Erledigt'],
error: ['border-red-700 bg-red-50 text-red-950', 'Fehler'],
warning: ['border-amber-600 bg-amber-50 text-amber-950', 'Achtung'],
info: ['border-brand bg-brand-light text-ink', 'Hinweis'],
} %}
{% set style = styles[type ?? 'info'] %}
<div role="{{ type == 'error' ? 'alert' : 'status' }}" class="notice mb-4 {{ style[0] }}">
<span class="sr-only">{{ style[1] }}: </span>
{%- block message %}{{ message|nl2br }}{% endblock -%}
</div>
+1 -1
View File
@@ -1,5 +1,5 @@
{# The E&P logo with the app name beside it, as in the header of the apps portal (EP/apps) and epbms. #}
<span class="flex items-center gap-3">
<img class="h-9 w-auto" src="{{ asset('build/images/ep-logo.svg') }}" alt="E&amp;P Reisen &amp; Events" width="157" height="48">
<span class="pl-3 border-l border-line text-sm font-bold uppercase tracking-wide text-brand">Team</span>
<span class="pl-3 border-l border-line text-sm font-black uppercase tracking-wide text-brand">{{ app_name }}</span>
</span>
+1 -1
View File
@@ -1,5 +1,5 @@
{% if app.session.flashBag.peek('error')|length > 0 %}
{% include '_partials/_toast.html.twig' with { level: 'warning', messages: app.flashes('error') } %}
{% include '_partials/_toast.html.twig' with { level: 'error', messages: app.flashes('error') } %}
{% endif %}
{% if app.session.flashBag.peek('success')|length > 0 %}
{% include '_partials/_toast.html.twig' with { level: 'success', messages: app.flashes('success') } %}
+23
View File
@@ -0,0 +1,23 @@
{#
E&P header as in the apps template: logo, app name behind a thin line, a deep blue bar below.
Embed it and fill its blocks:
- `header_nav`: the main views as `.header-tab` links, for apps with few views (layout_tabs)
- `header_end`: season, user menu, help link and, in the sidebar layout, the menu button
`app_name` and `home_path` come from the embedding template; `header_width` lines the header up with
a centred content column (layout_sidebar), without it the header runs full width (layout_tabs).
#}
<header class="shrink-0 print:hidden">
<div class="border-b border-line bg-white">
<div class="flex items-stretch gap-x-6 text-sm {{ header_width ?? 'px-4' }}">
<a href="{{ home_path }}" class="flex shrink-0 items-center gap-3 py-2">
<img src="{{ asset('build/images/ep-logo.svg') }}" alt="E&P Reisen & Events" width="157" height="48" class="h-9 w-auto">
<span class="pl-3 border-l border-line font-black uppercase tracking-wide text-brand">{{ app_name }}</span>
</a>
{% block header_nav %}{% endblock %}
<div class="ml-auto flex items-stretch gap-x-4">
{% block header_end %}{% endblock %}
</div>
</div>
</div>
<div class="h-2 bg-brand" aria-hidden="true"></div>
</header>
-86
View File
@@ -1,86 +0,0 @@
{% extends 'knp_menu.html.twig' %}
{% block list %}
{% if item.hasChildren and options.depth is not same as(0) and item.displayChildren %}
{% if item.level == 0 %}
<div class="min-h-full flex grow flex-col gap-y-5">
<nav class="flex flex-1 flex-col">
<ul role="list" class="space-y-1">
{{ block('children') }}
</ul>
</nav>
</div>
{% else %}
<ul class="{{ html_classes('mt-1 px-2', { 'hidden': not matcher.isCurrent(item) }) }}" {{ stimulus_target('sidebar-menu', 'submenu') }}>
{{ block('children') }}
</ul>
{% endif %}
{% endif %}
{% endblock %}
{% block item %}
{% if item.displayed and item.extras.heading is defined %}
{# the heading of a group of items, see AbstractMenuBuilder::addHeading() #}
<li class="px-2 pt-5 pb-1 text-[11px] font-semibold uppercase tracking-wide text-muted">{{ item.label|raw }}</li>
{% elseif item.displayed %}
<li>
{%- if item.hasChildren and item.displayChildren %}
<div {{ stimulus_controller('sidebar-menu', {'expanded': matcher.isAncestor(item)}, {'closed': 'hidden', 'iconClosed': 'text-gray-400', 'iconExpanded': 'text-gray-500'}) }}>
{%- endif %}
{%- if item.uri is not empty %}
{{ block('linkElement') }}
{%- else %}
{{ block('spanElement') }}
{%- endif %}
{{ block('list') }}
{%- if item.hasChildren and item.displayChildren %}
</div>
{%- endif %}
</li>
{% endif %}
{% endblock %}
{% block linkElement %}
{% import _self as knp_menu %}
<a href="{{ item.uri }}"
class="{{ html_classes('', {
'group flex gap-x-3 p-2 text-sm leading-6 font-semibold': item.level == 1,
'block py-2 pr-2 pl-9 text-sm leading-6': item.level > 1,
'text-ink hover:bg-white/60 hover:text-brand': not (matcher.isCurrent(item) or matcher.isAncestor(item)),
'bg-white text-brand': matcher.isCurrent(item) or matcher.isAncestor(item)
}) }}"
{{ knp_menu.attributes(item.linkAttributes) }}>
{{ block('label') }}
</a>
{% endblock %}
{% block spanElement %}
{% import _self as knp_menu %}
{% if item.hasChildren %}
<button type="button"
{{ stimulus_action('sidebar-menu', 'toggleSubmenu') }}
{{ stimulus_target('sidebar-menu', 'button') }}
{{ knp_menu.attributes(item.linkAttributes) }}
class="{{ html_classes('hover:bg-white/60 hover:text-brand flex items-center w-full text-left p-2 gap-x-3 text-sm leading-6 font-semibold', { 'text-brand': matcher.isAncestor(item), 'text-ink': not matcher.isAncestor(item) }) }}"
aria-expanded="false">
{{ block('label') }}
</button>
{% elseif item.extras.divider is defined %}
<hr class="my-4 h-px border-line">
{% else %}
<div class="hover:bg-white/60 group flex gap-x-3 p-2 text-sm leading-5 font-semibold text-ink"
role="button">
{{ block('label') }}
</div>
{% endif %}
{% endblock %}
{% block label -%}
{% if item.extras.icon is defined -%}
{{ icon(item.extras.icon, 'h-5 w-5 shrink-0 ' ~ ((matcher.isCurrent(item) or matcher.isAncestor(item)) ? 'text-brand' : 'text-muted')) -}}
<span class="flex-1">{{ item.label|raw }}</span>
{%- else -%}
{{ item.label|raw }}
{%- endif %}
{%- endblock %}
+1 -1
View File
@@ -37,7 +37,7 @@
{% endfor %}
</ul>
<button type="button"
class="btn"
class="btn-secondary"
title="Beleg hinzufügen"
hx-get="{{ path('app_teamer_disposition_receipt_upload', { 'uuid': disposition.uuid }) }}"
hx-target="body"
+1 -1
View File
@@ -1,2 +1,2 @@
{# Marks a season assignment listed among dispositions. #}
<span class="inline-block py-1 px-2 text-xs bg-primary text-white">Saison</span>
<span class="inline-block py-1 px-2 text-xs bg-brand text-white">Saison</span>
@@ -0,0 +1,63 @@
{#
KnpMenu template for the sidebar (layout_sidebar.html.twig). Items of the first level:
- a link (`.sidebar-link`); with children, they show below it while it or a child is current
- without a URI but with children: a group that opens in place (<details>), open while a child is current
- extras `heading` (a group heading) or `divider` (a line)
- extras `icon`: rendered with _partials/_icon.html.twig (`icon`, `class`), as myep's icon() does
#}
{% extends 'knp_menu.html.twig' %}
{% block list %}
{% if item.hasChildren and options.depth is not same as(0) and item.displayChildren %}
{% if item.level == 0 %}
<ul class="space-y-1">
{{ block('children') }}
</ul>
{% elseif item.uri is empty or matcher.isCurrent(item) or matcher.isAncestor(item) %}
<ul class="mt-1 space-y-1">
{{ block('children') }}
</ul>
{% endif %}
{% endif %}
{% endblock %}
{% block item %}
{% if item.displayed and item.extras.heading is defined %}
<li class="sidebar-heading">{{ item.label }}</li>
{% elseif item.displayed and item.extras.divider is defined %}
<li><hr class="my-4 border-line"></li>
{% elseif item.displayed %}
<li>
{% if item.uri is empty and item.hasChildren and item.displayChildren %}
<details class="sidebar-group" {{ matcher.isAncestor(item) ? 'open' }}>
<summary class="sidebar-link {{ matcher.isAncestor(item) ? 'text-brand' }}">{{ block('label') }}</summary>
{{ block('list') }}
</details>
{% else %}
{{ block('linkElement') }}
{{ block('list') }}
{% endif %}
</li>
{% endif %}
{% endblock %}
{% block linkElement %}
{% import _self as knp_menu %}
{% set is_current = matcher.isCurrent(item) %}
<a href="{{ item.uri }}"
class="{{ item.level == 1 ? 'sidebar-link' : 'sidebar-sublink' }} {{ not is_current and item.level == 1 and matcher.isAncestor(item) ? 'sidebar-link--ancestor' }}"
{% if is_current %}aria-current="page"{% endif %}
{{ knp_menu.attributes(item.linkAttributes) }}>{{ block('label') }}</a>
{% endblock %}
{% block label -%}
{% if item.extras.icon is defined -%}
{{ include('_partials/_icon.html.twig', {
icon: item.extras.icon,
class: 'size-5 shrink-0 ' ~ (matcher.isCurrent(item) or matcher.isAncestor(item) ? 'text-brand' : 'text-muted'),
}) }}
<span class="flex-1">{{ item.label }}</span>
{%- else -%}
{{ item.label }}
{%- endif %}
{%- endblock %}
+2 -2
View File
@@ -13,8 +13,8 @@
{# by route name: the items carry the return url, which the matcher would compare as well #}
{% set current = child.extras.routes|default([])|filter(r => r.route is defined and r.route == app.request.attributes.get('_route'))|length > 0 %}
<a href="{{ child.uri }}"
class="{{ html_classes('tab', { 'tab--current': current }) }}"
{% if current %}aria-current="page"{% endif %}>{{ child.label|raw }}</a>
class="tab"
{% if current %}aria-current="page"{% endif %}>{{ child.label }}</a>
{% endfor %}
</nav>
{% endblock %}
+3 -3
View File
@@ -23,13 +23,13 @@
role="menu"
{{ stimulus_target('toggle', 'toggle') }}>
{% if app.user.teamer %}
<a href="{{ path('app_teamer_profile_index') }}" class="user-menu-item" role="menuitem">{{ icon('user', 'w-5 h-5 text-muted') }}Mein Profil</a>
<a href="{{ path('app_teamer_profile_index') }}" class="menu-item flex items-center gap-x-3" role="menuitem">{{ icon('user', 'w-5 h-5 text-muted') }}Mein Profil</a>
{% elseif is_granted('ROLE_ADMINISTRATIVE') %}
<a href="{{ path('app_administrative_profile_index') }}" class="user-menu-item" role="menuitem">{{ icon('user', 'w-5 h-5 text-muted') }}Mein Profil</a>
<a href="{{ path('app_administrative_profile_index') }}" class="menu-item flex items-center gap-x-3" role="menuitem">{{ icon('user', 'w-5 h-5 text-muted') }}Mein Profil</a>
{% endif %}
{% for item in user_menu.children %}
{% if loop.last %}<hr class="my-1 border-line">{% endif %}
<a href="{{ item.uri }}" class="user-menu-item" role="menuitem">{{ icon(item.extras.icon, 'w-5 h-5 text-muted') }}{{ item.label }}</a>
<a href="{{ item.uri }}" class="menu-item flex items-center gap-x-3" role="menuitem">{{ icon(item.extras.icon, 'w-5 h-5 text-muted') }}{{ item.label }}</a>
{% endfor %}
</div>
</div>
+2 -2
View File
@@ -9,7 +9,7 @@
</h1>
<div class="flex flex-col items-end space-y-2 md:flex-row md:items-center md:space-x-2 md:space-y-0">
<button type="button"
class="{{ html_classes('btn btn--small', { 'btn--secondary': filterDto.active }) }}"
class="{{ html_classes('btn-tool', { 'border-brand bg-brand-light text-brand': filterDto.active }) }}"
title="Filter"
hx-get="{{ path('app_common_application_filter', { 'r': return_url() }) }}"
hx-target="body"
@@ -23,7 +23,7 @@
</button>
{% if filterDto.active %}
<a href="{{ path('app_common_application_filter_reset', { 'r': return_url() }) }}"
class="btn btn--small btn--secondary">
class="btn-tool">
Reset
</a>
{% endif %}
@@ -9,10 +9,10 @@
{{ form_start(form) }}
{{ form_row(form.specialAgreements) }}
<div class="mt-6 flex items-center justify-between">
<button type="submit" class="btn">
<button type="submit" class="btn-primary">
Ja
</button>
<button type="button" class="btn btn--secondary" {{ stimulus_action('modal', 'close') }}>
<button type="button" class="btn-secondary" {{ stimulus_action('modal', 'close') }}>
Abbrechen
</button>
</div>
@@ -9,7 +9,7 @@
{{ form_row(form.comment) }}
{{ form_row(form.commentVisible) }}
</div>
<button type="submit" class="btn">
<button type="submit" class="btn-primary">
Aktualisieren
</button>
{{ form_rest(form) }}
@@ -62,14 +62,14 @@
{% if submission.email %}
<div class="flex flex-wrap items-center gap-2 pt-4">
<button type="button"
class="btn btn--small btn--secondary"
class="btn-tool"
hx-get="{{ path('app_admin_application_form_submission_send_receipt', { 'uuid': submission.uuid, 'r': forwarded_return_url() }) }}"
hx-target="body"
hx-swap="beforeend">
Eingangsbestätigung erneut senden
</button>
<button type="button"
class="btn btn--small"
class="btn-tool"
hx-get="{{ path('app_admin_application_form_submission_send_follow_up', { 'uuid': submission.uuid, 'r': forwarded_return_url() }) }}"
hx-target="body"
hx-swap="beforeend">
@@ -98,7 +98,7 @@
<div class="text-sm">geführt am {{ submission.secondCallHeldAt|date('d.m.Y') }}</div>
{% endif %}
</div>
{{ form_widget(callsForm.save, { 'attr': { 'class': 'btn btn--small' } }) }}
{{ form_widget(callsForm.save, { 'attr': { 'class': 'btn-tool' } }) }}
{{ form_rest(callsForm) }}
{{ form_end(callsForm) }}
</div>
@@ -109,12 +109,12 @@
<div class="pt-4">
{% if submission.user and submission.user.teamer %}
<a href="{{ path('app_administrative_teamer_profile', { 'uuid': submission.user.teamer.uuid, 'r': forwarded_return_url() }) }}"
class="btn btn--small btn--secondary">
class="btn-tool">
Teamer:innenprofil öffnen
</a>
{% elseif submission.email %}
<button type="button"
class="btn btn--small"
class="btn-tool"
hx-get="{{ path('app_admin_application_form_submission_create_teamer', { 'uuid': submission.uuid, 'r': forwarded_return_url() }) }}"
hx-target="body"
hx-swap="beforeend">
@@ -9,7 +9,7 @@
</h1>
<div class="flex flex-col items-end space-y-2 md:flex-row md:items-center md:space-x-2 md:space-y-0">
<button type="button"
class="{{ html_classes('btn btn--small', { 'btn--secondary': filterDto.active }) }}"
class="{{ html_classes('btn-tool', { 'border-brand bg-brand-light text-brand': filterDto.active }) }}"
title="Filter"
hx-get="{{ path('app_common_application_form_submission_filter', { 'r': return_url() }) }}"
hx-target="body"
@@ -23,7 +23,7 @@
</button>
{% if filterDto.active %}
<a href="{{ path('app_common_application_form_submission_filter_reset') }}"
class="btn btn--small btn--secondary">
class="btn-tool">
Reset
</a>
{% endif %}
@@ -107,13 +107,13 @@
<td>
<twig:DropDown>
<a href="{{ path('app_admin_application_form_submission_detail', { 'uuid': submission.uuid, 'r': return_url() }) }}"
class="text-gray-700 hover:text-primary block px-4 py-2 text-sm"
class="text-gray-700 hover:text-brand block px-4 py-2 text-sm"
role="menuitem"
tabindex="-1">
Details
</a>
<button type="button"
class="text-red-500 hover:text-primary block px-4 py-2 text-sm w-full text-left"
class="text-red-500 hover:text-brand block px-4 py-2 text-sm w-full text-left"
role="menuitem"
tabindex="-1"
hx-get="{{ path('app_admin_application_form_submission_delete', { 'uuid': submission.uuid, 'r': return_url() }) }}"
@@ -7,7 +7,7 @@
<div class="flex flex-col space-y-4 pb-4">
{{ form_row(form.remarks) }}
</div>
<button type="submit" class="btn">
<button type="submit" class="btn-secondary border-red-700 text-red-800 hover:bg-red-700 hover:text-white">
Löschen
</button>
{{ form_rest(form) }}
@@ -8,7 +8,7 @@
{{ form_row(form.comment) }}
{{ form_row(form.commentInternal) }}
</div>
<button type="submit" class="btn">
<button type="submit" class="btn-primary">
Speichern und freigeben
</button>
{{ form_rest(form) }}
+1 -1
View File
@@ -44,7 +44,7 @@
{% endif %}
{% endblock %}
</div>
<button type="submit" class="btn">
<button type="submit" class="btn-primary">
Speichern
</button>
{{ form_rest(form) }}
@@ -4,7 +4,7 @@
{{ form_row(form.dateTo) }}
{{ form_row(form.description) }}
</div>
<button type="submit" class="btn">
<button type="submit" class="btn-primary">
Speichern
</button>
{{ form_rest(form) }}
@@ -75,7 +75,7 @@
</div>
</div>
<button type="button"
class="btn"
class="btn-secondary"
title="Zeitraum hinzufügen"
hx-get="{{ path('app_admin_system_availability_create') }}"
hx-target="body"
@@ -19,7 +19,7 @@
{{ form_errors(form) }}
</div>
</div>
<button type="submit" class="btn" {{ stimulus_target('form-upload-guard', 'submit') }}>
<button type="submit" class="btn-primary" {{ stimulus_target('form-upload-guard', 'submit') }}>
speichern
</button>
{{ form_rest(form) }}
@@ -67,7 +67,7 @@
</div>
</div>
<button type="button"
class="btn"
class="btn-secondary"
title="Ansprechperson hinzufügen"
hx-get="{{ path('app_admin_system_contact_create') }}"
hx-target="body"
@@ -23,15 +23,15 @@
</div>
</div>
<div class="flex items-center space-x-2">
<button type="submit" class="btn">
<button type="submit" class="btn-primary">
Speichern
</button>
<a href="{{ path('app_admin_system_email_text_index') }}" class="btn btn--secondary">
<a href="{{ path('app_admin_system_email_text_index') }}" class="btn-secondary">
Abbrechen
</a>
{% if emailText.id is not null %}
<button type="button"
class="btn btn--secondary text-red-500"
class="btn-secondary text-red-500"
hx-get="{{ path('app_admin_system_email_text_reset', { 'key': definition.key.value }) }}"
hx-target="body"
hx-swap="beforeend">
@@ -12,7 +12,7 @@
{{ text.bodyHtml | raw }}
</div>
<p>
<span class="btn inline-block">Zum Portal</span>
<span class="btn-secondary inline-block">Zum Portal</span>
</p>
</div>
<div class="pt-4 text-sm text-gray-500">
+1 -1
View File
@@ -4,7 +4,7 @@
{{ form_row(form.nameInternal) }}
{{ form_row(form.value) }}
</div>
<button type="submit" class="btn">
<button type="submit" class="btn-primary">
Speichern
</button>
{{ form_rest(form) }}
+1 -1
View File
@@ -74,7 +74,7 @@
</div>
</div>
<button type="button"
class="btn"
class="btn-secondary"
title="Honorar hinzufügen"
hx-get="{{ path('app_admin_system_fee_create') }}"
hx-target="body"
@@ -32,10 +32,10 @@
</div>
</div>
<div class="flex items-center space-x-2">
<button type="submit" class="btn">
<button type="submit" class="btn-primary">
Speichern
</button>
<a href="{{ path('app_admin_system_feedback_set_index') }}" class="btn btn--secondary">
<a href="{{ path('app_admin_system_feedback_set_index') }}" class="btn-secondary">
Abbrechen
</a>
</div>
@@ -57,7 +57,7 @@
</table>
</div>
</div>
<a href="{{ path('app_admin_system_feedback_set_create') }}" class="btn">
<a href="{{ path('app_admin_system_feedback_set_create') }}" class="btn-secondary">
Neu
</a>
{% endblock %}
@@ -8,10 +8,10 @@
{{ form_row(form.costUnit) }}
</div>
<div class="flex items-center space-x-2">
<button type="submit" class="btn">
<button type="submit" class="btn-primary">
Speichern
</button>
<a href="{{ path('app_admin_system_job_profile_index') }}" class="btn btn--secondary">
<a href="{{ path('app_admin_system_job_profile_index') }}" class="btn-secondary">
Abbrechen
</a>
</div>
@@ -88,7 +88,7 @@
</table>
</div>
</div>
<a href="{{ path('app_admin_system_job_profile_create') }}" class="btn">
<a href="{{ path('app_admin_system_job_profile_create') }}" class="btn-secondary">
Neu
</a>
{% endblock %}
@@ -2,7 +2,7 @@
<div class="flex flex-col space-y-4 pb-8">
{{ form_row(form.name) }}
</div>
<button type="submit" class="btn">
<button type="submit" class="btn-primary">
Speichern
</button>
{{ form_rest(form) }}
@@ -61,7 +61,7 @@
</div>
</div>
<button type="button"
class="btn"
class="btn-secondary"
title="Fortbildung hinzufügen"
hx-get="{{ path('app_admin_system_training_create') }}"
hx-target="body"
+2 -2
View File
@@ -9,10 +9,10 @@
{{ form_row(form.disabledReasonInternal) }}
</div>
<div class="flex items-center space-x-2">
<button type="submit" class="btn">
<button type="submit" class="btn-primary">
Speichern
</button>
<a href="{{ path('app_admin_system_user_index') }}" class="btn btn--secondary">
<a href="{{ path('app_admin_system_user_index') }}" class="btn-secondary">
Abbrechen
</a>
</div>
+1 -1
View File
@@ -71,7 +71,7 @@
{{ label }}
</span>
<button type="button"
class="btn btn--secondary"
class="btn-secondary"
hx-get="{{ path('app_admin_system_user_approve_role', { 'id': user.id, 'role': role }) }}"
hx-target="body"
hx-swap="beforeend">
@@ -50,7 +50,7 @@
{% endif %}
</div>
<button type="button"
class="{{ html_classes('btn btn--small shrink-0', { 'btn--secondary': filterDto.active }) }}"
class="{{ html_classes('btn-tool shrink-0', { 'border-brand bg-brand-light text-brand': filterDto.active }) }}"
title="Team filtern"
hx-get="{{ path('app_common_teamer_filter', { 'r': return_url() }) }}"
hx-target="body"
@@ -7,7 +7,7 @@
{{ bodyHtml | raw }}
{{ include('email/_colleagues.html.twig', {colleagues: colleagues | default([])}) }}
<p>
<span class="btn inline-block">Zum Portal</span>
<span class="btn-secondary inline-block">Zum Portal</span>
</p>
</div>
<div class="pt-4 text-sm text-gray-500">
+3 -3
View File
@@ -78,7 +78,7 @@
{# nobody to write to means there is nothing to confirm, only the preview stays useful #}
{% if recipients.eligibleCount > 0 %}
<button type="button"
class="btn"
class="btn-primary"
hx-post="{{ path('app_admin_teamer_mailing_confirm', { 'scope': scope }) }}"
hx-include="closest form"
hx-target="body"
@@ -87,11 +87,11 @@
<span>Senden</span>
</button>
{% endif %}
<button type="submit" class="btn btn--secondary">
<button type="submit" class="btn-secondary">
Vorschau an mich senden
</button>
{% if hasDraft %}
<a href="{{ path('app_admin_teamer_mailing_discard', { 'scope': scope }) }}" class="btn btn--secondary">
<a href="{{ path('app_admin_teamer_mailing_discard', { 'scope': scope }) }}" class="btn-secondary">
Entwurf verwerfen
</a>
{% endif %}
@@ -11,7 +11,7 @@
{{ form_row(form.disabledReason) }}
{{ form_row(form.disabledReasonInternal) }}
</div>
<button type="submit" class="btn bg-red-500 text-white">
<button type="submit" class="btn-secondary border-red-700 text-red-800 hover:bg-red-700 hover:text-white">
Sperren
</button>
{{ form_rest(form) }}
@@ -12,7 +12,7 @@
<div class="pb-4">
{{ form_row(form.remarks) }}
</div>
<button type="submit" class="btn">
<button type="submit" class="btn-primary">
speichern
</button>
{{ form_rest(form) }}
+1 -1
View File
@@ -23,7 +23,7 @@
<div class="pb-4">
{{ form_row(form.allowOverlappingApplications) }}
</div>
<button type="submit" class="btn btn--small">
<button type="submit" class="btn-tool">
Speichern
</button>
{{ form_rest(form) }}
@@ -7,7 +7,7 @@
<div class="flex flex-col space-y-4 pb-8">
{{ form_row(form.date) }}
</div>
<button type="submit" class="btn">
<button type="submit" class="btn-primary">
Speichern
</button>
{{ form_rest(form) }}
+6 -6
View File
@@ -9,7 +9,7 @@
</h1>
<div class="flex flex-col items-end space-y-2 md:flex-row md:items-center md:space-x-2 md:space-y-0">
<button type="button"
class="{{ html_classes('btn btn--small', { 'btn--secondary': filterDto.active }) }}"
class="{{ html_classes('btn-tool', { 'border-brand bg-brand-light text-brand': filterDto.active }) }}"
title="Arbeitszeiten filtern"
hx-get="{{ path('app_common_work_month_filter', { 'r': return_url() }) }}"
hx-target="body"
@@ -22,7 +22,7 @@
{% endif %}
</button>
{% if filterDto.active %}
<a href="{{ path('app_common_work_month_filter_reset', { 'r': return_url() }) }}" class="btn btn--small btn--secondary">
<a href="{{ path('app_common_work_month_filter_reset', { 'r': return_url() }) }}" class="btn-tool">
Reset
</a>
{% endif %}
@@ -91,7 +91,7 @@
<td>
<twig:DropDown>
<a href="{{ path('app_admin_work_month_pdf', { 'uuid': workMonth.uuid }) }}"
class="text-gray-700 hover:text-primary block px-4 py-2 text-sm"
class="text-gray-700 hover:text-brand block px-4 py-2 text-sm"
role="menuitem"
tabindex="-1"
target="_blank">
@@ -99,7 +99,7 @@
</a>
{% if workMonth.status.value == 'submitted' %}
<a href="{{ path('app_admin_work_month_review', { 'uuid': workMonth.uuid, 'r': return_url() }) }}"
class="text-gray-700 hover:text-primary block px-4 py-2 text-sm"
class="text-gray-700 hover:text-brand block px-4 py-2 text-sm"
role="menuitem"
tabindex="-1"
hx-get="{{ path('app_admin_work_month_review', { 'uuid': workMonth.uuid, 'r': return_url() }) }}"
@@ -110,7 +110,7 @@
{% endif %}
<form method="post" action="{{ path('app_admin_work_month_sync', { 'uuid': workMonth.uuid, 'r': return_url() }) }}">
<button type="submit"
class="w-full text-left text-gray-700 hover:text-primary block px-4 py-2 text-sm"
class="w-full text-left text-gray-700 hover:text-brand block px-4 py-2 text-sm"
role="menuitem"
tabindex="-1">
Erneut abrufen
@@ -119,7 +119,7 @@
{% if workMonth.status.value in ['submitted', 'approved'] %}
<form method="post" action="{{ path('app_admin_work_month_unlock', { 'uuid': workMonth.uuid, 'r': return_url() }) }}">
<button type="submit"
class="w-full text-left text-gray-700 hover:text-primary block px-4 py-2 text-sm"
class="w-full text-left text-gray-700 hover:text-brand block px-4 py-2 text-sm"
role="menuitem"
tabindex="-1"
onclick="return confirm('Der Monat wird wieder geöffnet und muss neu unterschrieben werden. Fortfahren?')">
@@ -41,7 +41,7 @@
{{ form_row(form.comment) }}
</div>
<button type="submit" class="btn">
<button type="submit" class="btn-primary">
Speichern
</button>
{{ form_rest(form) }}
@@ -41,10 +41,10 @@
</div>
</div>
<div class="flex items-center space-x-2">
<button type="submit" class="btn">
<button type="submit" class="btn-primary">
Speichern
</button>
<a href="{{ returnUrl }}" class="btn btn--secondary">
<a href="{{ returnUrl }}" class="btn-secondary">
Abbrechen
</a>
</div>
@@ -27,7 +27,7 @@
<span class="border px-2 py-1 text-xs font-bold uppercase tracking-wide {{ status[1] }}">{{ status[0] }}</span>
{% endif %}
{% if is_granted('EDIT', assignment) %}
<a href="{{ path('app_administrative_assignment_edit', { 'uuid': assignment.uuid, 'r': return_url() }) }}" class="btn btn--small btn--secondary">
<a href="{{ path('app_administrative_assignment_edit', { 'uuid': assignment.uuid, 'r': return_url() }) }}" class="btn-tool">
{{ icon('edit', 'w-4 h-4 shrink-0') }}
<span>bearbeiten</span>
</a>
@@ -225,7 +225,7 @@
</button>
<twig:DropDown>
<button type="button"
class="text-gray-700 hover:text-primary block px-4 py-2 text-sm w-full text-left"
class="text-gray-700 hover:text-brand block px-4 py-2 text-sm w-full text-left"
role="menuitem"
tabindex="-1"
hx-get="{{ path('app_administrative_disposition_special_agreements', { 'uuid': disposition.uuid, 'r': forwarded_return_url() }) }}"
@@ -235,7 +235,7 @@
</button>
{% if is_granted('ADMIN_DOCUMENT_UPLOAD', disposition) %}
<button type="button"
class="text-gray-700 hover:text-primary block px-4 py-2 text-sm w-full text-left"
class="text-gray-700 hover:text-brand block px-4 py-2 text-sm w-full text-left"
role="menuitem"
tabindex="-1"
hx-get="{{ path('app_administrative_disposition_document_upload', { 'uuid': disposition.uuid, 'type': 'contract', 'r': forwarded_return_url() }) }}"
@@ -244,7 +244,7 @@
Honorarvertrag hochladen
</button>
<button type="button"
class="text-gray-700 hover:text-primary block px-4 py-2 text-sm w-full text-left"
class="text-gray-700 hover:text-brand block px-4 py-2 text-sm w-full text-left"
role="menuitem"
tabindex="-1"
hx-get="{{ path('app_administrative_disposition_document_upload', { 'uuid': disposition.uuid, 'type': 'invoice', 'r': forwarded_return_url() }) }}"
@@ -9,7 +9,7 @@
</h1>
<div class="flex flex-col items-end space-y-2 md:flex-row md:items-center md:space-x-2 md:space-y-0">
<button type="button"
class="{{ html_classes('btn btn--small', { 'btn--secondary': filterDto.active }) }}"
class="{{ html_classes('btn-tool', { 'border-brand bg-brand-light text-brand': filterDto.active }) }}"
title="Filter"
hx-get="{{ path('app_common_assignment_filter', { 'r': return_url() }) }}"
hx-target="body"
@@ -30,17 +30,17 @@
{# starts a new mailing even with nothing ticked, rather than reopening the last draft #}
<input type="hidden" name="start" value="1">
<button type="submit"
class="btn btn--small btn--secondary"
class="btn-tool"
title="Mail an die bestätigten Teamer:innen der ausgewählten Einsätze">
{{ icon('mail', 'w-4 h-4 shrink-0') }}
<span class="whitespace-nowrap">Mail an Teamer:innen</span>
</button>
</form>
<a href="{{ path('app_administrative_assignment_create', { 'r': return_url() }) }}" class="btn btn--small">
<a href="{{ path('app_administrative_assignment_create', { 'r': return_url() }) }}" class="btn-tool">
Neu
</a>
{% if filterDto.active %}
<a href="{{ path('app_common_assignment_filter_reset', { 'r': return_url() }) }}" class="btn btn--small btn--secondary">
<a href="{{ path('app_common_assignment_filter_reset', { 'r': return_url() }) }}" class="btn-tool">
Reset
</a>
{% endif %}
@@ -93,7 +93,7 @@
name="assignments[]"
value="{{ assignment.uuid }}"
form="assignment-mailing-select"
class="h-4 w-4 rounded-sm text-primary border-gray-300 focus:ring-primary"
class="h-4 w-4 rounded-sm text-brand border-gray-300 focus:ring-brand"
title="Für Mail auswählen"
aria-label="Einsatz {{ assignment.id }} für Mail auswählen">
</td>
@@ -190,7 +190,7 @@
<td>
<twig:DropDown>
<button type="button"
class="text-red-500 hover:text-primary block px-4 py-2 text-sm w-full text-left"
class="text-red-500 hover:text-brand block px-4 py-2 text-sm w-full text-left"
role="menuitem"
tabindex="-1"
hx-get="{{ path('app_administrative_assignment_delete', { 'uuid': assignment.uuid }) }}"
@@ -200,7 +200,7 @@
</button>
{% if is_granted('CALL_OFF', assignment) %}
<button type="button"
class="text-red-500 hover:text-primary block px-4 py-2 text-sm w-full text-left"
class="text-red-500 hover:text-brand block px-4 py-2 text-sm w-full text-left"
role="menuitem"
tabindex="-1"
hx-get="{{ path('app_administrative_assignment_call_off', { 'uuid': assignment.uuid }) }}"
@@ -210,14 +210,14 @@
</button>
{% endif %}
<a href="{{ path('app_administrative_assignment_duplicate', { 'uuid': assignment.uuid, 'r': return_url() }) }}"
class="text-gray-700 hover:text-primary block px-4 py-2 text-sm"
class="text-gray-700 hover:text-brand block px-4 py-2 text-sm"
role="menuitem"
tabindex="-1">
duplizieren
</a>
{% if is_granted('EDIT', assignment) %}
<a href="{{ path('app_administrative_assignment_edit', { 'uuid': assignment.uuid, 'r': return_url() }) }}"
class="text-gray-700 hover:text-primary block px-4 py-2 text-sm"
class="text-gray-700 hover:text-brand block px-4 py-2 text-sm"
role="menuitem"
tabindex="-1">
bearbeiten
@@ -233,14 +233,14 @@
</button>
{% endif %}
<a href="{{ path('app_administrative_questionnaire_test', { 'uuid': assignment.uuid, 'r': return_url() }) }}"
class="text-gray-700 hover:text-primary block px-4 py-2 text-sm"
class="text-gray-700 hover:text-brand block px-4 py-2 text-sm"
role="menuitem"
tabindex="-1"
title="Das Reiseleitungsfeedback ansehen und ausprobieren, wie es Teamer:innen dieses Einsatzes bekommen. Es wird nichts gespeichert.">
Vorschau Reiseleitungsfeedback
</a>
<a href="{{ path('app_administrative_questionnaire_test_house_manager', { 'uuid': assignment.uuid, 'r': return_url() }) }}"
class="text-gray-700 hover:text-primary block px-4 py-2 text-sm"
class="text-gray-700 hover:text-brand block px-4 py-2 text-sm"
role="menuitem"
tabindex="-1"
title="Das Hausleitungsfeedback zur Reise dieses Einsatzes ansehen und ausprobieren. Es wird nichts gespeichert.">
@@ -293,7 +293,7 @@
</div>
</div>
<a href="{{ path('app_administrative_assignment_create', { 'r': return_url() }) }}" class="btn">
<a href="{{ path('app_administrative_assignment_create', { 'r': return_url() }) }}" class="btn-secondary">
Neu
</a>
{% endblock %}
@@ -39,13 +39,13 @@
</h1>
<div class="flex flex-col items-end space-y-2 md:flex-row md:items-center md:space-x-2 md:space-y-0">
<button type="button"
class="btn btn--small btn--secondary"
class="btn-tool"
{{ stimulus_action('timeline-scroll', 'scrollToToday') }}>
{{ icon('calendar', 'w-4 h-4 shrink-0') }}
<span>Heute</span>
</button>
<button type="button"
class="{{ html_classes('btn btn--small', { 'btn--secondary': filterDto.active }) }}"
class="{{ html_classes('btn-tool', { 'border-brand bg-brand-light text-brand': filterDto.active }) }}"
title="Filter"
hx-get="{{ path('app_common_timeline_filter', { 'r': return_url() }) }}"
hx-target="body"
@@ -58,7 +58,7 @@
{% endif %}
</button>
{% if filterDto.active %}
<a href="{{ path('app_common_timeline_filter_reset', { 'r': return_url() }) }}" class="btn btn--small btn--secondary">
<a href="{{ path('app_common_timeline_filter_reset', { 'r': return_url() }) }}" class="btn-tool">
Reset
</a>
{% endif %}
@@ -20,7 +20,7 @@
</label>
<select id="mailing-template"
name="template"
class="block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-xs ring-1 ring-inset ring-gray-300 focus:ring-2 focus:ring-inset focus:ring-primary text-sm"
class="block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-xs ring-1 ring-inset ring-gray-300 focus:ring-2 focus:ring-inset focus:ring-brand text-sm"
hx-post="{{ path('app_administrative_assignment_mailing_template') }}"
hx-trigger="change"
hx-include="#mailing-form"
@@ -75,7 +75,7 @@
<div class="flex items-center space-x-2 pb-8">
<button type="button"
class="btn"
class="btn-primary"
hx-post="{{ path('app_administrative_assignment_mailing_confirm') }}"
hx-include="closest form"
hx-target="body"
@@ -84,11 +84,11 @@
{{ icon('mail', 'w-4 h-4 shrink-0') }}
<span>Senden</span>
</button>
<button type="submit" class="btn btn--secondary" {{ stimulus_target('form-upload-guard', 'submit') }}>
<button type="submit" class="btn-secondary" {{ stimulus_target('form-upload-guard', 'submit') }}>
Vorschau an mich senden
</button>
{% if hasDraft %}
<a href="{{ path('app_administrative_assignment_mailing_discard') }}" class="btn btn--secondary">
<a href="{{ path('app_administrative_assignment_mailing_discard') }}" class="btn-secondary">
Entwurf verwerfen
</a>
{% endif %}
@@ -9,7 +9,7 @@
</h1>
<div class="flex flex-col items-end space-y-2 md:flex-row md:items-center md:space-x-2 md:space-y-0">
<button type="button"
class="{{ html_classes('btn btn--small', { 'btn--secondary': filterDto.active }) }}"
class="{{ html_classes('btn-tool', { 'border-brand bg-brand-light text-brand': filterDto.active }) }}"
title="Filter"
hx-get="{{ path('app_common_availability_filter', { 'r': return_url() }) }}"
hx-target="body"
@@ -23,7 +23,7 @@
</button>
{% if filterDto.active %}
<a href="{{ path('app_common_availability_filter_reset', { 'r': return_url() }) }}"
class="btn btn--small btn--secondary">
class="btn-tool">
Reset
</a>
{% endif %}
@@ -77,7 +77,7 @@
</div>
</div>
<button type="button"
class="btn"
class="btn-secondary"
title="Zeitraum hinzufügen"
hx-get="{{ path('app_admin_system_availability_create') }}"
hx-target="body"
@@ -12,7 +12,7 @@
{{ form_row(form.calledOffReason) }}
{{ form_row(form.sendNotification) }}
</div>
<button type="submit" class="btn">
<button type="submit" class="btn-primary">
Absagen
</button>
{{ form_rest(form) }}
@@ -14,7 +14,7 @@
'accepted_files': 'image/jpg,image/jpeg,application/pdf',
} %}
</div>
<button type="submit" class="btn" {{ stimulus_target('form-upload-guard', 'submit') }}>
<button type="submit" class="btn-primary" {{ stimulus_target('form-upload-guard', 'submit') }}>
Upload speichern
</button>
{{ form_rest(form) }}
@@ -10,7 +10,7 @@
<div class="flex flex-col space-y-4 pb-4">
{{ form_row(form.specialAgreements) }}
</div>
<button type="submit" class="btn">
<button type="submit" class="btn-primary">
Aktualisieren
</button>
{{ form_rest(form) }}
@@ -15,7 +15,7 @@
</h1>
<div class="flex flex-col items-end space-y-2 md:flex-row md:items-center md:space-x-2 md:space-y-0">
<a href="{{ path('app_administrative_document_batch_download', { 'type': type, 'status': status }) }}"
class="btn btn--small">
class="btn-tool">
{{ icon('download', 'w-4 h-4 shrink-0') }}
<span>alle herunterladen</span>
</a>
@@ -9,7 +9,7 @@
</h1>
<div class="flex flex-col items-end space-y-2 md:flex-row md:items-center md:space-x-2 md:space-y-0">
<button type="button"
class="{{ html_classes('btn btn--small', { 'btn--secondary': filterDto.active }) }}"
class="{{ html_classes('btn-tool', { 'border-brand bg-brand-light text-brand': filterDto.active }) }}"
title="Filter"
hx-get="{{ path('app_common_document_filter', { 'r': return_url() }) }}"
hx-target="body"
@@ -23,7 +23,7 @@
</button>
{% if filterDto.active %}
<a href="{{ path('app_common_document_filter_reset', { 'r': return_url() }) }}"
class="btn btn--small btn--secondary">
class="btn-tool">
Reset
</a>
{% endif %}
@@ -40,7 +40,7 @@
{% endif %}
{{ form_row(form.comment) }}
</div>
<button type="submit" class="btn">
<button type="submit" class="btn-primary">
Aktualisieren
</button>
{{ form_rest(form) }}
@@ -16,7 +16,7 @@
<div class="pb-4">
{{ form_row(form.comment) }}
</div>
<button type="submit" class="btn">
<button type="submit" class="btn-primary">
Aktualisieren
</button>
{{ form_rest(form) }}
@@ -9,7 +9,7 @@
</h1>
<div class="flex flex-col items-end space-y-2 md:flex-row md:items-center md:space-x-2 md:space-y-0">
<button type="button"
class="{{ html_classes('btn btn--small', { 'btn--secondary': filterDto.active }) }}"
class="{{ html_classes('btn-tool', { 'border-brand bg-brand-light text-brand': filterDto.active }) }}"
title="Filter"
hx-get="{{ path('app_common_feedback_filter', { 'r': return_url() }) }}"
hx-target="body"
@@ -22,11 +22,11 @@
{% endif %}
</button>
{% if filterDto.active %}
<a href="{{ path('app_common_feedback_filter_reset', { 'r': return_url() }) }}" class="btn btn--small btn--secondary">
<a href="{{ path('app_common_feedback_filter_reset', { 'r': return_url() }) }}" class="btn-tool">
Reset
</a>
{% endif %}
<a href="{{ path('app_administrative_feedback_export') }}" class="btn btn--small" title="Nach Excel exportieren">
<a href="{{ path('app_administrative_feedback_export') }}" class="btn-tool" title="Nach Excel exportieren">
{{ icon('excel', 'w-4 h-4 shrink-0') }}
<span>Export</span>
</a>
@@ -103,7 +103,7 @@
</div>
</div>
{% if is_granted('ROLE_TEAM_ADMIN') %}
<a href="{{ path('app_admin_feedback_provide') }}" class="btn" title="Feedback erfassen">
<a href="{{ path('app_admin_feedback_provide') }}" class="btn-secondary" title="Feedback erfassen">
Neu
</a>
{% endif %}
@@ -33,7 +33,7 @@
{{ form_row(form.commentInternal) }}
</div>
</div>
<button type="submit" class="btn">
<button type="submit" class="btn-primary">
Speichern
</button>
{{ form_rest(form) }}
@@ -18,7 +18,7 @@
<div class="flex flex-col space-y-4 pb-4">
{{ form_row(form.muteNotifications) }}
</div>
<button type="submit" class="btn">
<button type="submit" class="btn-primary">
speichern
</button>
{{ form_rest(form) }}
@@ -9,7 +9,7 @@
</h1>
<div class="flex flex-col items-end space-y-2 md:flex-row md:items-center md:space-x-2 md:space-y-0">
<button type="button"
class="{{ html_classes('btn btn--small', { 'btn--secondary': filterDto.active }) }}"
class="{{ html_classes('btn-tool', { 'border-brand bg-brand-light text-brand': filterDto.active }) }}"
title="Filter"
hx-get="{{ path('app_common_questionnaire_response_filter', { 'r': return_url() }) }}"
hx-target="body"
@@ -22,7 +22,7 @@
{% endif %}
</button>
{% if filterDto.active %}
<a href="{{ path('app_common_questionnaire_response_filter_reset', { 'r': return_url() }) }}" class="btn btn--small btn--secondary">
<a href="{{ path('app_common_questionnaire_response_filter_reset', { 'r': return_url() }) }}" class="btn-tool">
Reset
</a>
{% endif %}
@@ -33,7 +33,7 @@
{% for other in definitions %}
{% set current = other.key == definition.key %}
<a href="{{ path('app_administrative_questionnaire_index', { 'questionnaire': other.key }) }}"
class="{{ html_classes('tab', { 'tab--current': current }) }}"
class="tab"
{% if current %}aria-current="page"{% endif %}>{{ other.title }}</a>
{% endfor %}
</nav>
@@ -44,7 +44,7 @@
{% endfor %}
</div>
<div class="pt-8">
<a href="{{ path('app_administrative_questionnaire_test', { 'uuid': assignment.uuid, 'r': app.request.query.get('r') }) }}" class="btn btn--secondary">
<a href="{{ path('app_administrative_questionnaire_test', { 'uuid': assignment.uuid, 'r': app.request.query.get('r') }) }}" class="btn-secondary">
Erneut ausprobieren
</a>
</div>
@@ -21,7 +21,7 @@
} %}
{% include 'questionnaire/_answers.html.twig' with { 'answers': submitted } %}
<div class="pt-8">
<a href="{{ path('app_administrative_questionnaire_test_house_manager', { 'uuid': assignment.uuid, 'r': app.request.query.get('r') }) }}" class="btn btn--secondary">
<a href="{{ path('app_administrative_questionnaire_test_house_manager', { 'uuid': assignment.uuid, 'r': app.request.query.get('r') }) }}" class="btn-secondary">
Erneut ausprobieren
</a>
</div>
@@ -14,10 +14,10 @@
</div>
</div>
<div class="flex items-center space-x-2">
<button type="submit" class="btn">
<button type="submit" class="btn-primary">
Speichern
</button>
<a href="{{ returnUrl }}" class="btn btn--secondary">
<a href="{{ returnUrl }}" class="btn-secondary">
Abbrechen
</a>
</div>
@@ -31,7 +31,7 @@
</td>
<td class="py-2 pr-4 align-top text-center">
<input type="checkbox"
class="text-primary"
class="text-brand"
{{ row.task.officeDone ? 'checked' : '' }}
aria-label="Büro erledigt"
hx-post="{{ path('app_administrative_season_assignment_task_toggle', { 'uuid': row.task.uuid, 'field': 'office_done' }) }}"
@@ -40,7 +40,7 @@
</td>
<td class="py-2 pr-4 align-top text-center">
<input type="checkbox"
class="text-primary"
class="text-brand"
{{ row.task.done ? 'checked' : '' }}
aria-label="Erledigt"
hx-post="{{ path('app_administrative_season_assignment_task_toggle', { 'uuid': row.task.uuid, 'field': 'done' }) }}"
@@ -12,7 +12,7 @@
</span>
</h1>
<div class="flex flex-col items-end space-y-2 md:flex-row md:items-center md:space-x-2 md:space-y-0">
<a href="{{ path('app_administrative_season_assignment_edit', { 'uuid': seasonAssignment.uuid, 'r': return_url() }) }}" class="btn btn--small">
<a href="{{ path('app_administrative_season_assignment_edit', { 'uuid': seasonAssignment.uuid, 'r': return_url() }) }}" class="btn-tool">
bearbeiten
</a>
</div>
@@ -70,7 +70,7 @@
{% if teamer is not null and teamer.photo is not null %}
<a href="{{ path('app_administrative_teamer_profile', { 'uuid': teamer.uuid, 'r': return_url() }) }}">
<img src="{{ asset(teamer.photo | upload_filename_full | imagine_filter('profile')) }}"
class="w-48 h-auto border-2 border-primary"
class="w-48 h-auto border-2 border-brand"
alt="{{ teamer.firstName }}">
</a>
{% endif %}
@@ -89,7 +89,7 @@
Dokumente
</h2>
<button type="button"
class="btn btn--small"
class="btn-tool"
hx-get="{{ path('app_administrative_season_assignment_document_upload', { 'uuid': seasonAssignment.uuid, 'r': return_url() }) }}"
hx-target="body"
hx-swap="beforeend">
@@ -9,7 +9,7 @@
</h1>
<div class="flex flex-col items-end space-y-2 md:flex-row md:items-center md:space-x-2 md:space-y-0">
<button type="button"
class="{{ html_classes('btn btn--small', { 'btn--secondary': filterDto.active }) }}"
class="{{ html_classes('btn-tool', { 'border-brand bg-brand-light text-brand': filterDto.active }) }}"
title="Saisoneinsätze filtern"
hx-get="{{ path('app_common_season_assignment_filter', { 'r': return_url() }) }}"
hx-target="body"
@@ -22,7 +22,7 @@
{% endif %}
</button>
{% if filterDto.active %}
<a href="{{ path('app_common_season_assignment_filter_reset', { 'r': return_url() }) }}" class="btn btn--small btn--secondary">
<a href="{{ path('app_common_season_assignment_filter_reset', { 'r': return_url() }) }}" class="btn-tool">
Reset
</a>
{% endif %}
@@ -89,19 +89,19 @@
<td>
<twig:DropDown>
<a href="{{ path('app_administrative_season_assignment_detail', { 'uuid': seasonAssignment.uuid, 'r': return_url() }) }}"
class="text-gray-700 hover:text-primary block px-4 py-2 text-sm"
class="text-gray-700 hover:text-brand block px-4 py-2 text-sm"
role="menuitem"
tabindex="-1">
Details
</a>
<a href="{{ path('app_administrative_season_assignment_edit', { 'uuid': seasonAssignment.uuid, 'r': return_url() }) }}"
class="text-gray-700 hover:text-primary block px-4 py-2 text-sm"
class="text-gray-700 hover:text-brand block px-4 py-2 text-sm"
role="menuitem"
tabindex="-1">
bearbeiten
</a>
<button type="button"
class="text-red-500 hover:text-primary block px-4 py-2 text-sm w-full text-left"
class="text-red-500 hover:text-brand block px-4 py-2 text-sm w-full text-left"
role="menuitem"
tabindex="-1"
hx-get="{{ path('app_administrative_season_assignment_delete', { 'uuid': seasonAssignment.uuid }) }}"
@@ -130,7 +130,7 @@
</div>
</div>
<a href="{{ path('app_administrative_season_assignment_create', { 'r': return_url() }) }}" class="btn">
<a href="{{ path('app_administrative_season_assignment_create', { 'r': return_url() }) }}" class="btn-secondary">
Neu
</a>
{% endblock %}
@@ -18,7 +18,7 @@
'accepted_files': 'image/jpg,image/jpeg,application/pdf',
} %}
</div>
<button type="submit" class="btn" {{ stimulus_target('form-upload-guard', 'submit') }}>
<button type="submit" class="btn-primary" {{ stimulus_target('form-upload-guard', 'submit') }}>
Dokumente speichern
</button>
{{ form_rest(form) }}
@@ -12,7 +12,7 @@
{{ form_row(form.deadlineOverride2) }}
{{ form_row(form.applyToAll) }}
</div>
<button type="submit" class="btn">
<button type="submit" class="btn-primary">
Speichern
</button>
{{ form_rest(form) }}
@@ -18,8 +18,8 @@
{{ form_row(form.dateTo) }}
</div>
<div class="flex gap-2">
{{ form_widget(form.apply, { attr: { class: 'btn btn--small' } }) }}
{{ form_widget(form.reset, { attr: { class: 'btn btn--small btn--secondary' } }) }}
{{ form_widget(form.apply, { attr: { class: 'btn-tool' } }) }}
{{ form_widget(form.reset, { attr: { class: 'btn-tool' } }) }}
</div>
{{ form_end(form) }}
</div>
@@ -18,8 +18,8 @@
{{ form_row(form.dateTo) }}
</div>
<div class="flex gap-2">
{{ form_widget(form.apply, { attr: { class: 'btn btn--small' } }) }}
{{ form_widget(form.reset, { attr: { class: 'btn btn--small btn--secondary' } }) }}
{{ form_widget(form.apply, { attr: { class: 'btn-tool' } }) }}
{{ form_widget(form.reset, { attr: { class: 'btn-tool' } }) }}
</div>
{{ form_end(form) }}
</div>
@@ -18,8 +18,8 @@
{{ form_row(form.dateTo) }}
</div>
<div class="flex gap-2">
{{ form_widget(form.apply, { attr: { class: 'btn btn--small' } }) }}
{{ form_widget(form.reset, { attr: { class: 'btn btn--small btn--secondary' } }) }}
{{ form_widget(form.apply, { attr: { class: 'btn-tool' } }) }}
{{ form_widget(form.reset, { attr: { class: 'btn-tool' } }) }}
</div>
{{ form_end(form) }}
</div>
@@ -18,8 +18,8 @@
{{ form_row(form.dateTo) }}
</div>
<div class="flex gap-2">
{{ form_widget(form.apply, { attr: { class: 'btn btn--small' } }) }}
{{ form_widget(form.reset, { attr: { class: 'btn btn--small btn--secondary' } }) }}
{{ form_widget(form.apply, { attr: { class: 'btn-tool' } }) }}
{{ form_widget(form.reset, { attr: { class: 'btn-tool' } }) }}
</div>
{{ form_end(form) }}
</div>
@@ -41,10 +41,10 @@
</div>
</div>
<div class="flex items-center space-x-2">
<button type="submit" class="btn">
<button type="submit" class="btn-primary">
Speichern
</button>
<a href="{{ path('app_administrative_system_destination_index') }}" class="btn btn--secondary">
<a href="{{ path('app_administrative_system_destination_index') }}" class="btn-secondary">
Abbrechen
</a>
</div>
@@ -9,7 +9,7 @@
</h1>
<div class="flex flex-col items-end space-y-2 md:flex-row md:items-center md:space-x-2 md:space-y-0">
<button type="button"
class="{{ html_classes('btn btn--small', { 'btn--secondary': filterDto.active }) }}"
class="{{ html_classes('btn-tool', { 'border-brand bg-brand-light text-brand': filterDto.active }) }}"
title="Filter"
hx-get="{{ path('app_common_destination_filter', { 'r': return_url() }) }}"
hx-target="body"
@@ -22,7 +22,7 @@
{% endif %}
</button>
{% if filterDto.active %}
<a href="{{ path('app_common_destination_filter_reset', { 'r': return_url() }) }}" class="btn btn--small btn--secondary">
<a href="{{ path('app_common_destination_filter_reset', { 'r': return_url() }) }}" class="btn-tool">
Reset
</a>
{% endif %}
@@ -67,7 +67,7 @@
<td>
<twig:DropDown>
<button type="button"
class="text-red-500 hover:text-primary block px-4 py-2 text-sm w-full text-left"
class="text-red-500 hover:text-brand block px-4 py-2 text-sm w-full text-left"
role="menuitem"
tabindex="-1"
hx-get="{{ path('app_administrative_system_destination_delete', { 'id': destination.id }) }}"
@@ -76,13 +76,13 @@
löschen
</button>
<a href="{{ path('app_administrative_system_destination_duplicate', { 'id': destination.id }) }}"
class="text-gray-700 hover:text-primary block px-4 py-2 text-sm"
class="text-gray-700 hover:text-brand block px-4 py-2 text-sm"
role="menuitem"
tabindex="-1">
duplizieren
</a>
<a href="{{ path('app_administrative_system_destination_edit', { 'id': destination.id }) }}"
class="text-gray-700 hover:text-primary block px-4 py-2 text-sm"
class="text-gray-700 hover:text-brand block px-4 py-2 text-sm"
role="menuitem"
tabindex="-1">
bearbeiten
@@ -103,7 +103,7 @@
</div>
</div>
<a href="{{ path('app_administrative_system_destination_create') }}" class="btn">
<a href="{{ path('app_administrative_system_destination_create') }}" class="btn-secondary">
Neu
</a>
{% endblock %}
@@ -102,7 +102,7 @@
</div>
</div>
<button type="button"
class="btn"
class="btn-secondary"
hx-get="{{ path('app_administrative_system_document_upload') }}"
hx-target="body"
hx-swap="beforeend">
@@ -8,7 +8,7 @@
{{ form_row(form.displayName) }}
{{ form_row(form.token) }}
</div>
<button type="submit" class="btn">
<button type="submit" class="btn-primary">
aktualisieren
</button>
{{ form_rest(form) }}
@@ -13,7 +13,7 @@
'accepted_files': 'application/pdf',
} %}
</div>
<button type="submit" class="btn" {{ stimulus_target('form-upload-guard', 'submit') }}>
<button type="submit" class="btn-primary" {{ stimulus_target('form-upload-guard', 'submit') }}>
ersetzen
</button>
{{ form_rest(form) }}
@@ -12,7 +12,7 @@
'accepted_files': 'application/pdf',
} %}
</div>
<button type="submit" class="btn" {{ stimulus_target('form-upload-guard', 'submit') }}>
<button type="submit" class="btn-primary" {{ stimulus_target('form-upload-guard', 'submit') }}>
Uploads speichern
</button>
{{ form_rest(form) }}
@@ -4,10 +4,10 @@
{{ form_row(form.answer) }}
</div>
<div class="flex items-center space-x-2">
<button type="submit" class="btn">
<button type="submit" class="btn-primary">
Speichern
</button>
<a href="{{ path('app_administrative_system_faq_index') }}" class="btn btn--secondary">
<a href="{{ path('app_administrative_system_faq_index') }}" class="btn-secondary">
Abbrechen
</a>
</div>
@@ -59,7 +59,7 @@
</table>
</div>
</div>
<a href="{{ path('app_administrative_system_faq_create') }}" class="btn">
<a href="{{ path('app_administrative_system_faq_create') }}" class="btn-secondary">
Neu
</a>
{% endblock %}
@@ -48,10 +48,10 @@
</div>
<div class="flex items-center space-x-2">
<button type="submit" class="btn" {{ stimulus_target('form-upload-guard', 'submit') }}>
<button type="submit" class="btn-primary" {{ stimulus_target('form-upload-guard', 'submit') }}>
Speichern
</button>
<a href="{{ path('app_administrative_system_mailing_template_index') }}" class="btn btn--secondary">
<a href="{{ path('app_administrative_system_mailing_template_index') }}" class="btn-secondary">
Abbrechen
</a>
</div>
Loaded 100 of 162 files, more files were not shown because too many files have changed in this diff. Show more