Commit c78a0166 authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Añade plantillas para estaciones de observación

parent 7e900f03
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -204,6 +204,10 @@ module.exports = function(grunt) {
				, 'dist/ObjectCollectionPopup.js': 'src/ObjectCollection/Popup.hbs'
				, 'dist/ObjectCollectionList.js': 'src/ObjectCollection/List.hbs'

				, 'dist/ObservationStationPopup.js': 'src/Observation/StationPopup.hbs'
				, 'dist/ObservationStationList.js': 'src/Observation/StationList.hbs'
				, 'dist/ObservationRegisterList.js': 'src/Observation/RegisterList.hbs'

				, 'dist/UserTitle.js': 'src/User/Title.hbs'
				, 'dist/UserImage.js': 'src/User/Image.hbs'
				, 'dist/UserTopbarImage.js': 'src/User/TopbarImage.hbs'
+11 −0
Original line number Diff line number Diff line
<span class='spanTemplate'>
	<span class='title' title='{{ChkIsNull data.name}}'>
		<span class='name'>{{ChkIsNull data.name}}</span>
	</span>
	<span class='subtitle' title='{{ChkIsNull data.code}}'>
		{{ChkIsNull data.code}}
	</span>
	<span class='subtitle' title='{{ChkIsNull data.date}}'>
		{{ChkIsNull data.date}}
	</span>
</span>
+8 −0
Original line number Diff line number Diff line
<span class='spanTemplate'>
	<span class='title'>
		<span class='name'>{{ChkIsNull data.site.name}}</span>
	</span>
	<span class='subtitle'>
		{{ChkIsNull data.site.owner}} {{ChkIsNull data.site.code}}
	</span>
</span>
+57 −0
Original line number Diff line number Diff line
{{#if feature.properties.site.name}}
	<div>
		<span class="propLabel">{{i18n.name}}: </span>
		<span class="propValue">{{feature.properties.site.name}}</span>
	</div>
{{/if}}

{{#if feature.properties.site.owner}}
	<div>
		<span class="propLabel">{{i18n.owner}}: </span>
		<span class="propValue">{{lang feature.properties.site.owner}}</span>
	</div>
{{/if}}

{{#if feature.properties.site.code}}
	<div>
		<span class="propLabel">{{i18n.code}}: </span>
		<span class="propValue">{{feature.properties.site.code}}</span>
	</div>
{{/if}}

{{#if feature.properties.measurements.[0].dataDefinition.z}}
	<div>
		<span class="propLabel">{{i18n.depth}}: </span>
		<span class="propValue">{{feature.properties.measurements.[0].dataDefinition.z}}m</span>
	</div>
{{/if}}

{{#if feature.geometry.coordinates}}
	<div>
		<span class="propLabel">Lon:</span>
		<span class="propValue">{{toFixed feature.geometry.coordinates.[0] 5}}  </span>
		<span class="propLabel">Lat:</span>
		<span class="propValue">{{toFixed feature.geometry.coordinates.[1] 5}}</span>
	</div>
{{/if}}

{{#if feature.properties.site.description}}
	<div>
		<span class="propLabel">{{i18n.description}}: </span>
		<span class="propValue">{{breaklines feature.properties.site.description}}</span>
	</div>
{{/if}}

{{#if feature.properties.inserted}}
	<div>
		<span class="propLabel">{{i18n.inserted}}: </span>
		<span class="propValue">{{DateTime feature.properties.inserted}}</span>
	</div>
{{/if}}

{{#if feature.properties.updated}}
	<div>
		<span class="propLabel">{{i18n.updated}}: </span>
		<span class="propValue">{{DateTime feature.properties.updated}}</span>
	</div>
{{/if}}