gt_html_xpage_v6.html
1 <#if business_class?? >
2 <#switch template_type>
3
4 <#case 0>
5 <${include} "${application.applicationName?lower_case}_tabs.html" />
6 <${macro}tabs tab="${business_class.businessClass?lower_case}" />
7
8 <div class="row" >
9 <div class="col-sm-12">
10
11 <form class="form-horizontal" role="form" method="post" action="jsp/site/Portal.jsp?page=${business_class.businessClass?lower_case}">
12 <fieldset>
13 <legend>${i18n_open}${plugin_name}.create_${business_class.businessClass?lower_case}.title{i18n_close}</legend>
14
15 <${macro}messages errors=errors />
16 <input type="hidden" id="id" name="id"/>
17 <input type="hidden" value="${bra_open}token${bra_close}" name="token" />
18
19 <#list business_class.attributes as attribute>
20 <${macro}formGroup labelFor='${attribute.paramName}' labelKey='${i18n_open}${plugin_name}.create_${business_class.businessClass?lower_case}.label${attribute.name}${i18n_close}' helpKey='${i18n_open}${plugin_name}.create_${business_class.businessClass?lower_case}.label${attribute.name}.help${i18n_close}' mandatory=true>
21 <#if attribute.type != "boolean">
22 <${macro}input type="text" id="${attribute.paramName}" name="${attribute.paramName}" value="${bra_open}${business_class.businessClass?lower_case}.${attribute.name?uncap_first}!''${bra_close}" <#if attribute.maxLength > 0> maxlength=${attribute.maxLength}</#if> tabIndex="${attribute_index + 1}" />
23 <#else>
24 <${macro}checkBox id="${attribute.paramName}" name="${attribute.paramName}" value="1" checked=${business_class.businessClass?lower_case}.${attribute.name?uncap_first}!'false' tabIndex='${attribute_index}' />
25 </#if>
26 </${macro}formGroup>
27 </#list>
28 <div class="form-group">
29 <div class="col-sm-offset-3 col-sm-9">
30 <button name="action_create${business_class.businessClass}" class="btn btn-primary" type="submit" tabindex="${business_class.attributes?size}">
31 ${i18n_open}portal.util.labelCreate${i18n_close}
32 </button>
33 <button name="view_manage${business_class.businessClass}s" class="btn" type="submit" >
34 ${i18n_open}portal.util.labelCancel${i18n_close}
35 </button>
36 </div>
37 </div>
38 </fieldset>
39 </form>
40 </div>
41 </div>
42 <#break>
43
44 <#case 1>
45 <${include} "${application.applicationName?lower_case}_tabs.html" />
46 <${macro}tabs tab="${business_class.businessClass?lower_case}" />
47
48 <div class="row" >
49 <div class="col-sm-12">
50
51 <form class="form-horizontal" role="form" method="post" action="jsp/site/Portal.jsp?page=${business_class.businessClass?lower_case}">
52 <fieldset>
53 <legend>${i18n_open}${plugin_name}.modify_${business_class.businessClass?lower_case}.title{i18n_close}</legend>
54
55 <${macro}messages errors=errors />
56 <input type="hidden" id="id" name="id" value="${bra_open}${business_class.businessClass?lower_case}.id${bra_close}"/>
57 <input type="hidden" value="${bra_open}token${bra_close}" name="token" />
58 <#list business_class.attributes as attribute>
59 <${macro}formGroup labelFor='${attribute.paramName}' labelKey='${i18n_open}${plugin_name}.modify_${business_class.businessClass?lower_case}.label${attribute.name}${i18n_close}' mandatory=true>
60 <#if attribute.type != "boolean">
61 <${macro}input type='text' id='${attribute.paramName}' name='${attribute.paramName}' <#if attribute.maxLength > 0> maxlength=${attribute.maxLength}</#if> value='${bra_open}${business_class.businessClass?lower_case}.${attribute.name?uncap_first}!\'\'${bra_close}' tabIndex='${attribute_index}' />
62 <#else>
63 <${macro}checkBox id="${attribute.paramName}" name="${attribute.paramName}" <#if attribute.maxLength > 0> maxlength=${attribute.maxLength}</#if> value="1" checked=${business_class.businessClass?lower_case}.${attribute.name?uncap_first}!'false' tabIndex='${attribute_index}' />
64 </#if>
65 </${macro}formGroup>
66 </#list>
67
68
69 <div class="form-group">
70 <div class="col-sm-offset-3 col-sm-9">
71 <button name="action_modify${business_class.businessClass}" class="btn btn-primary" type="submit" tabindex="${business_class.attributes?size}" >
72 ${i18n_open}portal.util.labelModify${i18n_close}
73 </button>
74 <button name="view_manage${business_class.businessClass}s" class="btn" type="submit" >
75 ${i18n_open}portal.util.labelCancel${i18n_close}
76 </button>
77 </div>
78 </div>
79
80 </fieldset>
81 </form>
82 </div>
83
84 </div>
85 <#break>
86
87 <#case 2>
88 <${include} "${application.applicationName?lower_case}_tabs.html" />
89 <${macro}tabs tab="${business_class.businessClass?lower_case}" />
90
91 <div class="row" >
92 <div class="col-sm-12">
93
94 <${macro}messages infos=infos />
95
96 <form method="post" action="jsp/site/Portal.jsp?page=${business_class.businessClass?lower_case}">
97 <button name="view_create${business_class.businessClass}" class="btn btn-primary pull-right" type="submit">
98 <span class="fa fa-plus"></span>
99 ${i18n_open}${plugin_name}.manage_${business_class.businessClass?lower_case}s.buttonAdd${i18n_close}
100 </button>
101 </form>
102
103 <h4>${i18n_open}${plugin_name}.manage_${business_class.businessClass?lower_case}s.title{i18n_close}</h4>
104
105 <table class="table table-condensed table-striped">
106 <tr>
107 <input type="hidden" id="id" name="id"/>
108 <#list business_class.attributes as attribute>
109 <td>
110 <#if attribute.type != "boolean">
111 ${bra_open}${business_class.businessClass?lower_case}.${attribute.name?uncap_first}${bra_close}
112 <#else>
113 ${bra_open}${business_class.businessClass?lower_case}.${attribute.name?uncap_first}?c${bra_close}
114 </#if>
115 </td>
116 </#list>
117 <th>${i18n_open}portal.util.labelActions${i18n_close}</th>
118 </tr>
119 <${variable}list ${business_class.businessClass?lower_case}_list as ${business_class.businessClass?lower_case} >
120 <tr>
121 <input type="hidden" id="id" name="id" />
122 <#list business_class.attributes as attribute>
123 <td>
124 ${bra_open}${business_class.businessClass?lower_case}.${attribute.name?uncap_first}${bra_close}
125 </td>
126 </#list>
127 <td>
128 <a href="jsp/site/Portal.jsp?page=${business_class.businessClass?lower_case}&view=modify${business_class.businessClass}&id=${bra_open}${business_class.businessClass?lower_case?lower_case}.id${bra_close}"
129 class="btn btn-primary btn-sm" title="${i18n_open}portal.util.labelModify${i18n_close}">
130 <span class="fa fa-pencil-square-o"></span>
131 </a>
132
133 <a href="jsp/site/Portal.jsp?page=${business_class.businessClass?lower_case}&action=confirmRemove${business_class.businessClass}&id=${bra_open}${business_class.businessClass?lower_case?lower_case}.id${bra_close}"
134 class="btn btn-danger btn-sm" title="${i18n_open}portal.util.labelDelete${i18n_close}" >
135 <span class="fa fa-trash-o"></span>
136 </a>
137 </td>
138 </tr>
139 </${variable}list>
140 </table>
141
142 </div>
143 </div>
144 <#break>
145 <#default>
146 </#switch>
147
148 <#else>
149 <div class="row">
150
151 <div class="well jumbotron">
152 <h1>Here is your default XPage <small>generated by PluginWizard</small></h1>
153 </div>
154
155 </div>
156 </#if>