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

Commit

Permalink
GTNPORTAL-3055 Missing legends for required fields in form
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasponce authored and bdaw committed May 28, 2013
1 parent d82a6b6 commit 20fd73f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions web/portal/src/main/webapp/groovy/webui/form/UIFormWithTitle.gtmpl
Expand Up @@ -13,6 +13,17 @@
<div class="FormContainer">
<table class="UIFormGrid" summary="Component $uicomponent.id">
<%
boolean required = false;
for (field in uiform.getChildren()) {
if (!required && field instanceof UIFormInputBase) {
required = ((UIFormInputBase) field).isMandatory();
}
}
if (required) {
%>
<tr><td colspan=\"2\" style=\"text-align: right;\">Required field (*)</td></tr>
<%
}
for(field in uiform.getChildren()) {
if(field.isRendered()) {
%>
Expand Down

0 comments on commit 20fd73f

Please sign in to comment.