1,5 → 1,9 |
<%@ page contentType="text/html;charset=UTF-8" language="java" %> |
<style> |
.sections |
{ |
padding-left: 20px; |
} |
.buttonTools |
{ |
border: 1px solid gray; |
23,7 → 27,12 |
} |
</style> |
|
<!--Require templateObj--> |
<script type="text/ng-template" id="callDocumentTemplate"> |
|
<div ng-include="class2id(templateObj)"></div> |
</script> |
|
<%-- |
customPane Need component customPane in variable customPane |
docAppSelector selector usualy an html ID for ng-app example #docReport |
46,9 → 55,9 |
<div class="clearfix" ng-repeat="subComp in comp.components" ng-init="parent=comp;comp=subComp" ng-include="class2id(subComp)"> |
|
</div> |
<div> |
</div> |
</div></div> |
</script> |
|
<script type="text/ng-template" id="pt_estgp_estgweb_utils_documentBuilder_ImageComponent"> |
<div class="imageComponent component"> |
<div ng-if="parent['@class']=='pt.estgp.estgweb.utils.documentBuilder.CustomPane'" class="buttonTools clearfix"> |
58,7 → 67,7 |
<label>Componente de Imagem (Use esta funcinalidade para adicionar gráficos ou tabelas que ache necessárias)</label> |
</div> |
|
<div class="componentBody" ng-if="comp['@class']=='pt.estgp.estgweb.utils.documentBuilder.ImageComponent'"> |
<div class="componentBody"> |
<div class="form-group clearfix" ng-if="comp.image.identifier"> |
<label class="col-md-2 control-label">Legenda</label> |
<div class="col-md-10"> |
134,4 → 143,33 |
</div> |
</div> |
</div> |
</script> |
|
<!-- |
@section objeto com seccoes e componentes |
@optional @chapter capitulo do documento para esta seccao para contcatenar às subsections |
--> |
<script type="text/ng-template" id="pt_estgp_estgweb_utils_documentBuilder_DocumentSection"> |
<div class="sections"> |
<ul class="nav nav-tabs"> |
<li ng-model="section" class="separatorSectionNav" |
ng-class="{ active : subSection.active}" |
ng-repeat="subSection in section.sections"> |
<a ng-click="showSep(section,subSection)"> {{$chapter}}{{$index+1}} - {{subSection.title}}</a> |
</li> |
</ul> |
<div ng-model="subSection" |
ng-class="{ hidden: !subSection.active }" |
ng-repeat="subSection in section.sections" |
class="separatorSection clearfix"> |
<div ng-repeat="comp in subSection.components" |
ng-include="class2id(comp)"> |
|
</div> |
<div ng-if="subSection.sections" |
ng-init="section=subSection;$chapter=$chapter+($index+1)+'.'" |
ng-include="class2id(subSection)"> |
</div> |
</div> |
</div> |
</script> |