Add circles, views to modify them and ability to add them to posts
This commit is contained in:
parent
ac962034df
commit
2cb910cc30
12 changed files with 134 additions and 16 deletions
9
flangr/templates/circles/circle_form.html
Normal file
9
flangr/templates/circles/circle_form.html
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
<h1>Circle {{ object.name }}</h1>
|
||||
<form action="#" method="post">
|
||||
{% csrf_token %}
|
||||
{{ form }}
|
||||
<input type="submit" value="Post">
|
||||
</form>
|
||||
{% endblock content %}
|
||||
9
flangr/templates/circles/circle_list.html
Normal file
9
flangr/templates/circles/circle_list.html
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
<h1>Your Circles</h1>
|
||||
<ul>
|
||||
{% for circle in object_list %}
|
||||
<li><a href="{% url "circles:circle_update" circle.pk %}">{{ circle.name }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endblock content %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue