X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/128849d5fc3fcd51e68892c591a4ba1ac920c118..b22cd3b27e98582db6c04c5bfe8b5e3272fdf717:/Resources/views/session/view.html.twig?ds=inline diff --git a/Resources/views/session/view.html.twig b/Resources/views/session/view.html.twig index fe341d5..3c345f9 100644 --- a/Resources/views/session/view.html.twig +++ b/Resources/views/session/view.html.twig @@ -1,81 +1,264 @@ -{% extends '@RapsysAir/body.html.twig' %} +{% extends '@RapsysAir/base.html.twig' %} {% block content %} -
-

- {{ session.title }} -

-
-
-
-
-

{% trans %}Location{% endtrans %}

-
{{ session.location.title }}
-
-
-

{% trans %}Slot{% endtrans %}

-
{{ session.slot.title }}
-
-
-

{% trans %}Created{% endtrans %}

-
{{ session.created.format('Y-m-d H:i:s') }}
-
-
-

{% trans %}Updated{% endtrans %}

-
{{ session.updated.format('Y-m-d H:i:s') }}
-
-
-
-
-

{% trans %}Attributed to{% endtrans %}

- {% if session.application is null %} -
{% trans %}None{% endtrans %}
- {% else %} -
{{ session.application.user.title }}
- {% endif %} -
-
-

{% trans %}Begin{% endtrans %}

- {% if session.begin is null %} -
{% trans %}None{% endtrans %}
- {% else %} -
{{ session.begin.format('Y-m-d H:i:s') }}
- {% endif %} -
-
-

{% trans %}End{% endtrans %}

- {% if session.end is null %} -
{% trans %}None{% endtrans %}
- {% else %} -
{{ session.end.format('Y-m-d H:i:s') }}
- {% endif %} -
-
-
-

{% trans %}Candidates{% endtrans %}

-
- {% if session.applications is null %} - {% trans %}None{% endtrans %} - {% else %} - {% for application in session.applications %} -
-

{{ application.user.title }}

-
+
+
+

{{ title.page }}

+

{{ description }}

+
+
+
+
+
+

{% trans %}Program{% endtrans %}

