Skip to content

Instantly share code, notes, and snippets.

@alexmuller
Created September 29, 2014 11:49
Show Gist options
  • Save alexmuller/94e53efcf076186b0274 to your computer and use it in GitHub Desktop.
Save alexmuller/94e53efcf076186b0274 to your computer and use it in GitHub Desktop.
<div class="col-sm-12">
<div class="pull-right">
{% if loop.index0 > 0 %}
<button type="submit" class="btn btn-default" name="move_module_up_{{ loop.index0 }}">
<span class="glyphicon glyphicon-arrow-up"></span> Move module up
</button>
{% endif %}
{% if form.modules|length > loop.index %}
<button type="submit" class="btn btn-default" name="move_module_down_{{ loop.index0 }}">
<span class="glyphicon glyphicon-arrow-down"></span> Move module down
</button>
{% endif %}
<button type="submit" class="btn btn-danger" name="remove_module_{{ loop.index0 }}">
<span class="glyphicon glyphicon-remove"></span> Remove module
</button>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment