Rev 1830 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1830 | Rev 1848 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> |
1 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> |
2 | - | ||
3 | <%-- |
- | |
4 | customPane Need component customPane in variable customPane |
- | |
5 | docAppSelector selector usualy an html ID for ng-app example #docReport |
- | |
6 | Attribute in request classTextComponent |
- | |
7 | Attribute in request classImageComponent |
- | |
8 | --%> |
- | |
9 | <script type="text/ng-template" id="customPane_renderer.html"> |
- | |
10 | <div class="customPane clearfix"> |
- | |
11 | <style> |
2 | <style> |
12 | .buttonTools |
3 | .buttonTools |
13 | { |
4 | { |
14 | border: 1px solid gray; |
5 | border: 1px solid gray; |
15 | background-color: lightgray; |
6 | background-color: lightgray; |
16 | padding: 5px; |
7 | padding: 5px; |
17 | } |
8 | } |
18 | .customPane |
9 | .customComponent |
19 | { |
10 | { |
20 | padding: 15px; |
11 | padding: 0; |
21 | } |
12 | } |
22 | .documentSimpleComponent |
13 | .documentSimpleComponent |
23 | { |
14 | { |
24 | border: 1px solid gray; |
15 | border: 1px solid gray; |
25 | padding: 5px; |
16 | padding: 5px; |
Line 30... | Line 21... | ||
30 | border: 1px solid gray; |
21 | border: 1px solid gray; |
31 | padding: 5px; |
22 | padding: 5px; |
32 | } |
23 | } |
33 | </style> |
24 | </style> |
34 | 25 | ||
- | 26 | ||
- | 27 | <%-- |
|
- | 28 | customPane Need component customPane in variable customPane |
|
- | 29 | docAppSelector selector usualy an html ID for ng-app example #docReport |
|
- | 30 | --%> |
|
- | 31 | <script type="text/ng-template" id="pt_estgp_estgweb_utils_documentBuilder_CustomPane"> |
|
- | 32 | <div class="customComponent clearfix component"> |
|
35 | <div class="buttonTools clearfix"> |
33 | <div class="buttonTools clearfix"> |
36 | <button class="btn btn-default pullleft" type="button" ng-click="addText(report.introSection.customPane)"> |
34 | <button class="btn btn-default pullleft" type="button" ng-click="addText(comp)"> |
37 | <span class="glyphicon glyphicon-plus"></span> |
35 | <span class="glyphicon glyphicon-plus"></span> |
38 | <span class="glyphicon glyphicon-font"></span> |
36 | <span class="glyphicon glyphicon-font"></span> |
39 | </button> |
37 | </button> |
40 | 38 | ||
41 | <button class="btn btn-default pullleft" type="button" ng-click="addImage(report.introSection.customPane)"> |
39 | <button class="btn btn-default pullleft" type="button" ng-click="addImage(comp)"> |
42 | <span class="glyphicon glyphicon-plus"></span> |
40 | <span class="glyphicon glyphicon-plus"></span> |
43 | <span class="glyphicon glyphicon-picture"></span> |
41 | <span class="glyphicon glyphicon-picture"></span> |
44 | </button> |
42 | </button> |
45 | - | ||
46 | Secção personalizada |
43 | Secção personalizada |
47 | </div> |
44 | </div> |
48 | <div class="customPane"> |
45 | <div class="componentBody"> |
- | 46 | <div class="clearfix" ng-repeat="subComp in comp.components" ng-init="parent=comp;comp=subComp" ng-include="class2id(subComp)"> |
|
49 | 47 | ||
- | 48 | </div> |
|
- | 49 | <div> |
|
- | 50 | </div> |
|
- | 51 | </script> |
|
50 | 52 | ||
51 | <div class="clearfix documentSimpleComponent" ng-repeat="comp in customPane.components"> |
53 | <script type="text/ng-template" id="pt_estgp_estgweb_utils_documentBuilder_ImageComponent"> |
52 | <div class="buttonTools clearfix"> |
54 | <div class="imageComponent component"> |
- | 55 | <div ng-if="parent['@class']=='pt.estgp.estgweb.utils.documentBuilder.CustomPane'" class="buttonTools clearfix"> |
|
53 | <button class="btn btn-danger pullright" type="button" ng-click="removeComponent($index,customPane.components)"> |
56 | <button class="btn btn-danger pull-right" type="button" ng-click="removeComponent($index,parent.components)"> |
54 | <span class="glyphicon glyphicon-remove"></span> |
57 | <span class="glyphicon glyphicon-remove"></span> |
55 | </button> |
58 | </button> |
56 | <label ng-if="comp.class=='${classTextComponent}'">Componente de Texto</label> |
- | |
57 | <label ng-if="comp.class=='${classImageComponent}'">Componente de Imagem (Use esta funcinalidade para adicionar gráficos ou tabelas que ache necessárias)</label> |
59 | <label>Componente de Imagem (Use esta funcinalidade para adicionar gráficos ou tabelas que ache necessárias)</label> |
58 | - | ||
59 | </div> |
60 | </div> |
60 | 61 | ||
61 | <div class="componentBody" ng-if="comp.class=='${classImageComponent}'"> |
62 | <div class="componentBody" ng-if="comp['@class']=='pt.estgp.estgweb.utils.documentBuilder.ImageComponent'"> |
62 | <div class="form-group clearfix" ng-if="comp.image.identifier"> |
63 | <div class="form-group clearfix" ng-if="comp.image.identifier"> |
63 | <label class="col-md-2 control-label">Legenda</label> |
64 | <label class="col-md-2 control-label">Legenda</label> |
64 | <div class="col-md-10"> |
65 | <div class="col-md-10"> |
65 | <input type="text" class="form-control" rows="10" ng-model="comp.title"> |
66 | <input type="text" class="form-control" rows="10" ng-model="comp.title"> |
66 | </div> |
67 | </div> |
Line 103... | Line 104... | ||
103 | </center> |
104 | </center> |
104 | </div> |
105 | </div> |
105 | </div> |
106 | </div> |
106 | </div> |
107 | </div> |
107 | </div> |
108 | </div> |
- | 109 | </div> |
|
- | 110 | </script> |
|
108 | 111 | ||
- | 112 | <script type="text/ng-template" id="pt_estgp_estgweb_utils_documentBuilder_TextComponent"> |
|
- | 113 | <div class="textComponent component"> |
|
109 | 114 | ||
- | 115 | <div ng-if="parent['@class']=='pt.estgp.estgweb.utils.documentBuilder.CustomPane'" class="buttonTools clearfix"> |
|
110 | <div class="componentBody" ng-if="comp.class=='${classTextComponent}'"> |
116 | <button class="btn btn-danger pull-right" type="button" ng-click="removeComponent($index,parent.components)"> |
- | 117 | <span class="glyphicon glyphicon-remove"></span> |
|
- | 118 | </button> |
|
- | 119 | <label>Componente de Texto</label> |
|
- | 120 | </div> |
|
111 | <div class="form-group clearfix"> |
121 | <div class="componentBody"> |
- | 122 | <div ng-if="parent['@class']=='pt.estgp.estgweb.utils.documentBuilder.CustomPane'" class="form-group clearfix"> |
|
112 | <label class="col-md-2 control-label">Titulo</label> |
123 | <label class="col-md-2 control-label">Titulo de Parágrafo</label> |
113 | <div class="col-md-10"> |
124 | <div class="col-md-10"> |
114 | <input type="text" class="form-control" rows="10" ng-model="comp.title"> |
125 | <input type="text" class="form-control" rows="10" ng-model="comp.title"> |
115 | </div> |
126 | </div> |
116 | </div> |
127 | </div> |
117 | <div class="form-group clearfix"> |
128 | <div class="form-group clearfix"> |
Line 122... | Line 133... | ||
122 | </textarea> |
133 | </textarea> |
123 | </div> |
134 | </div> |
124 | </div> |
135 | </div> |
125 | </div> |
136 | </div> |
126 | </div> |
137 | </div> |
127 | <div> |
- | |
128 | </script> |
138 | </script> |
129 | 139 |