+
+
+
{% trans %}Date and schedule{% endtrans %}
+
{{ 'The %date% around %start% until %stop%'|trans({'%date%': session.start|intldate('long', 'none'), '%start%': session.start|intldate('none', 'medium'), '%stop%': session.stop|intldate('none', 'medium')}) }}
+
+ {% if session.application is defined and session.application %} + {% if session.application.dance is defined and session.application.dance %} +
+
{% trans %}Activity{% endtrans %}
+ {#
{{ session.application.dance.title }}
#} +
{{ session.application.dance.title }}
+
+ {% endif %} + {% if session.application.user is defined and session.application.user %} +
+
{% trans %}Organizer{% endtrans %}
+
{{ session.application.user.title }}
+
+ {% endif %} + {% if session.snippet is defined and session.snippet %} + {% if session.snippet.description is defined and session.snippet.description %} +
+
{% trans %}Description{% endtrans %}
+
{{ session.snippet.description|striptags|markdown_to_html }}
+
+ {% endif %} + {% if session.snippet.class is defined and session.snippet.class %} +
+
{% trans %}Class{% endtrans %}
+
{{ session.snippet.class|striptags|markdown_to_html }}
+
+ {% endif %} + {% if session.snippet.contact is defined and session.snippet.contact %} +
+
{% trans %}Contact{% endtrans %}
+
{{ 'Send a message to %pseudonym%'|trans({'%pseudonym%': session.application.user.title}) }}
+
+ {% endif %} + {% if session.snippet.donate is defined and session.snippet.donate %} +
+
{% trans %}Donate{% endtrans %}
+
{{ 'Donate to %pseudonym%'|trans({'%pseudonym%': session.application.user.title}) }}
+
+ {% endif %} + {% if session.snippet.link is defined and session.snippet.link %} +
+
{% trans %}Link{% endtrans %}
+
{{ 'Link to %pseudonym%'|trans({'%pseudonym%': session.application.user.title}) }}
+
+ {% endif %} + {% if session.snippet.profile is defined and session.snippet.profile %} +
+
{% trans %}Social network{% endtrans %}
+
{{ 'Consult %pseudonym% profile'|trans({'%pseudonym%': session.application.user.title}) }}
+
+ {% endif %} + {% if session.snippet.rate is defined and session.snippet.rate %} + {% if session.snippet.hat is defined and session.snippet.hat %}
-
{% trans %}Created{% endtrans %}
-
{{ application.created.format('Y-m-d H:i:s') }}
+
{% trans %}Contribution to costs{% endtrans %}
+
{% if session.snippet.rate == 0 %}{% trans %}To the hat, to cover: talc, electricity, bicycle, website, ...{% endtrans %}{% else %}{{ 'To the hat, ideally %rate% €, to cover: talc, electricity, bicycle, website, ...'|trans({'%rate%': session.snippet.rate}) }}{% endif %}
+ {% else %}
-
{% trans %}Updated{% endtrans %}
-
{{ application.updated.format('Y-m-d H:i:s') }}
+
{% trans %}Contribution{% endtrans %}
+
{% if session.snippet.rate == 0 %}{% trans %}Free{% endtrans %}{% else %}{{ session.snippet.rate }} €{% endif %}
-
-
- {% endfor %} + {% endif %} + {% endif %} + {% endif %} + {% endif %} + {% if session.locked is defined and session.locked %} +
+
{% trans %}Locked{% endtrans %}
+
{{ session.locked|intldate('long', 'medium') }}
+
+ {% endif %} +
+
{% trans %}Created{% endtrans %}
+
{{ session.created|intldate('long', 'medium') }}
+
+
+
{% trans %}Updated{% endtrans %}
+
{{ session.updated|intldate('long', 'medium') }}
+
+
+
+
+

{% trans %}Location{% endtrans %}

+
+
+
{% trans %}Place{% endtrans %}
+
{{ session.location.title }}
+
+
+
{% trans %}Description{% endtrans %}
+
{{ session.location.description }}
+
+
+
{% trans %}Interiority{% endtrans %}
+
{% if session.location.indoor is defined and session.location.indoor%}{% trans %}Indoor{% endtrans %}{% else %}{% trans %}Outdoor{% endtrans %}{% endif %}
+
+
+
{% trans %}Address{% endtrans %}
+
+ {{ session.location.address }} + {{ session.location.zipcode }} {{ session.location.city }} +
+
+
+
{% trans %}GPS coordinates{% endtrans %}
+
+ {{ session.location.latitude }},{{ session.location.longitude }} +
+
+
+
{% trans %}Maps{% endtrans %}
+
+ Google Maps +
+
+ OpenStreetMap +
+
+ {% if map is defined and map %} +
+
{% trans %}Access map{% endtrans %}
+
+ +
+ {{ map.caption }} +
{{ map.caption }}
+
+
+
+
+ {% endif %} +
+
+
+

{% trans %}Weather{% endtrans %}

+
+ {% if session.rainrisk is not null %} +
+
{% trans %}Rainrisk{% endtrans %}
+
{{ session.rainrisk }}
+
+ {% endif %} + {% if session.rainfall is not null %} +
+
{% trans %}Rainfall{% endtrans %}
+
{{ session.rainfall }}
+
+ {% endif %} + {% if session.realfeel is not null %} +
+
{% trans %}Realfeel{% endtrans %}
+
{{ session.realfeel }}
+
+ {% endif %} + {% if session.realfeelmin is not null %} +
+
{% trans %}Realfeel min{% endtrans %}
+
{{ session.realfeelmin }}
+
+ {% endif %} + {% if session.realfeelmax is not null %} +
+
{% trans %}Realfeel max{% endtrans %}
+
{{ session.realfeelmax }}
+
+ {% endif %} + {% if session.temperature is not null %} +
+
{% trans %}Temperature{% endtrans %}
+
{{ session.temperature }}
+
+ {% endif %} + {% if session.temperaturemin is not null %} +
+
{% trans %}Temperature min{% endtrans %}
+
{{ session.temperaturemin }}
+
+ {% endif %} + {% if session.temperaturemax is not null %} +
+
{% trans %}Temperature max{% endtrans %}
+
{{ session.temperaturemax }}
+
{% endif %} - +
+ {% if is_granted('ROLE_GUEST') %} +
+
+

{% trans %}Candidates{% endtrans %}

+
+
+
+ {% if session.applications is defined and session.applications %} + {% for application in session.applications %} +
+
+ {% if application.user.id == 1 and application.user.title|slug == 'milonga-raphael' %} +

{{ application.user.title }}

+ {% else %} +

{{ application.user.title }}

+ {% endif %} +
+
+
{% trans %}Score{% endtrans %}
+
+ {% if application.score is null %} + {% trans %}None{% endtrans %} + {% else %} + {{ application.score }}
+ {% endif %} +
+
+
{% trans %}Created{% endtrans %}
+
{{ application.created|intldate('long', 'medium') }}
+
+
+
{% trans %}Updated{% endtrans %}
+
{{ application.updated|intldate('long', 'medium') }}
+
+
+
{% trans %}Canceled{% endtrans %}
+
+ {% if application.canceled is null %} + {% trans %}None{% endtrans %} + {% else %} + {{ application.canceled|intldate('long', 'medium') }} + {% endif %} +
+
+
+ {% endfor %} + {% else %} +
+ {% trans %}None{% endtrans %} +
+ {% endif %} +
+
+
+ {% endif %} -
- {{ include('@RapsysAir/form/_toolbox.html.twig') }} -
- + {{ include('@RapsysAir/form/_toolbox.html.twig') }} + + + {{ include('@RapsysAir/default/_location.html.twig') }} {% endblock %}