pluginwizard_create_application.html

 1   <#include "sidebar.html" />   
 2   
 3   <div class="row">
 4   	<div class="container">
 5   		<div class="panel panel-default">
 6   			<div class="panel-body">
 7   				<div class="col-md-3">             
 8   					<@sidebar step="xpage" />
 9   					<div class="well">         
 10   						#i18n{pluginwizard.pluginwizard_create_application.pageHelp}    
 11   					</div>  
 12   				</div>
 13   
 14   				<div class="col-md-9">
 15   					<form class="form-horizontal" method="post" action="jsp/site/Portal.jsp" >
 16   						<input type="hidden" name="page" value="pluginwizard" />
 17   						<fieldset>
 18   							<legend>#i18n{pluginwizard.pluginwizard_create_application.pageTitle}</legend>
 19   
 20   							 <#include "errors_handler.html" />
 21   
 22   							<div class="form-group">
 23   								<label class="col-md-3 control-label">#i18n{pluginwizard.pluginwizard_create_application.labelApplicationName} :</label>
 24   								<div class="col-md-9">   
 25   									<input class="form-control input-md" type="text" name="application_name" value="<#if application.applicationName??>${application.applicationName}<#else>${plugin_model.pluginName?keep_after("-")?lower_case}</#if>" />
 26   								</div>    
 27   							</div>
 28   
 29   							<div class="form-group">
 30   								<label class="col-md-3 control-label">#i18n{pluginwizard.pluginwizard_create_application.labelApplicationClass} :</label>
 31   								<div class="col-md-9">
 32   									<input class="form-control input-md" type="text" name="application_class" value="<#if application.applicationClass??>${application.applicationClass}<#else>${plugin_model.pluginName?keep_after("-")?cap_first}App</#if>"  />
 33   								</div>
 34   							</div>
 35   							 
 36   							 <div class="form-group">
 37   								<label class="col-md-3 control-label">#i18n{pluginwizard.pluginwizard_create_application.labelBusinessClass} :  </label>        
 38   								<div class="col-md-9">
 39   									<#list combo_business_classes?sort_by('name') as business>
 40   										<div class="checkbox">
 41   										<#assign used = false>
 42   										<#list plugin_applications as plugin_application> 
 43   											<#if plugin_application.getIdBusinessClasses()?seq_contains(business.code?number)>
 44   												<#assign used = true>
 45   											</#if>
 46   										</#list>
 47   										<#if used>
 48   											<label><input type="checkbox" disabled="disabled" name="id_business_class${business.code}" value="${business.code}" /> &nbsp; ${business.name}</label><br />
 49   										<#else>
 50   											<label><input type="checkbox" name="id_business_class${business.code}" value="${business.code}" />&nbsp;${business.name}</label><br />
 51   										</#if>
 52   										</div>
 53   									</#list>
 54   								</div>   
 55   							</div>
 56   
 57   							<div class="form-group">
 58   								<div class="col-md-offset-3 col-md-9">
 59   								<button type="submit" name="action_createApplication" class="btn btn-primary">
 60   									#i18n{pluginwizard.pluginwizard_create_application.buttonCreateApplication}
 61   								</button>                   
 62   								<button type="submit" name="view_manageApplications" class="btn btn-default">
 63   									#i18n{pluginwizard.pluginwizard_create_application.buttonBack}
 64   								</button>
 65   							</div>
 66   							</div> 
 67   						</fieldset>
 68   					</form>
 69   				</div>    
 70   				<div class="clearfix"></div>
 71   			</div>
 72   		</div>
 73   	</div>
 74   </div>