Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% extends "forum/base.html" %}
- {% block title %} All {% endblock title %}
- {% block content %}
- <form action="/topics/add?next={{ request.path }}" class="navbar-form navbar-left" method="POST">
- <div class="form-group">
- <input type="text" class="form-control" placeholder="Title" name="title">
- </div>
- {% csrf_token %}
- <button type="submit" class="btn btn-default">Add</button>
- </form>
- <table class="table table-compact table-hover">
- <thead>
- <tr>
- <th>Topic</th>
- <th>Author</th>
- <th>Operations</th>
- </tr>
- </thead>
- <tbody>
- {% for topic in topics %}
- <tr>
- <td>{{ topic.title }}</td>
- <td> unknown </td>
- <td> <a href="/topics/{{topic.id}}/delete?next={{request.path}}">
- <span class="glyphicon glyphicon-trash text-danger" aria-hidden="true">
- </span>
- </a>
- </tr>
- {% endfor %}
- </tbody>
- </table>
- {% endblock content %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement