Commit 0188e874 authored by didonet's avatar didonet
Browse files

Added a default option in the selects' drop-down lists.

parent d0902c2a
......@@ -25,6 +25,7 @@ global_menu_load_meeting_minutes=Load meeting minutes
global_menu_search_meeting_minutes=Search meeting minutes
change_password=Change Password
search_sapos=Search Sapos
select_value=select one value
#welcome page
welcome_titlepane=Welcome to {0}
......
......@@ -24,6 +24,7 @@ global_menu_load_meeting_minutes=Carregar atas colegiado
global_menu_search_meeting_minutes=Procura atas colegiado
change_password=Trocar Senha
search_sapos=Pesquisa Sapos
select_value=selecione um valor
#welcome page
welcome_titlepane=Bem vindo ao {0}
......
......@@ -38,6 +38,8 @@
<c:set var="sec_field">
<spring:escapeBody javaScriptEscape="true" >${field}</spring:escapeBody>
</c:set>
<spring:message code="select_value" var="select_one_value" htmlEscape="false" />
<div id="_${fn:escapeXml(id)}_id">
<c:choose>
......@@ -80,9 +82,14 @@
</select>
</c:when>
<c:otherwise>
<form:select id="_${sec_field}_id" items="${items}" path="${sec_field}"
<form:select id="_${sec_field}_id" path="${sec_field}"
disabled="${disabled}" multiple="${multiple}"
itemValue="${fn:escapeXml(itemValue)}" />
itemValue="${fn:escapeXml(itemValue)}" >
<form:option value="-1">
<spring:eval expression="select_one_value" />
</form:option>
<form:options items="${items}" itemValue="${fn:escapeXml(itemValue)}"/>
</form:select>
<br />
<form:errors cssClass="errors" id="_${sec_field}_error_id" path="${sec_field}" />
</c:otherwise>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment