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

Pass actions to the dropdown macro

parent b5522e10
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
- Create documentation - Create documentation
- Model Admin - Model Admin
- Reduce number of parameters passed to list view - Reduce number of parameters passed to list view
- Checkboxes and mass operations
- Filters - Filters
- Use table to draw filters so column names will line up? - Use table to draw filters so column names will line up?
- Custom filters for date fields? - 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="#"> <a class="{{ btn_class }}" data-toggle="dropdown" href="#">
{{ _gettext('With selected')}}<b class="caret"></b> {{ _gettext('With selected')}}<b class="caret"></b>
</a> </a>
......
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
{% endif %} {% endif %}
{% if actions %} {% if actions %}
<div class="btn-group"> <div class="btn-group">
{{ actionslib.dropdown('dropdown-toggle btn btn-primary btn-large') }} {{ actionslib.dropdown(actions, 'dropdown-toggle btn btn-primary btn-large') }}
</div> </div>
{% endif %} {% endif %}
</div> </div>
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
{% if actions %} {% if actions %}
<li class="dropdown"> <li class="dropdown">
{{ actionlib.dropdown() }} {{ actionlib.dropdown(actions) }}
</li> </li>
{% endif %} {% 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