index.html.twig 662 B

123456789101112131415161718192021222324252627282930
  1. {% extends 'base.html.twig' %}
  2. {% block title %}Profil de {{username}}{% endblock %}
  3. {% block body %}
  4. <h1>{{ username }}</h1>
  5. <dl>
  6. <dt>Description :</dt>
  7. <dd>{{ description }}</dd>
  8. <dt>Ce profil est :</dt>
  9. {% if isPrivate %}
  10. <dd>Privé</dd>
  11. {% else %}
  12. <dd>Public</dd>
  13. {% endif %}
  14. <dd>{{ isPrivate }}</dd>
  15. </dl>
  16. <h2>Messages :</h2>
  17. {# <ul>
  18. {% for message in messages %}
  19. <li>{{ message.text }}</li>
  20. {% endfor %}
  21. </ul> #}
  22. <h2>Ajouter un message :</h2>
  23. {# {{ form_start(form) }}
  24. {{ form_errors(form) }}
  25. {{ form_widget(form) }}
  26. <input type="submit">
  27. {{ form_end(form) }} #}
  28. {% endblock %}