29 lines
996 B
HTML
29 lines
996 B
HTML
{% load horizon i18n %}
|
|
|
|
{% spaceless %} {# This makes sure whitespace doesn't affect positioning for dropdown. #}
|
|
|
|
{% if row_actions|length == 1 %}
|
|
{% include "horizon/common/_data_table_action.html" with action=row_actions.0 is_single=1 is_small=0 %}
|
|
{% elif row_actions|length > 1 %}
|
|
<div class="btn-group">
|
|
{% for action in row_actions %}
|
|
{% if forloop.first %}
|
|
{% include "horizon/common/_data_table_action.html" with is_small=1 is_single=1 %}
|
|
<a class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown" href="#">
|
|
<span class="fa fa-caret-down"></span>
|
|
</a>
|
|
<ul class="dropdown-menu dropdown-menu-right row_actions">
|
|
{% else %}
|
|
<li>
|
|
{% include "horizon/common/_data_table_action.html" with is_small=0 %}
|
|
</li>
|
|
{% endif %}
|
|
{% if forloop.last %}
|
|
</ul>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% endspaceless %}
|