You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617181920212223242526272829
  1. {% extends "admin/layout.html" %} {% block content %}
  2. <h1 class="heading">Admin</h1>
  3. <form class="form" method="POST" action="/admin/posts">
  4. <input type="hidden" name="id" />
  5. <input type="hidden" name="date" />
  6. <div class="form__field">
  7. <label for="title" class="form__label">Title</label>
  8. <input class="form__text-field" type="text" name="title" />
  9. </div>
  10. <div class="form__field">
  11. <label for="body" class="form__label">Body</label>
  12. <textarea class="form__textarea" name="body"></textarea>
  13. </div>
  14. <div class="form__field">
  15. <input class="form__button" type="submit" value="Post" />
  16. </div>
  17. </form>
  18. <div class="posts">
  19. {% for post in posts %}
  20. <div class="posts__post post">
  21. <h3 class="post__heading">{{ post.title }} // {{ post.date }}</h3>
  22. <div class="post__body">
  23. {{ post.body }}
  24. </div>
  25. </div>
  26. {% endfor %}
  27. </div>
  28. {% endblock %}