gt_html_xpage_v5.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               <div class="form-group">
 21                   <label class="col-sm-3 control-label" for="${attribute.paramName}" >${i18n_open}${plugin_name}.create_${business_class.businessClass?lower_case}.label${attribute.name}${i18n_close} * :</label>
 22                   <div class="col-sm-9">
 23                       <input class="form-control" 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 &gt; 0> maxlength="${attribute.maxLength}"</#if> tabindex="${attribute_index}" />
 24                       <span class="help-block">${i18n_open}${plugin_name}.create_${business_class.businessClass?lower_case}.label${attribute.name}.help${i18n_close}</span>
 25                   </div>
 26               </div>
 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               <div class="form-group">
 60                   <label class="col-sm-3 control-label" for="${attribute.paramName}" >${i18n_open}${plugin_name}.modify_${business_class.businessClass?lower_case}.label${attribute.name}${i18n_close} * :</label>
 61                   <div class="col-sm-9">
 62                       <input class="form-control" 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}" />
 63                   </div>
 64               </div>
 65               </#list>
 66   
 67   
 68               <div class="form-group">
 69                   <div class="col-sm-offset-3 col-sm-9">
 70                       <button name="action_modify${business_class.businessClass}" class="btn btn-primary" type="submit" tabindex="${business_class.attributes?size}" >
 71                           ${i18n_open}portal.util.labelModify${i18n_close}
 72                       </button>
 73                       <button name="view_manage${business_class.businessClass}s" class="btn" type="submit" >
 74                           ${i18n_open}portal.util.labelCancel${i18n_close}
 75                       </button>	
 76                   </div>
 77               </div>
 78   
 79           </fieldset>
 80       </form>
 81       </div>  
 82   
 83   </div>
 84   <#break>
 85   
 86   <#case 2>
 87   <${include} "${application.applicationName?lower_case}_tabs.html" />
 88   <${macro}tabs tab="${business_class.businessClass?lower_case}" />
 89   
 90   <div class="row" >
 91       <div class="col-sm-12">
 92   
 93           <${macro}messages infos=infos />
 94   
 95           <form method="post"  action="jsp/site/Portal.jsp?page=${business_class.businessClass?lower_case}">
 96               <button name="view_create${business_class.businessClass}" class="btn btn-primary pull-right" type="submit">
 97                   <span class="fa fa-plus"></span>
 98                   ${i18n_open}${plugin_name}.manage_${business_class.businessClass?lower_case}s.buttonAdd${i18n_close}
 99               </button>
 100           </form>
 101   
 102       <h4>${i18n_open}${plugin_name}.manage_${business_class.businessClass?lower_case}s.title{i18n_close}</h4>
 103           
 104       <table class="table table-condensed table-striped">
 105           <tr>
 106               <input type="hidden" id="id" name="id"/>
 107               <#list business_class.attributes as attribute>
 108               <th>${i18n_open}${plugin_name}.manage_${business_class.businessClass?lower_case}s.column${attribute.name}${i18n_close}</th>
 109               </#list>
 110               <th>${i18n_open}portal.util.labelActions${i18n_close}</th>
 111           </tr>
 112               <${variable}list ${business_class.businessClass?lower_case}_list as ${business_class.businessClass?lower_case} >
 113           <tr>
 114               <input type="hidden" id="id" name="id" />
 115               <#list business_class.attributes as attribute>
 116               <td>
 117                   ${bra_open}${business_class.businessClass?lower_case}.${attribute.name?uncap_first}${bra_close}
 118               </td>    
 119           </#list>
 120           <td>
 121               <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}"
 122                  class="btn btn-primary btn-sm" title="${i18n_open}portal.util.labelModify${i18n_close}">
 123                   <span class="fa fa-pencil-square-o"></span>
 124               </a>
 125   
 126               <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}"
 127                  class="btn btn-danger btn-sm" title="${i18n_open}portal.util.labelDelete${i18n_close}" >
 128                   <span class="fa fa-trash-o"></span>
 129               </a>
 130           </td>
 131           </tr>
 132           </${variable}list>
 133       </table>
 134       
 135       </div>
 136   </div>
 137   <#break>
 138   <#default>
 139   </#switch>  
 140   
 141   <#else>
 142   <div class="row">
 143       
 144       <div class="well jumbotron">
 145           <h1>Here is your default XPage <small>generated by PluginWizard</small></h1>
 146       </div>
 147       
 148   </div>
 149   </#if>