Commit 54b505ca authored by Serge S. Koval's avatar Serge S. Koval

Pass actions to the dropdown macro

parent b5522e10
......@@ -4,7 +4,6 @@
- Create documentation
- Model Admin
- Reduce number of parameters passed to list view
- Checkboxes and mass operations
- Filters
- Use table to draw filters so column names will line up?
- Custom filters for date fields?
......
{% macro dropdown(btn_class='dropdown-toggle') -%}
{% macro dropdown(actions, btn_class='dropdown-toggle') -%}
<a class="{{ btn_class }}" data-toggle="dropdown" href="#">
{{ _gettext('With selected')}}<b class="caret"></b>
</a>
......
......@@ -97,7 +97,7 @@
{% endif %}
{% if actions %}
<div class="btn-group">
{{ actionslib.dropdown('dropdown-toggle btn btn-primary btn-large') }}
{{ actionslib.dropdown(actions, 'dropdown-toggle btn btn-primary btn-large') }}
</div>
{% endif %}
</div>
......
......@@ -35,7 +35,7 @@
{% if actions %}
<li class="dropdown">
{{ actionlib.dropdown() }}
{{ actionlib.dropdown(actions) }}
</li>
{% endif %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment