Skip to content
Snippets Groups Projects
Commit f65a710c authored by Lene Wasskog's avatar Lene Wasskog
Browse files

feat(forecast): Add chosen-select to selection of multiple weather stations

VIPSUTV-684
parent 2af04154
Branches
Tags
No related merge requests found
...@@ -26,8 +26,12 @@ ...@@ -26,8 +26,12 @@
<link href="//code.jquery.com/ui/1.10.3/themes/redmond/jquery-ui.css" rel="stylesheet" /> <link href="//code.jquery.com/ui/1.10.3/themes/redmond/jquery-ui.css" rel="stylesheet" />
<script type="text/javascript" src="/js/3rdparty/modernizr_custom.js"></script> <script type="text/javascript" src="/js/3rdparty/modernizr_custom.js"></script>
<script type="text/javascript" src="/js/3rdparty/moment.min.js"></script> <script type="text/javascript" src="/js/3rdparty/moment.min.js"></script>
<script type="text/javascript" src="/js/environment.js"></script> <script type="text/javascript" src="/js/environment.js"></script>
<script type="text/javascript" src="/js/util.js"></script> <script type="text/javascript" src="/js/util.js"></script>
<script type="text/javascript" src="/js/3rdparty/chosen.jquery.min.js"></script>
<script type="text/javascript">
$(".chosen-select").chosen();
</script>
<script type="text/javascript"> <script type="text/javascript">
$(document).ready(function() { $(document).ready(function() {
// Make sure that there is a date picker present for HTML5 // Make sure that there is a date picker present for HTML5
...@@ -188,6 +192,9 @@ ...@@ -188,6 +192,9 @@
}; };
</script> </script>
</#macro> </#macro>
<#macro custom_css>
<link href="/css/3rdparty/chosen.min.css" rel="stylesheet" />
</#macro>
<#macro page_contents> <#macro page_contents>
<div class="singleBlockContainer"> <div class="singleBlockContainer">
<p><a href="/forecastConfiguration" class="btn btn-default back" role="button">${i18nBundle.back}</a></p> <p><a href="/forecastConfiguration" class="btn btn-default back" role="button">${i18nBundle.back}</a></p>
...@@ -287,7 +294,7 @@ ...@@ -287,7 +294,7 @@
<input type="hidden" name="multipleNew" value="true"/> <input type="hidden" name="multipleNew" value="true"/>
<div class="form-group"> <div class="form-group">
<label for="weatherStationPointOfInterestIds">${i18nBundle.weatherStationPointOfInterestIds}</label> <label for="weatherStationPointOfInterestIds">${i18nBundle.weatherStationPointOfInterestIds}</label>
<select class="form-control" name="weatherStationPointOfInterestIds" onblur="validateField(this);" multiple="multiple" size="5"> <select class="form-control chosen-select" name="weatherStationPointOfInterestIds" onblur="validateField(this);" multiple="multiple">
<#list weatherStationPointOfInterests?sort_by("name") as poi> <#list weatherStationPointOfInterests?sort_by("name") as poi>
<option value="${poi.pointOfInterestId}">${poi.name}</option> <option value="${poi.pointOfInterestId}">${poi.name}</option>
</#list> </#list>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment