column-actions.html 1.51 KB
Newer Older
1
{% load i18n %}
2
<div class="btn-group">
3 4 5
  <button type="button" class="btn {{ btn_size }} btn-warning nojs-dropdown-toogle dropdown-toggle" data-toggle="dropdown">Action
    <i class="fa fa-caret-down"></i>
  </button>
6
  <ul class="dropdown-menu nojs-dropdown-toogle" role="menu">
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
    <li>
      <a href="#" class="node-details-rename-button">
        <i class="fa fa-pencil"></i> {% trans "Rename" %}
      </a>
    </li>
    <li>
      <a data-node-pk="{{ record.pk }}" class="real-link node-flush" href="{% url "dashboard.views.flush-node" pk=record.pk %}">
        <i class="fa fa-cloud-upload"></i> {% trans "Flush" %}
      </a>
    </li>
    <li>
      <a style={% if record.enabled %}"display:none"{% else %}"display:block"{% endif %} data-node-pk="{{ record.pk }}" class="real-link node-enable" href="{% url "dashboard.views.status-node" pk=record.pk %}?next={{ request.path }}">
        <i class="fa fa-check"></i> {% trans "Enable" %}
      </a>
    </li>
    <li>
      <a style={% if record.enabled %}"display:block"{% else %}"display:none"{% endif %} data-node-pk="{{ record.pk }}" class="real-link node-enable" href="{% url "dashboard.views.status-node" pk=record.pk %}?next={{ request.path }}">
        <i class="fa fa-times"></i> {% trans "Disable" %}
      </a>
    </li>
    <li>
      <a data-node-pk="{{ record.pk }}" class="real-link node-delete" href="{% url "dashboard.views.delete-node" pk=record.pk %}?next={{ request.path }}">
        <i class="fa fa-trash-o"></i> {% trans "Delete" %}
      </a>
    </li>
  </ul>
33
</div>