Patrick Williams | f1e5d69 | 2016-03-30 15:21:19 -0500 | [diff] [blame^] | 1 | <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 Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 6 | <i class="icon-trash"></i> |
| 7 | Delete layer |
| 8 | </button> |
Patrick Williams | f1e5d69 | 2016-03-30 15:21:19 -0500 | [diff] [blame^] | 9 | <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 Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 14 | <i class="icon-plus"></i> |
| 15 | Add layer |
| 16 | </button> |
| 17 | |