9
9
<ui:define name =" bodyId" >${pojoNameLower} List</ui:define >
10
10
11
11
<ui:define name =" body" >
12
- <div class =" col-sm-10" >
13
- <h2 >${'#'}{text['${pojoNameLower} List.heading']}</h2 >
12
+ <h2 >${'#'}{text['${pojoNameLower} List.heading']}</h2 >
14
13
15
- <h:form id =" searchForm" styleClass =" form-inline" >
16
- <div id =" search" class =" text-right" >
17
- <span class =" col-sm-9" >
18
- <h:inputText id =" q" name =" q" size =" 20" value =" ${'#'}{${pojoNameLower}List.query}" styleClass =" form-control input-sm" />
19
- </span >
20
- <h:commandButton value =" ${'#'}{text['button.search']}" styleClass =" btn btn-default btn-sm" action =" ${'#'}{${pojoNameLower}List.search}" />
21
- </div >
22
- </h:form >
14
+ <h:form id =" searchForm" styleClass =" form-inline" >
15
+ <div id =" search" class =" text-right" >
16
+ <span class =" col-sm-9" >
17
+ <h:inputText id =" q" name =" q" size =" 20" value =" ${'#'}{${pojoNameLower}List.query}" styleClass =" form-control input-sm" />
18
+ </span >
19
+ <h:commandButton value =" ${'#'}{text['button.search']}" styleClass =" btn btn-default btn-sm" action =" ${'#'}{${pojoNameLower}List.search}" />
20
+ </div >
21
+ </h:form >
23
22
24
- <p >${'#'}{text['${pojoNameLower} List.message']}</p >
23
+ <p >${'#'}{text['${pojoNameLower} List.message']}</p >
25
24
26
- <h:form id =" edit${pojo.shortName}" >
25
+ <h:form id =" edit${pojo.shortName}" >
27
26
28
- <div id =" actions" class =" btn-group" >
29
- <h:commandButton value =" ${'#'}{text['button.add']}" action =" add" id =" add" immediate =" true" styleClass =" btn btn-primary" />
30
- <h:commandButton value =" ${'#'}{text['button.done']}" action =" home" id =" cancel" immediate =" true" styleClass =" btn btn-default" />
31
- </div >
27
+ <div id =" actions" class =" btn-group" >
28
+ <h:commandButton value =" ${'#'}{text['button.add']}" action =" add" id =" add" immediate =" true" styleClass =" btn btn-primary" />
29
+ <h:commandButton value =" ${'#'}{text['button.done']}" action =" home" id =" cancel" immediate =" true" styleClass =" btn btn-default" />
30
+ </div >
32
31
33
- <p:dataTable id =" ${util.getPluralForWord(pojoNameLower)}" var =" ${pojoNameLower}" value =" ${'#'}{${pojoNameLower}List.${util.getPluralForWord(pojoNameLower)}}"
34
- sortBy =" ${'#'}{${pojoNameLower}List.sortColumn}" paginator =" true" rows =" 25"
35
- paginatorTemplate =" {CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
36
- rowsPerPageTemplate =" 5,10,15" >
37
- <#foreach field in pojo.getAllPropertiesIterator() >
38
- <p:column >
39
- <f:facet name =" header" >
40
- <p:column sortBy =" ${field.name}" >
41
- <h:outputText value =" ${'#'}{text['${pojoNameLower}.${field.name}']}" />
42
- </p:column >
43
- </f:facet >
44
- <#if field.equals(pojo.identifierProperty) >
45
- <h:commandLink action =" ${'#'}{${pojoNameLower}Form.edit}" value =" ${'#'}{${pojoNameLower}.${field.name}}" >
46
- <f:param name =" ${field.name}" value =" ${'#'}{${pojoNameLower}.${field.name}}" />
47
- <f:param name =" from" value =" list" />
48
- </h:commandLink >
49
- <#elseif !c2h.isCollection(field) && !c2h.isManyToOne(field) && !c2j.isComponent(field) >
50
- <#if field.value.typeName == "java.util.Date" || field.value.typeName == "date" >
51
- <#lt/ > <h:outputText value =" ${'#'}{${pojoNameLower}.${field.name}}" escape =" true" />
52
- <#elseif field.value.typeName == "boolean" >
53
- <#lt/ > <h:selectBooleanCheckbox value =" ${'#'}{${pojoNameLower}Form.${pojoNameLower}.${field.name}}" id =" ${field.name}" disabled =" disabled" />
54
- <#else >
55
- <#lt/ > <h:outputText value =" ${'#'}{${pojoNameLower}.${field.name}}" escape =" true" />
56
- </#if >
32
+ <p:dataTable id =" ${util.getPluralForWord(pojoNameLower)}" var =" ${pojoNameLower}" value =" ${'#'}{${pojoNameLower}List.${util.getPluralForWord(pojoNameLower)}}"
33
+ sortBy =" ${'#'}{${pojoNameLower}List.sortColumn}" paginator =" true" rows =" 25"
34
+ paginatorTemplate =" {CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
35
+ rowsPerPageTemplate =" 5,10,15" >
36
+ <#foreach field in pojo.getAllPropertiesIterator() >
37
+ <p:column >
38
+ <f:facet name =" header" >
39
+ <p:column sortBy =" ${field.name}" >
40
+ <h:outputText value =" ${'#'}{text['${pojoNameLower}.${field.name}']}" />
41
+ </p:column >
42
+ </f:facet >
43
+ <#if field.equals(pojo.identifierProperty) >
44
+ <h:commandLink action =" ${'#'}{${pojoNameLower}Form.edit}" value =" ${'#'}{${pojoNameLower}.${field.name}}" >
45
+ <f:param name =" ${field.name}" value =" ${'#'}{${pojoNameLower}.${field.name}}" />
46
+ <f:param name =" from" value =" list" />
47
+ </h:commandLink >
48
+ <#elseif !c2h.isCollection(field) && !c2h.isManyToOne(field) && !c2j.isComponent(field) >
49
+ <#if field.value.typeName == "java.util.Date" || field.value.typeName == "date" >
50
+ <#lt/ > <h:outputText value =" ${'#'}{${pojoNameLower}.${field.name}}" escape =" true" />
51
+ <#elseif field.value.typeName == "boolean" >
52
+ <#lt/ > <h:selectBooleanCheckbox value =" ${'#'}{${pojoNameLower}Form.${pojoNameLower}.${field.name}}" id =" ${field.name}" disabled =" disabled" />
53
+ <#else >
54
+ <#lt/ > <h:outputText value =" ${'#'}{${pojoNameLower}.${field.name}}" escape =" true" />
57
55
</#if >
58
- </ p:column >
59
- </# foreach >
60
- </ p:dataTable >
61
- </ h:form >
62
- </div >
56
+ </# if >
57
+ </p:column >
58
+ </# foreach >
59
+ </ p:dataTable >
60
+ </h:form >
63
61
</ui:define >
64
62
</ui:composition >
65
63
</html >
0 commit comments