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 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | {% ckan_extends %} {% block package_basic_fields_org %} {{ super() }} {{ form.input('agency_program', label=_('Agency Program'), id='field-agency_program', placeholder=_('Name of the Agency Program that generated the data if relevant'), value=data.agency_program, error=errors.agency_program, classes=['control-medium']) }} {{ form.input('contact_point', label=_('Contact Point'), id='field-contact_point', placeholder=_('Email address for questions about content of dataset'), value=data.contact_point, error=errors.contact_point, classes=['control-medium']) }} {{ form.input('spatial_coverage', label=_('Geospatial Coverage'), id='field-spatial_coverage', placeholder=_('The geographical area covered by the data. Eg: Whole of Australia, New South Wales, Canberra'), value=data.spatial_coverage, error=errors.spatial_coverage, classes=['control-medium']) }} {{ form.input('granularity', label=_('Data Granularity'), id='field-granularity', placeholder=_('Granularity in time, place etc. Eg: incidents reports on daily basis by location.'), value=data.granularity, error=errors.granularity, classes=['control-medium']) }} {{ form.input('jurisdiction', label=_('Government Jurisdiction'), id='field-jurisdiction', placeholder=_('New South Wales, Glenorchy City Council, Federal'), value=data.jurisdiction, error=errors.jurisdiction, classes=['control-medium']) }} {{ form.input('temporal_coverage', label=_('Temporal Coverage'), id='field-temporal_coverage', placeholder=_('The timespan the dataset relates to: Current, 2008, 2008-2012, Jan 2012'), value=data.temporal_coverage, error=errors.temporal_coverage, classes=['control-medium']) }} {{ form.select('data_state', label=_('Data State'), options= [{'value': 'active', 'text': 'Active'}, {'value': 'inactive', 'text': 'Inactive'}], selected='Active', error=errors.data_state) }} {{ form.input('update_freq', label=_('Update Frequency'), id='field-update_freq', placeholder=_('How often the dataset is updated. Eg: Daily, Weekly, Never'), value=data.update_freq, error=errors.update_freq, classes=['control-medium']) }} {% endblock %} {% 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 %} |