Development of an internal social media platform with personalised dashboards for students
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.

student_page.html 775B

123456789101112131415161718192021222324
  1. {% extends "base.html" %} {% block content %} {% load taggit_templatetags2_tags %} {% get_taglist as tags for 'application.post'%}
  2. <div id="">
  3. <ul>
  4. {% for tag in tags %}
  5. <li>{{tag}}
  6. <a class="btn btn-outline-dark" href="{% url 'tag_remove' tag.slug %}">
  7. <span class="glyphicon glyphicon-remove">Remove</span>
  8. </a>
  9. </li>
  10. {{ result }} {% endfor %}
  11. </ul>
  12. </div>
  13. <div>
  14. <form class="post-form" method="post">
  15. {% csrf_token %} {{form.as_p}}
  16. <button type="submit" class="save btn btn-outline-dark">Save</button>
  17. </form>
  18. {% if messages %}
  19. {% for message in messages %}
  20. <div {% if message.tags %} class="{{ message.tags }}" {% endif %}>{{ message }}</div>
  21. {% endfor %}
  22. {% endif %}
  23. {% endblock %}