gt_html_admin_v5.html

 1   <#switch template_type>
 2   <#case 0>
 3   <#if business_class?? >
 4   <${include} "${admin_feature.featureName?lower_case}_tabs.html" />
 5   <${macro}tabs tab="${business_class.businessClass?lower_case}" />
 6   
 7   <${macro}rowBoxHeader i18nTitleKey="${plugin_name}.create_${business_class.businessClass?lower_case}.title">
 8       <form class="form-horizontal" method="post" name="create_${business_class.businessClass?lower_case}" action="jsp/admin/plugins/${plugin_name}/Manage${business_class.businessClass}s.jsp">
 9           <${macro}messages errors=errors />
 10           <input type="hidden" id="id" name="id"/>
 11           <input type="hidden" value="${bra_open}token${bra_close}" name="token" />
 12   
 13           <#list business_class.attributes as attribute>
 14           <${macro}fieldInputText i18nLabelKey="${plugin_name}.create_${business_class.businessClass?lower_case}.label${attribute.name}" inputName="${attribute.paramName}" <#if attribute.notNull>mandatory=true</#if> value="${bra_open}${business_class.businessClass?lower_case}.${attribute.name?uncap_first}!''${bra_close}" i18nHelpBlockKey="${plugin_name}.create_${business_class.businessClass?lower_case}.label${attribute.name}.help" />
 15           </#list>
 16           <${macro}actionButtons button1Name="action_create${business_class.businessClass}" button2Name="view_manage${business_class.businessClass}s"/>
 17       </form>
 18   </${macro}rowBoxHeader>
 19   </#if>
 20   <#break>
 21   <#case 1>
 22   <#if business_class?? >
 23   <${include} "${admin_feature.featureName?lower_case}_tabs.html" />
 24   <${macro}tabs tab="${business_class.businessClass?lower_case}" />
 25   
 26   <${macro}rowBoxHeader i18nTitleKey="${plugin_name}.modify_${business_class.businessClass?lower_case}.title">
 27       <form class="form-horizontal" method="post" name="modify_${business_class.businessClass?lower_case}" action="jsp/admin/plugins/${plugin_name}/Manage${business_class.businessClass}s.jsp">
 28           <${macro}messages errors=errors />
 29           <input type="hidden" id="id" name="id" value="${bra_open}${business_class.businessClass?lower_case}.id${bra_close}"/>
 30           <input type="hidden" value="${bra_open}token${bra_close}" name="token" />
 31   
 32           <#list business_class.attributes as attribute>
 33           <${macro}fieldInputText i18nLabelKey="${plugin_name}.modify_${business_class.businessClass?lower_case}.label${attribute.name}" inputName="${attribute.paramName}" <#if attribute.notNull>mandatory=true</#if> value="${bra_open}${business_class.businessClass?lower_case}.${attribute.name?uncap_first}${bra_close}" i18nHelpBlockKey="${plugin_name}.modify_${business_class.businessClass?lower_case}.label${attribute.name}.help" />
 34           </#list>
 35           <${macro}actionButtons button1Name="action_modify${business_class.businessClass}" button2Name="view_manage${business_class.businessClass}s"/>
 36       </form>
 37   </${macro}rowBoxHeader>
 38   </#if>
 39   <#break>
 40   <#case 2>
 41   <#if business_class?? >
 42   <${include} "${admin_feature.featureName?lower_case}_tabs.html" />
 43   <${macro}tabs tab="${business_class.businessClass?lower_case}" />
 44   
 45   <${macro}rowBox>
 46       <${macro}boxHeader i18nTitleKey="${plugin_name}.manage_${business_class.businessClass?lower_case}s.title">
 47           <${macro}headerButtons>
 48   
 49   
 50           <form class="form-inline pull-right" method="post" name="manage_${business_class.businessClass?lower_case}s" action="jsp/admin/plugins/${plugin_name}/Manage${business_class.businessClass}s.jsp">
 51               <!-- Add pull-right to class1 -->
 52               <${macro}actionButtons button1Name="view_create${business_class.businessClass}" icon1="icon-plus icon-white" i18nValue1Key="${plugin_name}.manage_${business_class.businessClass?lower_case}s.buttonAdd" />
 53           </form>
 54   
 55       </${macro}headerButtons>
 56       </${macro}boxHeader>
 57       <${macro}boxBody>
 58       <${macro}messages infos=infos />
 59       <${macro}paginationAdmin paginator=paginator combo=1 />
 60   
 61       <${macro}table>
 62           <tr>
 63               <input type="hidden" id="id" name="id"/>
 64               <#list business_class.attributes as attribute>
 65               <th>${i18n_open}${plugin_name}.manage_${business_class.businessClass?lower_case}s.column${attribute.name}${i18n_close}</th>
 66               </#list>
 67               <th>${i18n_open}portal.util.labelActions${i18n_close}</th>
 68           </tr>
 69           <${macro}tableHeadBodySeparator />
 70               <${variable}list ${business_class.businessClass?lower_case}_list as ${business_class.businessClass?lower_case} >
 71           <tr>
 72               <input type="hidden" id="id" name="id"/>
 73               <#list business_class.attributes as attribute>
 74               <td>
 75                   ${bra_open}${business_class.businessClass?lower_case}.${attribute.name?uncap_first}${bra_close}
 76               </td>
 77           </#list>
 78           <td>
 79               <a href="jsp/admin/plugins/${plugin_name}/Manage${business_class.businessClass}s.jsp?view=modify${business_class.businessClass}&id=${bra_open}${business_class.businessClass?lower_case?lower_case}.id${bra_close}"
 80                  class="btn btn-primary btn-sm" title="${i18n_open}portal.util.labelModify${i18n_close}">
 81                   <i class="fa fa-pencil"></i>
 82               </a>
 83   
 84               <a href="jsp/admin/plugins/${plugin_name}/Manage${business_class.businessClass}s.jsp?action=confirmRemove${business_class.businessClass}&id=${bra_open}${business_class.businessClass?lower_case?lower_case}.id${bra_close}"
 85                  class="btn btn-danger btn-sm" title="${i18n_open}portal.util.labelDelete${i18n_close}" >
 86                   <i class="fa fa-trash"></i>
 87               </a>
 88           </td>
 89           </tr>
 90           </${variable}list>
 91       </${macro}table>
 92   
 93       <${macro}paginationAdmin paginator=paginator />
 94   
 95     </${macro}boxBody>
 96   </${macro}rowBox>
 97   </#if>
 98   <#break>
 99   <#default>
 100   </#switch>