diff --git a/src/Menu/TeamerMenuBuilder.php b/src/Menu/TeamerMenuBuilder.php index 85ff5ed..f472cd1 100644 --- a/src/Menu/TeamerMenuBuilder.php +++ b/src/Menu/TeamerMenuBuilder.php @@ -50,7 +50,7 @@ class TeamerMenuBuilder extends AbstractMenuBuilder ]); $profileMenu = $menu->addChild('Mein Profil', [ 'extras' => [ - 'icon' => 'profile', + 'icon' => 'user', ], ]); diff --git a/templates/teamer/profile/availability/index.html.twig b/templates/teamer/profile/availability/index.html.twig index 2c0c931..ccafb81 100644 --- a/templates/teamer/profile/availability/index.html.twig +++ b/templates/teamer/profile/availability/index.html.twig @@ -2,94 +2,89 @@ {% block title %}Meine Verfügbarkeit{% endblock %} +{# + The periods grouped by year and month; `selected` decides whether a row offers removing the + period or adding it. +#} +{% macro periods(years, selected) %} + {% for year, months in years %} +

+ {{ year }} +

+ {% for month, availabilities in months %} +

+ {{ month }} +

+ + {% endfor %} + {% endfor %} +{% endmacro %} + {% block content %}

Meine Verfügbarkeit

-

+

Hier kannst du angeben, wann du allgemein Zeit und Lust hättest, Einsätze zu absolvieren. Wenn wir in diesem Zeitraum einen Einsatz zu vergeben haben, dann nehmen wir telefonisch oder per E-Mail Kontakt zu dir auf.

-

- Ich bin verfügbar -

-
- {% for year, months in selectedAvailabilities %} -
-

- {{ year }} -

-
- {% for month, availabilities in months %} -
-

- {{ month }} -

- {% for availability in availabilities %} -
- {{ availability }}{% if availability.description %} ({{ availability.description }}){% endif %} - {% if is_granted('DELETE', availability) %} - - {% endif %} -
- {% endfor %} -
- {% endfor %} +
+
+

+ Ich bin verfügbar +

+ {% if selectedAvailabilities is empty %} +

Du hast bisher keine Verfügbarkeiten hinterlegt.

+ {% else %} + {{ _self.periods(selectedAvailabilities, true) }} + {% endif %} +
+ +
+

+ Weitere Verfügbarkeiten +

+ {% if selectableAvailabilities is empty %} +

Es sind keine weiteren Zeiträume verfügbar.

+ {% else %} +
+ {{ _self.periods(selectableAvailabilities, false) }}
-
- {% else %} -
- Du hast bisher keine Verfügbarkeiten hinterlegt. -
- {% endfor %} + {% endif %} + +
-

- Weitere Verfügbarkeiten -

-
- {% for year, months in selectableAvailabilities %} -
-

- {{ year }} -

-
- {% for month, availabilities in months %} -
-

- {{ month }} -

- {% for availability in availabilities %} -
- {{ availability }}{% if availability.description %} ({{ availability.description }}){% endif %} - - {{ icon('plus', 'w-5 h-5') }} - -
- {% endfor %} -
- {% endfor %} -
-
- {% else %} -
- Es sind keine weiteren Zeiträume verfügbar. -
- {% endfor %} -
- -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/templates/teamer/profile/skills.html.twig b/templates/teamer/profile/skills.html.twig index 7e36c83..3271feb 100644 --- a/templates/teamer/profile/skills.html.twig +++ b/templates/teamer/profile/skills.html.twig @@ -3,36 +3,40 @@ {% block title %}Meine Jobprofile & Skills{% endblock %} {% block content %} -

+

Meine Jobprofile & Skills

-

- Ausbildung -

- +
+
+

+ Ausbildung +

+
    + {% for attendance in teamer.trainingAttendances %} +
  • + {{ attendance.training.name }} + {{ attendance.date|date('m/Y') }} +
  • + {% else %} +
  • + Du hast bisher an keinen Fortbildungen teilgenommen. +
  • + {% endfor %} +
+
-
-

- Lizenzen -

- - + + {% else %} +
  • + Du hast bisher keine Lizenzen hinterlegt. +
  • + {% endfor %} + + +
    {{ form_start(form) }} +
    +
    +

    + Mögliche Jobprofile +

    + {{ form_row(form.jobProfiles) }} +
    -

    - Mögliche Jobprofile -

    -
    - {{ form_row(form.jobProfiles) }} -
    - -

    - Sonstiges -

    -
    -
    +
    +

    + Sonstiges +

    {{ form_row(form.remarks) }} -
    +