1{# TODO move to snippets dir #} 2{% if data.is_locale_package %} 3<p class="text-center"> 4 <span class="text-muted">Locale package</span> 5 <span class="glyphicon glyphicon-question-sign get-help hover-help" 6 title="This package is included in your image 7 based on the locale specified in the IMAGE_LINGUAS variable" 8 style="visibility: hidden;"> 9 </span> 10</p> 11 12{% else %} 13 14<div id="package-btn-cell-{{data.pk}}"> 15 <div style="display: none; font-size: 11px; line-height: 1.3;" class="tooltip-inner inline-notification"></div> 16 <button class="btn btn-block btn-danger add-rm-package-btn" data-directive="remove" data-id="{{data.pk}}" data-package-url="{% url 'xhr_customrecipe_packages' extra.recipe_id data.pk %}" data-name="{{data.name}}" style=" 17 {% if data.pk not in extra.current_packages %} 18 display:none 19 {% endif %} 20 "> 21 <i class="icon-trash no-tooltip"></i> 22 Remove package 23 </button> 24 <button class="btn btn-default btn-block add-rm-package-btn" data-directive="add" data-id="{{data.pk}}" data-package-url="{% url 'xhr_customrecipe_packages' extra.recipe_id data.pk %}" data-name="{{data.name}}" style=" 25 {% if data.pk in extra.current_packages %} 26 display:none 27 {% endif %} 28 "> 29 <i class="glyphicon glyphicon-plus"></i> 30 Add package 31 </button> 32</div> 33 34{% endif %} 35