git-svn-id: http://78.47.251.156/svn/dev/sterntours-3@3414 f459cee4-fb09-11de-96c3-f9c5f16c3c76
This commit is contained in:
adametz 2018-06-20 15:19:38 +00:00
parent 2c23df18c4
commit 5d0f4e5cc9
3 changed files with 45 additions and 14 deletions

View file

@ -235,12 +235,23 @@
<li>{{ travel_program_service|raw }}</li> <li>{{ travel_program_service|raw }}</li>
{% endfor %} {% endfor %}
</ul> </ul>
<h3>Hinweise</h3> {% if (travel_program.advices is not empty) or (travel_program.generalnote is not empty) %}
<ul class="c1"> <h3>Hinweise</h3>
{% for travel_program_service in travel_program.advices|split('\n') %} <ul>
<li>{{ travel_program_service|raw }}</li> {% if travel_program.generalnote is not empty %}
{% endfor %} {% for notes in travel_program.generalnote.text|trim|split('\n') %}
</ul> {% if notes is not empty %}
<li>{{ notes|raw }}</li>
{% endif %}
{% endfor %}
{% endif %}
{% for travel_program_advice in travel_program.advices|trim|split('\n') %}
{% if travel_program_advice is not empty %}
<li>{{ travel_program_advice|raw }}</li>
{% endif %}
{% endfor %}
</ul>
{% endif %}
</div> </div>
</div> </div>
</div> </div>

View file

@ -97,12 +97,23 @@
<li>{{ travel_program_service|raw }}</li> <li>{{ travel_program_service|raw }}</li>
{% endfor %} {% endfor %}
</ul> </ul>
<h3>Hinweise</h3> {% if (travel_program.advices is not empty) or (travel_program.generalnote is not empty) %}
<ul class="c1"> <h3>Hinweise</h3>
{% for travel_program_service in travel_program.advices|split('\n') %} <ul>
<li>{{ travel_program_service|raw }}</li> {% if travel_program.generalnote is not empty %}
{% endfor %} {% for notes in travel_program.generalnote.text|trim|split('\n') %}
</ul> {% if notes is not empty %}
<li>{{ notes|raw }}</li>
{% endif %}
{% endfor %}
{% endif %}
{% for travel_program_advice in travel_program.advices|trim|split('\n') %}
{% if travel_program_advice is not empty %}
<li>{{ travel_program_advice|raw }}</li>
{% endif %}
{% endfor %}
</ul>
{% endif %}
</div> </div>
</div> </div>
</div> </div>

View file

@ -23,11 +23,20 @@
</ul> </ul>
{% endif %} {% endif %}
{% if travel_program.advices is not empty %} {% if (travel_program.advices is not empty) or (travel_program.generalnote is not empty) %}
<h3>Hinweise</h3> <h3>Hinweise</h3>
<ul> <ul>
{% if travel_program.generalnote is not empty %}
{% for notes in travel_program.generalnote.text|trim|split('\n') %}
{% if notes is not empty %}
<li>{{ notes|raw }}</li>
{% endif %}
{% endfor %}
{% endif %}
{% for travel_program_advice in travel_program.advices|trim|split('\n') %} {% for travel_program_advice in travel_program.advices|trim|split('\n') %}
{% if travel_program_advice is not empty %}
<li>{{ travel_program_advice|raw }}</li> <li>{{ travel_program_advice|raw }}</li>
{% endif %}
{% endfor %} {% endfor %}
</ul> </ul>
{% endif %} {% endif %}