updates for presentation + starting update for newbooking component
This commit is contained in:
@@ -12,7 +12,7 @@ templ PDFForm(teamMembers []models.User) {
|
||||
@headerComponent()
|
||||
<form class="grid-main divide-y-1" action="pdf/generate" method="get">
|
||||
<div class="grid-cell col-span-full bg-neutral-300">
|
||||
<h1 class="text-xl uppercase font-bold">PDF Abrechnung erstellen</h1>
|
||||
<h1 class="text-xl uppercase font-bold">Monatsabrechnung erstellen</h1>
|
||||
</div>
|
||||
<div class="grid-sub divide-x-1 responsive">
|
||||
<div class="grid-cell">Zeitraum wählen</div>
|
||||
@@ -46,9 +46,7 @@ templ PDFForm(teamMembers []models.User) {
|
||||
}
|
||||
|
||||
templ CheckboxComponent(pNr int, label string) {
|
||||
{{
|
||||
id := fmt.Sprintf("pdf-%d", pNr)
|
||||
}}
|
||||
{{ id := fmt.Sprintf("pdf-%d", pNr) }}
|
||||
<div class="inline-flex items-center">
|
||||
<label class="flex items-center cursor-pointer relative" for={ id }>
|
||||
<input type="checkbox" name="employe_list" value={ pNr } id={ id } class="peer h-5 w-5 cursor-pointer transition-all appearance-none rounded border border-slate-800 checked:bg-slate-800 checked:border-slate-800"/>
|
||||
@@ -127,10 +125,10 @@ templ CheckboxComponent(pNr int, label string) {
|
||||
// }
|
||||
templ ColorDuration(d time.Duration, classes string) {
|
||||
{{
|
||||
color := ""
|
||||
if d.Abs() < time.Minute {
|
||||
color = "text-neutral-300"
|
||||
}
|
||||
color := ""
|
||||
if d.Abs() < time.Minute {
|
||||
color = "text-neutral-300"
|
||||
}
|
||||
}}
|
||||
<p class={ color + " " + classes }>{ helper.FormatDurationFill(d, true) }</p>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user