You are here

form--comment.html.twig in Open Social 8.7

Default theme implementation for a 'form' element.

Available variables

  • attributes: A list of HTML attributes for the wrapper element.
  • children: The child elements of the form.

File

themes/socialbase/templates/comment/form--comment.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for a 'form' element.
  5. *
  6. * Available variables
  7. * - attributes: A list of HTML attributes for the wrapper element.
  8. * - children: The child elements of the form.
  9. *
  10. * @see template_preprocess_form()
  11. *
  12. * @ingroup themeable
  13. */
  14. #}
  15. {{ attach_library('socialbase/comment')}}
  16. <div class="comment comment-form__wrapper">
  17. <div class="comment__avatar">{{ current_user_picture }}</div>
  18. <div class="comment__content">
  19. <form{{ attributes }}>
  20. <div class="form-group-inline">
  21. {{ children }}
  22. </div>
  23. </form>
  24. </div>
  25. </div>