diff --git a/views/index.ejs b/views/index.ejs index ce9b113..cbf74a9 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -177,27 +177,47 @@ - + +
- - - - - - - - - - - - - - - - - - - +
+ +
+ + Datum + Firma + Stelle + Art + Status + Aktionen +
<% if (applications.length > 0) { %> <% // Status-Reihenfolge synchron zu public/js/main.js halten @@ -223,172 +243,205 @@ ...Object.keys(groups).filter(k => !statusOrder.includes(k)) ]; %> +
<% orderedKeys.forEach(statusKey => { %> -
- - - - - <% groups[statusKey].forEach(app => { %> - <% - const hatNotizen = app.notizen && app.notizen.trim().length > 0; - const hatInterne = app.interne_notizen && app.interne_notizen.trim().length > 0; - const hatVerlauf = app.verlauf && app.verlauf.length > 0; - const hatDetails = hatNotizen || hatInterne || hatVerlauf; - const padB = hatDetails ? 'pb-2' : 'pb-4'; - %> - "> - - - - - - - - - <% if (hatDetails) { %> - - - - <% } %> - - <% }); %> + <% }); %> + + + <% }); %> - - - - - + + <% } else { %> - - - - - +
+

Keine Bewerbungen gefunden.

+

Klicken Sie auf "Bewerbung hinzufügen", um Ihre erste Bewerbung einzutragen.

+
<% } %> -
DatumFirmaStelleArtStatusAktionen
-
- - <%= statusKey %> - <%= groups[statusKey].length %> +
+ + +
+
+ <% groups[statusKey].forEach(app => { %> + <% + const hatNotizen = app.notizen && app.notizen.trim().length > 0; + const hatInterne = app.interne_notizen && app.interne_notizen.trim().length > 0; + const hatVerlauf = app.verlauf && app.verlauf.length > 0; + const hatDetails = hatNotizen || hatInterne || hatVerlauf; + %> +
"> + +
+ + <% if (hatDetails) { %> + + + + <% } %> + + <%= new Date(app.datum).toLocaleDateString('de-DE') %> + <%= app.firma %> + <%= app.stelle %> + <%= app.art || '-' %> + + + <%= app.status || '-' %> + + + + + + + + + + +
+ <% if (hatDetails) { %> + +
+
+
+ <% if (hatVerlauf) { %> +
+
+ + + + Status-Verlauf +
+
    + <% app.verlauf.forEach(v => { %> +
  1. + <%= new Date(v.datum).toLocaleDateString('de-DE') %> + <%= v.status %> + <% if (v.kommentar && v.kommentar.trim()) { %> + – <%= v.kommentar %> + <% } %> +
  2. + <% }); %> +
+
+ <% } %> + <% if (hatNotizen) { %> +
+
+ + + + Notizen +
+

<%= app.notizen %>

+
+ <% } %> + <% if (hatInterne) { %> +
+
+ + + + Interne Notizen · nicht im PDF +
+

<%= app.interne_notizen %>

+
+ <% } %> +
+
+
+ <% } %>
-
- <%= new Date(app.datum).toLocaleDateString('de-DE') %> - - <%= app.firma %> - - <%= app.stelle %> - - <%= app.art || '-' %> - - - <%= app.status || '-' %> - - - - - - - - -
- <% if (hatVerlauf) { %> -
-
- - - - Status-Verlauf -
-
    - <% app.verlauf.forEach(v => { %> -
  1. - <%= new Date(v.datum).toLocaleDateString('de-DE') %> - <%= v.status %> - <% if (v.kommentar && v.kommentar.trim()) { %> - – <%= v.kommentar %> - <% } %> -
  2. - <% }); %> -
-
- <% } %> - <% if (hatNotizen) { %> -
-
- - - - Notizen -
-

<%= app.notizen %>

-
- <% } %> - <% if (hatInterne) { %> -
-
- - - - Interne Notizen · nicht im PDF -
-

<%= app.interne_notizen %>

-
- <% } %> -
-

Keine Bewerbungen gefunden.

-

Klicken Sie auf "Bewerbung hinzufügen", um Ihre erste Bewerbung einzutragen.

-
+