X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/airbundle/blobdiff_plain/0f928f45c1d8cd1e9c012a33aaa1f8a113e217b3..c1b4f0a7f8d6bbbc69fd3f7e1587638d5ea45ad2:/Resources/views/session/view.html.twig diff --git a/Resources/views/session/view.html.twig b/Resources/views/session/view.html.twig index c3367b4..02df6db 100644 --- a/Resources/views/session/view.html.twig +++ b/Resources/views/session/view.html.twig @@ -1,148 +1,210 @@ {% extends '@RapsysAir/body.html.twig' %} {% block content %} -
-

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

-
-
-
-

{% trans %}Organizer{% endtrans %}

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

{% trans %}Schedule{% endtrans %}

-
-
{% trans %}Slot{% endtrans %}
-
{{ session.slot.title }}
-
-
-
{% trans %}Start{% endtrans %}
-
{{ session.start.format('Y-m-d H:i:s') }}
-
-
-
{% trans %}Stop{% endtrans %}
-
- {% if session.start.format('Y-m-d') != session.stop.format('Y-m-d') %} - {{ session.stop.format('Y-m-d H:i:s') }} +
+
+

+ {{ session.title }} + {% if session.application.id is defined and session.application.id %} + {{ session.application.user.by }} + {% endif %} + {{ session.location.at }} +

+

{{ description }}

+
+
+
+
+

{% trans %}Organizer{% endtrans %}

+
+
{% trans %}Attributed to{% endtrans %}
+
+ {% if session.application is null %} + {% trans %}None{% endtrans %} + {% else %} + {{ session.application.user.title }} + {% endif %} +
+
+ {% 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 %}Contribution{% endtrans %}
+
{% if session.snippet.rate == 0 %}{% trans %}To the hat, to cover the costs: talc, electricity, bicycle, server{% endtrans %}{% else %}{{ 'To the hat, ideally %rate% €, to cover the costs: talc, electricity, bicycle, server'|trans({'%rate%': session.snippet.rate}) }}{% endif %}
+
{% else %} - {{ session.stop.format('H:i:s') }} +
+
{% trans %}Rate{% endtrans %}
+
{% if session.snippet.rate == 0 %}{% trans %}Free{% endtrans %}{% else %}{{ session.snippet.rate }} €{% endif %}
+
{% endif %} -
-
-
-
{% trans %}Length{% endtrans %}
-
{{ session.length.format('H:i:s') }}
-
-
-
{% 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 %}Weather{% endtrans %}

- {% if session.rainrisk is not null %} + {% endif %} +
+
+

{% trans %}Schedule{% endtrans %}

-
{% trans %}Rainrisk{% endtrans %}
-
{{ session.rainrisk }}
+
{% trans %}Date{% endtrans %}
+
{{ session.start|localizeddate('long', 'none') }}
- {% endif %} - {% if session.rainfall is not null %}
-
{% trans %}Rainfall{% endtrans %}
-
{{ session.rainfall }}
+
{% trans %}Start{% endtrans %}
+
{{ session.start|localizeddate('none', 'medium') }}
- {% endif %} - {% if session.realfeel is not null %}
-
{% trans %}Realfeel{% endtrans %}
-
{{ session.realfeel }}
+
{% trans %}Stop{% endtrans %}
+
{{ session.stop|localizeddate('none', 'medium') }}
- {% endif %} - {% if session.realfeelmin is not null %}
-
{% trans %}Realfeel min{% endtrans %}
-
{{ session.realfeelmin }}
+
{% trans %}Length{% endtrans %}
+
{{ session.length|localizeddate('none', 'short', null, null, 'HH:mm') }}
- {% endif %} - {% if session.realfeelmax is not null %}
-
{% trans %}Realfeel max{% endtrans %}
-
{{ session.realfeelmax }}
+
{% trans %}Slot{% endtrans %}
+
{{ session.slot.title }}
- {% endif %} - {% if session.temperature is not null %}
-
{% trans %}Temperature{% endtrans %}
-
{{ session.temperature }}
+
{% trans %}Locked{% endtrans %}
+
+ {% if session.locked is null %} + {% trans %}None{% endtrans %} + {% else %} + {{ session.locked|localizeddate('long', 'medium') }} + {% endif %} +
- {% endif %} - {% if session.temperaturemin is not null %}
-
{% trans %}Temperature min{% endtrans %}
-
{{ session.temperaturemin }}
+
{% trans %}Created{% endtrans %}
+
{{ session.created|localizeddate('long', 'medium') }}
- {% endif %} - {% if session.temperaturemax is not null %}
-
{% trans %}Temperature max{% endtrans %}
-
{{ session.temperaturemax }}
+
{% trans %}Updated{% endtrans %}
+
{{ session.updated|localizeddate('long', 'medium') }}
- {% endif %} -
-
-

{% trans %}Location{% endtrans %}

-
- {# infos #} -
{% trans %}Location{% endtrans %}
-
{{ session.location.title }}
-
-
- {# location #} -
{% trans %}Address{% endtrans %}
-
- {{ session.location.address }} - {{ session.location.zipcode }} {{ session.location.city }} -
-
-
-
{% trans %}Maps{% endtrans %}
-
Google Maps
-
OpenStreetMap
-
-
-
{% trans %}Minimap{% endtrans %}
-
TODO: minimap
-
-
+
+
+

{% 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 %} +
+
+

{% trans %}Location{% endtrans %}

+
+ {# infos #} +
{% trans %}Location{% endtrans %}
+
{{ session.location.title }}
+
+
+ {# location #} +
{% trans %}Address{% endtrans %}
+
+ {{ session.location.address }} + {{ session.location.zipcode }} {{ session.location.city }} +
+
+
+
{% trans %}Maps{% endtrans %}
+
Google Maps
+
OpenStreetMap
+
+
+
{% trans %}Minimap{% endtrans %}
+
TODO: minimap
+
+
+ + {{ include('@RapsysAir/form/_toolbox.html.twig') }} - {{ include('@RapsysAir/form/_toolbox.html.twig') }} - -
-
+

{% trans %}Candidates{% endtrans %}

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

{{ application.user.title }}

{% trans %}Score{% endtrans %}
@@ -155,11 +217,11 @@
{% trans %}Created{% endtrans %}
-
{{ application.created.format('Y-m-d H:i:s') }}
+
{{ application.created|localizeddate('long', 'medium') }}
{% trans %}Updated{% endtrans %}
-
{{ application.updated.format('Y-m-d H:i:s') }}
+
{{ application.updated|localizeddate('long', 'medium') }}
{% trans %}Canceled{% endtrans %}
@@ -167,15 +229,15 @@ {% if application.canceled is null %} {% trans %}None{% endtrans %} {% else %} - {{ application.canceled.format('Y-m-d H:i:s') }} + {{ application.canceled|localizeddate('long', 'medium') }} {% endif %}
-
+
{% endfor %} {% endif %}
- - - + + + {{ include('@RapsysAir/default/_location.html.twig') }} {% endblock %}