Skip to content
This repository has been archived by the owner on May 28, 2019. It is now read-only.

Commit

Permalink
Resolve empty selection option in angular form in the HRDE app
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Wyss authored and daniviga committed Oct 5, 2015
1 parent 580fa87 commit 939011b
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions openquakeplatform/openquakeplatform/templates/hrde.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
Filter <input type="text" ng-model="search">
<br>
<select id="input-list" size="5" ng-model="selected_input" ng-options="input.name for input in inputs | filter:search | orderBy:'name'">
<option value="0"></option>
<option style="display:none" value="">select a type</option>
</select>
<br>
<input type="button" id="addTileInput" value="Add Layer">
Expand All @@ -68,13 +68,13 @@
Filter <input type="text" ng-model="search">
<br>
<select size="5" id="layer-list" ng-model="selected_map" ng-options="map.name for map in maps | filter:search | orderBy:'name'">
<option></option>
<option style="display:none" value="">select a type</option>
</select>
<br>
<input type="button" id="addTileLayer" value="Add Layer">
<div id="opacity-labels">
<p>
<label class="opacity-label" for="amount">Layer opacity:</label>
<p>
<label class="opacity-label" for="amount">Layer opacity:</label>
<input type="text" id="amount" readonly style="width:30px">
</p>
</div>
Expand All @@ -87,7 +87,9 @@
<br>Hazard Curves:<br>
Filter <input type="text" ng-model="search">
<br>
<select id="curve-list" size="5" ng-model="selected_curve" ng-options="curve.name for curve in curves | filter:search | orderBy:'name'"></select>
<select id="curve-list" size="5" ng-model="selected_curve" ng-options="curve.name for curve in curves | filter:search | orderBy:'name'">
<option style="display:none" value="">select a type</option>
</select>
<br>
<input type="button" id="addTileCurve" value="Add Layer">
<br>
Expand All @@ -99,7 +101,9 @@
<br>Uniform Hazard Spectra:<br>
Filter <input type="text" ng-model="search">
<br>
<select id="uhs-list" size="5" ng-model="selected_uhs" ng-options="uhs.name for uhs in uhss | filter:search | orderBy:'name'"></select>
<select id="uhs-list" size="5" ng-model="selected_uhs" ng-options="uhs.name for uhs in uhss | filter:search | orderBy:'name'">
<option style="display:none" value="">select a type</option>
</select>
<br>
<input type="button" id="addTileUhs" value="Add Layer">
<br>
Expand All @@ -111,7 +115,9 @@
<br>Hazard Spectrum Code:<br>
Filter <input type="text" ng-model="search">
<br>
<select id="spectrum-list" size="5" ng-model="selected_spectrum" ng-options="spectrum.name for spectrum in spectrums | filter:search | orderBy:'name'"></select>
<select id="spectrum-list" size="5" ng-model="selected_spectrum" ng-options="spectrum.name for spectrum in spectrums | filter:search | orderBy:'name'">
<option style="display:none" value="">select a type</option>
</select>
<br>
<input type="button" id="addTileSpectrum" value="Add Layer">
<br>
Expand All @@ -128,7 +134,9 @@
<br>Loss Curves<br>
Filter <input type="text" ng-model="search">
<br>
<select id="loss-list" size="5" ng-model="selected_loss" ng-options="loss.name for loss in losses | filter:search | orderBy:'name'"></select>
<select id="loss-list" size="5" ng-model="selected_loss" ng-options="loss.name for loss in losses | filter:search | orderBy:'name'">
<option style="display:none" value="">select a type</option>
</select>
<br>
<input type="button" id="addTileLoss" value="Add Layer">
<br>
Expand Down

0 comments on commit 939011b

Please sign in to comment.