diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/accounts/profile.html | 26 | ||||
-rw-r--r-- | templates/proposals/proposal_form.html | 31 |
2 files changed, 54 insertions, 3 deletions
diff --git a/templates/accounts/profile.html b/templates/accounts/profile.html index aa6f3ad..fb9e8b1 100644 --- a/templates/accounts/profile.html +++ b/templates/accounts/profile.html | |||
@@ -1,9 +1,29 @@ | |||
1 | {% extends "base.html" %} | 1 | {% extends "base.html" %} |
2 | {% load icons %} | ||
2 | 3 | ||
3 | {% block content %} | 4 | {% block content %} |
4 | <h1>Your Account</h1> | 5 | <h1>Your Account</h1> |
5 | <p>Hello <b>{{ user.email }}</b></p> | 6 | <p>Hello <b>{{ user.email }}</b></p> |
6 | <ul> | 7 | |
7 | <li><a href="{% url 'auth:logout' %}">Logout</a></li> | 8 | <h1>Your Talk Proposals</h1> |
8 | </ul> | 9 | <p><a href="{% url 'proposals:create' %}">Submit a Proposal</a></p> |
10 | |||
11 | {% if proposals %} | ||
12 | <table> | ||
13 | <tr> | ||
14 | <th>Title</th> | ||
15 | <th>Type</th> | ||
16 | <th>Category</th> | ||
17 | <th>Approved</th> | ||
18 | </tr> | ||
19 | {% for proposal in proposals %} | ||
20 | <tr> | ||
21 | <td><a href="{% url 'proposals:update' proposal.id %}">{{ proposal.title }}</a></td> | ||
22 | <td>{{ proposal.type }}</td> | ||
23 | <td>{{ proposal.category }}</td> | ||
24 | <td>{{ proposal.approved|boolean_icon }}</td> | ||
25 | </tr> | ||
26 | {% endfor %} | ||
27 | </table> | ||
28 | {% endif %} | ||
9 | {% endblock %} | 29 | {% endblock %} |
diff --git a/templates/proposals/proposal_form.html b/templates/proposals/proposal_form.html new file mode 100644 index 0000000..79f33bf --- /dev/null +++ b/templates/proposals/proposal_form.html | |||
@@ -0,0 +1,31 @@ | |||
1 | {% extends "base.html" %} | ||
2 | |||
3 | {% block title %}CodeMash Sponsors{% endblock %} | ||
4 | |||
5 | {% block content %} | ||
6 | <h1>{% if edit_view %}Edit{% else %}Submit{% endif %} Proposal</h1> | ||
7 | {% if object.approved %} | ||
8 | <p>Congratulations, your talk has been approved!</p> | ||
9 | |||
10 | <fieldset> | ||
11 | <legend>Scheduling Details</legend> | ||
12 | <p> | ||
13 | <label for="id_time_slot">Time Slot:</label> | ||
14 | <input type="text" id="id_time_slot" value="{{ object.time_slot }}" disabled /> | ||
15 | </p> | ||
16 | <p> | ||
17 | <label for="id_location">Location:</label> | ||
18 | <input type="text" id="id_location" value="{{ object.location }}" disabled /> | ||
19 | </p> | ||
20 | </fieldset> | ||
21 | {% endif %} | ||
22 | |||
23 | <form action="" method="post"> | ||
24 | {% csrf_token %} | ||
25 | <fieldset> | ||
26 | <legend>Talk Details</legend> | ||
27 | {{ form.as_p }} | ||
28 | <input type="submit" value="Save Changes" /> | ||
29 | </fieldset> | ||
30 | </form> | ||
31 | {% endblock %} | ||