1<button class="btn btn-default btn-block layer-exists-{{data.layer_version.pk}} customise-btn" data-recipe="{{data.pk}}" 2 {% if data.layer_version.pk not in extra.current_layers %} 3 style="display:none;" 4 {% endif %} 5 > 6 Customise 7</button> 8<button class="btn btn-default btn-block layer-add-{{data.layer_version.pk}} layerbtn" 9 data-layer='{ "id": {{data.layer_version.pk}}, "name": "{{data.layer_version.layer.name}}", 10 "layerdetailurl": "{%url 'layerdetails' extra.pid data.layer_version.pk%}", 11 "xhrLayerUrl": "{% url "xhr_layer" extra.pid data.layer_version.pk %}"}' 12 data-directive="add" 13 {% if data.layer_version.pk in extra.current_layers %} 14 style="display:none;" 15 {% endif %} 16 > 17 <i class="glyphicon glyphicon-plus"></i> 18 Add layer 19</button> 20