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 | -
|---|---|---|---|---|---|
|
-
-
- <%= 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) { %>
+
+
+
+ <% } %>
+ <% if (hatNotizen) { %>
+
+
+ Status-Verlauf
+
+
+
+ <% } %>
+ <% if (hatInterne) { %>
+
+
+ Notizen
+
+ <%= app.notizen %> +
+
+ <% } %>
+
+
+ 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) { %>
-
-
- <% } %>
- <% if (hatNotizen) { %>
-
-
- Status-Verlauf
-
-
-
- <% } %>
- <% if (hatInterne) { %>
-
-
- Notizen
-
- <%= app.notizen %> -
-
- <% } %>
-
-
- Interne Notizen · nicht im PDF
-
- <%= app.interne_notizen %> - |
- |||||
|
- Keine Firma gefunden für „". - |
- |||||
|
- Keine Bewerbungen gefunden. -Klicken Sie auf "Bewerbung hinzufügen", um Ihre erste Bewerbung einzutragen. - |
- |||||