Skip to content

Commit

Permalink
Merge pull request #168 from H2-invent/feature/selfSubsriptionNoSpace
Browse files Browse the repository at this point in the history
Self Subsription shows no form when no space
  • Loading branch information
holema authored Apr 29, 2021
2 parents fe75a2d + 5e7bce7 commit f9d993f
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 19 deletions.
50 changes: 32 additions & 18 deletions templates/share_link/subscribe.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -5,38 +5,52 @@
{{ room.start|format_date(pattern="EEEE",locale=locale) }}
| {{ room.start|format_datetime('long', 'none', locale=locale) }}
| {{ room.start|date('H:i') }}-{{ room.endDate|date('H:i') }}</p>
{% if room.maxParticipants - room.user|length >1 %}
<h4 class="text-center">{% trans with {'{spaces}':room.maxParticipants - room.user|length} %}Noch {spaces} Plätze frei{% endtrans %}</h4>
{% elseif room.maxParticipants - room.user|length == 1 %}
<h4 class="text-center">{% trans with {'{spaces}':room.maxParticipants - room.user|length} %}Noch ein Platz frei{% endtrans %}</h4>

{% endif %}
{% endblock %}


{% block content %}


{% if room.maxParticipants - room.user|length >0 %}
<div class="offset-sm-1 col-sm-10 offset-lg-2 col-lg-8">
<p class="text-center text-md-left">
{{ 'Melden Sie sich an und schreiben Sie sich auf der Teilnehmerliste ein'|trans }}
</p>
{{ form_start(form) }}
{{ form_row(form.firstName) }}
{{ form_row(form.lastName) }}
{{ form_row(form.email) }}

<div class="offset-sm-1 col-sm-10 offset-lg-2 col-lg-8">
<p class="text-center text-md-left">
{{ 'Melden Sie sich an und schreiben Sie sich auf der Teilnehmerliste ein'|trans }}
</p>
{{ form_start(form) }}
{{ form_row(form.firstName) }}
{{ form_row(form.lastName) }}
{{ form_row(form.email) }}

<div class="row form-group">
<div class="row form-group">

<div class="col-12">
{{ include('join/__datenschutz.html.twig',{'server':server,'dataPrivacy':dataPrivacy}) }}
<div class="col-12">
{{ include('join/__datenschutz.html.twig',{'server':server,'dataPrivacy':dataPrivacy}) }}

</div>
</div>
</div>

<div class="row">
<div class="col-md-12">
{{ form_row(form.subscribe) }}
<div class="row">
<div class="col-md-12">
{{ form_row(form.subscribe) }}
</div>
</div>
</div>
</div>
{{ form_end(form) }}
{{ form_end(form) }}
{% else %}
<div class="col-lg-12">
<h3 class="text-center ">{% trans with {'{spaces}':room.maxParticipants - room.user|length} %}Keine Plätze mehr frei{% endtrans %}</h3>

</div>



{% endif %}


{% endblock %}
2 changes: 1 addition & 1 deletion translations/messages+intl-icu.de.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@
<source>Aktuell sind keine Konferenzen vorhanden. Erstellen Sie
&lt;u&gt;&lt;a href="{url}" class="loadContent"&gt;hier&lt;/a&gt;&lt;/u&gt;
eine neue Konferenz.</source>
<target><![CDATA[__Aktuell sind keine Konferenzen vorhanden. Erstellen Sie
<target><![CDATA[Aktuell sind keine Konferenzen vorhanden. Erstellen Sie
<u><a href="{url}" class="loadContent">hier</a></u>
eine neue Konferenz.]]></target>
</trans-unit>
Expand Down

0 comments on commit f9d993f

Please sign in to comment.