gt_html_admin_v6.html

 1   <#switch template_type>
 2   <#case 0>
 3   <#if business_class?? >
 4   <${include} "${admin_feature.featureName?lower_case}_tabs.html" />
 5   <${macro}tabs2 tab="${business_class.businessClass?lower_case}" />
 6   <${macro}box>
 7   	<${macro}boxHeader title='${i18n_open}${plugin_name}.create_${business_class.businessClass?lower_case}.title${i18n_close}' />
 8   	<${macro}boxBody>
 9       <${macro}tform name='create_${business_class.businessClass?lower_case}' action='jsp/admin/plugins/${pluginPath}/Manage${business_class.businessClass}s.jsp'>
 10   
 11           <${macro}messages errors=errors />
 12           <input type="hidden" id="id" name="id"/>
 13           <input type="hidden" value="${bra_open}token${bra_close}" name="token" />
 14   
 15           <#list business_class.attributes as attribute>
 16   				<${macro}formGroup labelFor='${attribute.paramName}' labelKey='${i18n_open}${plugin_name}.modify_${business_class.businessClass?lower_case}.label${attribute.name}${i18n_close}' mandatory=true>
 17   				<#if attribute.type != "boolean">
 18             		<${macro}input type='text' id='${attribute.paramName}' name='${attribute.paramName}' <#if attribute.maxLength &gt; 0> maxlength=${attribute.maxLength}</#if> value='${bra_open}${business_class.businessClass?lower_case}.${attribute.name?uncap_first}!\'\'${bra_close}' tabIndex='${attribute_index}' />
 19   				<#else>
 20   				<${macro}checkBox id="${attribute.paramName}" name="${attribute.paramName}" <#if attribute.maxLength &gt; 0> maxlength=${attribute.maxLength}</#if> value="1" checked=${business_class.businessClass?lower_case}.${attribute.name?uncap_first}!'false' tabIndex='${attribute_index}' />
 21   			    </#if>
 22   				</${macro}formGroup>
 23   				</#list>
 24   				
 25   				<${macro}actionButtons button1Name="action_create${business_class.businessClass}" button2Name="view_manage${business_class.businessClass}"/>
 26       </${macro}tform>
 27   	</${macro}boxBody>
 28   </${macro}box>
 29   </#if>  
 30   <#break>
 31   	
 32   <#case 1>
 33   <#if business_class?? >
 34   <${include} "${admin_feature.featureName?lower_case}_tabs.html" />
 35   <${macro}tabs2 tab="${business_class.businessClass?lower_case}" />
 36   
 37   <${macro}box>
 38   	<${macro}boxHeader title='${i18n_open}${plugin_name}.modify_${business_class.businessClass?lower_case}.title${i18n_close}' />
 39   	<${macro}boxBody>
 40       <${macro}tform class="form-horizontal" method="post" name="modify_${business_class.businessClass?lower_case}" action="jsp/admin/plugins/${pluginPath}/Manage${business_class.businessClass}s.jsp">
 41   			<${macro}messages errors=errors />
 42   			<input type="hidden" id="id" name="id" value="${bra_open}${business_class.businessClass?lower_case}.id${bra_close}"/>
 43   			<input type="hidden" value="${bra_open}token${bra_close}" name="token" />
 44   			
 45   			<#list business_class.attributes as attribute>
 46   				<${macro}formGroup labelFor='${attribute.paramName}' labelKey='${i18n_open}${plugin_name}.modify_${business_class.businessClass?lower_case}.label${attribute.name}${i18n_close}' mandatory=true>
 47   				<#if attribute.type != "boolean">
 48             		<${macro}input type='text' id='${attribute.paramName}' name='${attribute.paramName}' <#if attribute.maxLength &gt; 0> maxlength=${attribute.maxLength}</#if> value='${bra_open}${business_class.businessClass?lower_case}.${attribute.name?uncap_first}!\'\'${bra_close}' tabIndex='${attribute_index}' />
 49   				<#else>
 50   				<${macro}checkBox id="${attribute.paramName}" name="${attribute.paramName}" <#if attribute.maxLength &gt; 0> maxlength=${attribute.maxLength}</#if> value="1" checked=${business_class.businessClass?lower_case}.${attribute.name?uncap_first}!'false' tabIndex='${attribute_index}' />
 51   			    </#if>
 52   				</${macro}formGroup>
 53   				</#list>
 54           <${macro}actionButtons button1Name="action_modify${business_class.businessClass}" button2Name="view_manage${business_class.businessClass}"/>
 55       </${macro}tform>
 56   	</${macro}boxBody>
 57   </${macro}box>
 58   </#if>
 59   <#break>
 60   
 61   <#case 2>
 62   <#if business_class?? > 
 63   <${include} "${admin_feature.featureName?lower_case}_tabs.html" />
 64   <${macro}tabs2 tab="${business_class.businessClass?lower_case}" />
 65   
 66   <${macro}box>
 67   	<${macro}boxHeader title='${i18n_open}${plugin_name}.manage_${business_class.businessClass?lower_case}.title${i18n_close}' boxTools=true>
 68   		<${macro}tform class='form-inline pull-right' name='manage_${business_class.businessClass?lower_case}' action='jsp/admin/plugins/${pluginPath}/Manage${business_class.businessClass}s.jsp'>
 69   			<${macro}button type='submit' name='view_create${business_class.businessClass}' buttonIcon='plus' title='${i18n_open}${plugin_name}.manage_${business_class.businessClass?lower_case}s.buttonAdd${i18n_close}' />
 70   		</${macro}tform>
 71   	</${macro}boxHeader>
 72   	<${macro}boxBody>    
 73       <${macro}messages infos=infos />
 74       <${macro}paginationAdmin paginator=paginator combo=1 />
 75       <div class="clearfix"></div>
 76       <${macro}table>
 77           <tr>
 78               <input type="hidden" id="id" name="id"/>
 79               <#list business_class.attributes as attribute>
 80               <th>${i18n_open}${plugin_name}.manage_${business_class.businessClass?lower_case}s.column${attribute.name}${i18n_close}</th>
 81               </#list>
 82               <th>${i18n_open}portal.util.labelActions${i18n_close}</th>
 83           </tr>
 84           <${macro}tableHeadBodySeparator />
 85               <${variable}list ${business_class.businessClass?lower_case}_list as ${business_class.businessClass?lower_case} >
 86           <tr>
 87               <input type="hidden" id="id" name="id"/>
 88               <#list business_class.attributes as attribute>
 89               <#if attribute.type != "boolean">
 90   							${bra_open}${business_class.businessClass?lower_case}.${attribute.name?uncap_first}${bra_close}
 91   							<#else>
 92   							${bra_open}${business_class.businessClass?lower_case}.${attribute.name?uncap_first}?c${bra_close}
 93   							</#if>
 94           </#list>
 95           <td>
 96   			<${macro}aButton href='jsp/admin/plugins/${pluginPath}/Manage${business_class.businessClass}s.jsp?view=modify${business_class.businessClass}&id=${bra_open}${business_class.businessClass?lower_case?lower_case}.id${bra_close}' title='${i18n_open}portal.util.labelModify${i18n_close}' buttonIcon='pencil' showTitle=false />
 97   						
 98   			<${macro}aButton href='jsp/admin/plugins/${pluginPath}/Manage${business_class.businessClass}s.jsp?action=confirmRemove${business_class.businessClass}&id=${bra_open}${business_class.businessClass?lower_case?lower_case}.id${bra_close}' title='${i18n_open}portal.util.labelDelete${i18n_close}' buttonIcon='trash' color='btn-danger' showTitle=false />
 99   
 100           </td>
 101           </tr>
 102           </${variable}list>
 103       </${macro}table>
 104   
 105       <${macro}paginationAdmin paginator=paginator />
 106   
 107     </${macro}boxBody>
 108   </${macro}box>
 109   </#if>  
 110   <#break>
 111   <#default>
 112   </#switch>