blob: 314eec7cf2c7dbb5a5abc2eb9aa7217770ee20e0 [file] [log] [blame]
Patrick Williamsf1e5d692016-03-30 15:21:19 -05001<button class="btn btn-danger btn-block layer-exists-{{data.pk}} layerbtn" data-layer='{ "id": {{data.pk}}, "name": "{{data.layer.name}}", "layerdetailurl": "{%url 'layerdetails' extra.pid data.pk%}"}' data-directive="remove"
2 {% if data.pk not in extra.current_layers %}
3 style="display:none;"
4 {% endif %}
5 >
Patrick Williamsc124f4f2015-09-15 14:41:29 -05006 <i class="icon-trash"></i>
7 Delete layer
8</button>
Patrick Williamsf1e5d692016-03-30 15:21:19 -05009<button class="btn btn-block layer-add-{{data.pk}} layerbtn" data-layer='{ "id": {{data.pk}}, "name": "{{data.layer.name}}", "layerdetailurl": "{%url 'layerdetails' extra.pid data.pk%}"}' data-directive="add"
10 {% if data.pk in extra.current_layers %}
11 style="display:none;"
12 {% endif %}
13 >
Patrick Williamsc124f4f2015-09-15 14:41:29 -050014 <i class="icon-plus"></i>
15 Add layer
16</button>
17