dashboard.html 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. {% load i18n %}
  2. <div class="dashboard-container columns_{{ columns|length }} cf">
  3. {% for i in columns %}
  4. <div class="dashboard-column-wrapper">
  5. <div class="dashboard-column{% if forloop.first %} first{% endif %}">
  6. {% for module in modules %}
  7. {% if module.model.column == i %}
  8. {% include "jet.dashboard/module.html" with module=module %}
  9. {% endif %}
  10. {% endfor %}
  11. </div>
  12. </div>
  13. {% endfor %}
  14. </div>
  15. <div class="dialog-confirm" id="module-remove-dialog" title="{% trans "Delete widget" %}">
  16. <p>{% trans "Are you sure want to delete this widget?" %}</p>
  17. </div>
  18. <form action="{% url "jet-dashboard:update_dashboard_modules" %}" method="POST" id="update-dashboard-modules-form">
  19. {% csrf_token %}
  20. <input type="hidden" name="app_label" value="{% if app_label %}{{ app_label }}{% endif %}">
  21. <input type="hidden" name="modules">
  22. </form>
  23. <form action="{% url "jet-dashboard:update_dashboard_module_collapse" %}" method="POST" id="update-dashboard-module-collapse-form">
  24. {% csrf_token %}
  25. <input type="hidden" name="id">
  26. <input type="hidden" name="collapsed">
  27. </form>
  28. <form action="{% url "jet-dashboard:remove_dashboard_module" %}" method="POST" id="remove-dashboard-module-form">
  29. {% csrf_token %}
  30. <input type="hidden" name="id">
  31. </form>