-
-
Notifications
You must be signed in to change notification settings - Fork 241
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'issues/commercial/787-bristol-assets'
- Loading branch information
Showing
20 changed files
with
1,393 additions
and
373 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 21 additions & 13 deletions
34
templates/web/base/report/new/category_extras_fields.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,27 @@ | ||
[%- FOR meta IN category_extras.$category %] | ||
[%- meta_name = meta.code -%] | ||
|
||
<label for="[% cat_prefix %]form_[% meta_name %]">[% meta.description %]</label> | ||
[% IF field_errors.$meta_name %] | ||
<p class='form-error'>[% field_errors.$meta_name %]</p> | ||
[% END -%] | ||
[% IF meta.variable != 'false' %] | ||
[% IF meta.exists('values') %] | ||
<select class="form-control" name="[% cat_prefix %][% meta_name %]" id="[% cat_prefix %]form_[% meta_name %]"[% meta.required == 'true' ? ' required' : '' %]> | ||
[% FOR option IN meta.values %] | ||
<option value="[% option.key %]"[% IF option.key == report_meta.$meta_name.value %] selected[% END %]>[% option.name %]</option> | ||
[% IF c.cobrand.category_extra_hidden(meta_name) %] | ||
|
||
<input type="hidden" value="" name="[% cat_prefix %][% meta_name %]" id="[% cat_prefix %]form_[% meta_name %]"> | ||
|
||
[% ELSE %] | ||
|
||
<label for="[% cat_prefix %]form_[% meta_name %]">[% meta.description %]</label> | ||
[% IF field_errors.$meta_name %] | ||
<p class='form-error'>[% field_errors.$meta_name %]</p> | ||
[% END -%] | ||
[% IF meta.variable != 'false' %] | ||
[% IF meta.exists('values') %] | ||
<select class="form-control" name="[% cat_prefix %][% meta_name %]" id="[% cat_prefix %]form_[% meta_name %]"[% meta.required == 'true' ? ' required' : '' %]> | ||
[% FOR option IN meta.values %] | ||
<option value="[% option.key %]"[% IF option.key == report_meta.$meta_name.value %] selected[% END %]>[% option.name %]</option> | ||
[% END %] | ||
</select> | ||
[% ELSE %] | ||
<input class="form-control" type="text" value="[% report_meta.$meta_name.value | html %]" name="[% cat_prefix %][% meta_name %]" id="[% cat_prefix %]form_[% meta_name %]"[% meta.required == 'true' ? ' required' : '' %]> | ||
[% END %] | ||
</select> | ||
[% ELSE %] | ||
<input class="form-control" type="text" value="[% report_meta.$meta_name.value | html %]" name="[% cat_prefix %][% meta_name %]" id="[% cat_prefix %]form_[% meta_name %]"[% meta.required == 'true' ? ' required' : '' %]> | ||
[% END %] | ||
|
||
[% END %] | ||
[% END %] | ||
[%- END %] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<script src="[% version('/js/OpenLayers.Projection.OrdnanceSurvey.js') %]"></script> | ||
<script src="[% version('/cobrands/fixmystreet-uk-councils/js.js') %]"></script> | ||
<script src="[% version('/cobrands/fixmystreet/assets.js') %]"></script> | ||
<script src="[% version('/cobrands/bristol/js.js') %]"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
$(fixmystreet.add_assets({ | ||
wfs_url: "https://data.angus.gov.uk/geoserver/services/wfs", | ||
wfs_feature: "lighting_column_v", | ||
wfs_fault_feature: "lighting_faults_v", | ||
asset_category: "Street lighting", | ||
asset_item: 'street light', | ||
asset_type: 'spot', | ||
max_resolution: 2.388657133579254, | ||
min_resolution: 0.5971642833948135, | ||
asset_id_field: 'n', | ||
attributes: { | ||
column_id: 'n' | ||
}, | ||
geometryName: 'g' | ||
})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.