You are here

form--post-edit.html.twig in Open Social 8.9

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/post/form--post-edit.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/form-post-create') }}
  16. {{ attach_library('socialbase/comment')}}
  17. <div class="card">
  18. <div class="card__block">
  19. <div class="comment">
  20. <div class="comment__avatar">
  21. {{ author_picture }}
  22. </div>
  23. <div class="comment__content">
  24. <h5 class="media-heading">
  25. {{ author_name }}<br>
  26. <small>{{ date }}</small>
  27. </h5>
  28. </div>
  29. </div>
  30. <div class="margin-top-m">
  31. <form{{ attributes.addClass('form--post-create').removeClass('clearfix') }}>
  32. {{ children }}
  33. </form>
  34. </div>
  35. </div>
  36. </div>