1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | {% ckan_extends %} {% block package_basic_fields_license %} <div class="control-group"> {% set error = errors.license_id %} <label class="control-label" for="field-license">{{ _("License") }}</label> <div class="controls"> <select id="field-license" name="license_id" data-module="autocomplete"> {% for license_desc, license_id in licenses|sort if license_desc %} {# Make cc-by the default value for data.gov.au #} <option value="{{ license_id }}" {% if data.get('license_id', 'cc-by') == license_id %}selected="selected"{% endif %}>{{ license_desc }}</option> {% endfor %} </select> {% if error %}<span class="error-block">{{ error }}</span>{% endif %} <span class="info-block info-inline"> <i class="icon-info-sign"></i> {% trans %} License definitions and additional information can be found at <a href="http://opendefinition.org/licenses/">opendefinition.org</a> {% endtrans %} </span> </div> </div> {% endblock %} |