Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

index.html 2.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. {% extends 'dashboard/layout.html' %}
  2. {% load dashboard_tags %}
  3. {% load i18n %}
  4. {% block body_class %}pages{% endblock %}
  5. {% block title %}
  6. {% trans "Pages" %} | {{ block.super }}
  7. {% endblock %}
  8. {% block breadcrumbs %}
  9. <ul class="breadcrumb">
  10. <li>
  11. <a href="{% url dashboard:index %}">{% trans "Dashboard" %}</a>
  12. <span class="divider">/</span>
  13. </li>
  14. <li class="active">{% trans "Pages" %}</li>
  15. </ul>
  16. {% endblock %}
  17. {% block header %}
  18. <div class="well well-info">
  19. <h3><i class="icon-search"></i> Search</h3>
  20. <form action="." method="get" class="form-inline">
  21. {% include "partials/form_fields_inline.html" with form=form %}
  22. <input type="submit" value="{% trans "Search" %}" class="btn btn-primary"/>
  23. </form>
  24. </div>
  25. {% endblock header %}
  26. {% block dashboard_content %}
  27. <div class="well well-success">
  28. <h3><i class="icon-file"></i> Create new page</h3>
  29. <form action="{% url dashboard:page-create %}" method="get" class="form-inline">
  30. <input type="submit" value="{% trans "Create" %}" class="btn btn-primary" />
  31. </form>
  32. </div>
  33. <div class="sub-header">
  34. <h2>{{ queryset_description }}</h2>
  35. </div>
  36. {% if flatpage_list.count %}
  37. <form action="." method="post">
  38. {% csrf_token %}
  39. <table class="table table-striped table-bordered">
  40. <thead>
  41. <tr>
  42. <th>{% trans "Title" %}</th>
  43. <th>{% trans "URL" %}</th>
  44. <th></th>
  45. </tr>
  46. </thead>
  47. <tbody>
  48. {% for page in flatpage_list %}
  49. <tr>
  50. <td>{{ page.title}}</td>
  51. <td>{{ page.url}}</td>
  52. <td>
  53. <a class="btn btn-info" href="{{ page.get_absolute_url }}">{% trans "View" %}</a>
  54. <a class="btn btn-success" href="{% url dashboard:page-update page.id %}">{% trans "Edit" %}</a>
  55. <a class="btn btn-danger" href="{% url dashboard:page-delete page.id %}">{% trans "Delete" %}</a>
  56. </td>
  57. </tr>
  58. {% endfor %}
  59. </tbody>
  60. </table>
  61. {% include "partials/pagination.html" %}
  62. </form>
  63. {% else %}
  64. <p>{% trans "No pages found." %}</p>
  65. {% endif %}
  66. {% endblock dashboard_content %}
  67. {% block onbodyload %}
  68. oscar.dashboard.search.init();
  69. {% endblock onbodyload %}