Lösungen der Aufgaben vom Kurs MEIM1 - Web Engineering von Prof. Hofmann
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.

index.html 854B

1234567891011121314151617181920212223242526272829303132
  1. {% extends 'base.html' %}
  2. {% block title %}
  3. Index
  4. {% endblock %}
  5. {% block content %}
  6. <div class=container>
  7. <h1 class="display-4">Your Posts</h1>
  8. <div class=container>
  9. {% for notice in notices %}
  10. <div class="jumbotron">
  11. <h3>{{ notice.notice_title }}</h3>
  12. <p>{{ notice.notice_text }}</p>
  13. <p><a href="{% url 'delete' deleteId=notice.id %}" class="btn btn-danger" role="button">Delete</a></p>
  14. {% if message %}
  15. <script>
  16. alert('{{ message }}');
  17. </script>
  18. {% endif %}
  19. </div>
  20. {% endfor %}
  21. <div class=container>
  22. <p><a href="{% url 'new' %}" class="btn btn-info" role="button">Neue Nachricht</a></p>
  23. </div>
  24. </div>
  25. <!--p class="lead">Some placeholder Text</p-->
  26. </div>
  27. {% endblock %}