templates/util/help.html.twig line 1

Open in your IDE?
  1. {% if help is defined %}
  2. {% if help.common|default([])|length or help.messages|default([])|length or help.includes|default([])|length %}
  3.         <div id="help" class="container mb-2">
  4.             <button class="btn material-icons{{ app.user.showHelp ? " collapsed" : "" }}" type="button" data-bs-toggle="collapse" data-bs-target="#help-text" aria-expanded="false" aria-controls="help-text">
  5.                 help
  6.             </button>
  7.             <div class="collapse{{ app.user.showHelp ? " show" : "" }}" id="help-text">
  8.                 <div class="card card-body text-justify">
  9. {% for message in help.common|default([]) %}
  10.                     <p><strong>{{ ("label." ~ message)|trans|raw }}:</strong> {{ ("common." ~ message)|trans|raw }}</p>
  11. {% endfor %}
  12. {% for message in help.messages|default([]) %}
  13. {% if help.translate %}
  14.                     <p><strong>{{ (help.prefix ~ ".label." ~ message)|trans|raw }}:</strong> {{ (help.prefix ~ "." ~ message)|trans|raw }}</p>
  15. {% else %}
  16.                     <p>{{ message }}</p>
  17. {% endif %}
  18. {% endfor %}
  19. {% for inc in help.includes|default([]) %}
  20. {% include inc %}
  21. {% endfor %}
  22.                 </div>
  23.             </div>
  24.         </div>
  25. {% endif %}
  26. {% endif %}