@cronapp/templates 2.9.1 → 2.9.2-SP.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/file/crud/phonegap_crud_view/__FileName__.view.html.ftl +9 -9
- package/package.json +1 -1
- package/project/M/cronapp-lyceum-project-mobile-cordova/__copydata.ftl +29 -0
- package/project/M/cronapp-lyceum-project-mobile-cordova/__linksInherit +9 -0
- package/project/M/cronapp-lyceum-project-mobile-cordova/project.svg +190 -0
- package/project/M/cronapp-lyceum-project-mobile-cordova/src/main/resources/application.properties.ftl +27 -0
- package/project/M/cronapp-lyceum-project-mobile-cordova/template.properties +52 -0
- package/project/M/cronapp-lyceum-project-mobile-cordova/template_en_US.properties +32 -0
- package/project/M/cronapp-lyceum-project-mobile-cordova/template_pt_BR.properties +31 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/www/www-autenticacao/views/logged/user.view.html +4 -4
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/www/www-autenticacao/views/login.view.html.ftl +80 -31
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/www/www-autenticacao/views/public/__copydata.ftl +8 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/www/www-autenticacao/views/public/menu.view.html +2 -2
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/www/www-sem-autenticacao/views/public/menu.view.html +2 -2
- package/project/M/cronapp-rad-project-mobile-cordova/template.properties +1 -0
- package/project/W/cronapp-rad-project/Dockerfile +11 -7
- package/project/W/cronapp-rad-project/diagram/app.umlcd +2 -2
- package/project/W/cronapp-rad-project/pom.xml.ftl +7 -0
- package/project/W/cronapp-rad-project/src/main/java/app/entity/ApplicationUser.java +2 -2
- package/project/W/cronapp-rad-project/src/main/java/app/entity/Login.java +1 -1
- package/project/W/cronapp-rad-project/src/main/webapp-autenticacao/webapp/js/blockly/privacy/Cookies.blockly +43 -2
- package/project/W/cronapp-rad-project/src/main/webapp-autenticacao/webapp/js/blockly/privacy/Cookies.blockly.js +22 -0
- package/project/W/cronapp-rad-project/src/main/webapp-autenticacao/webapp/views/logged/home.view.html.ftl +2 -2
- package/project/W/cronapp-rad-project/src/main/webapp-autenticacao/webapp/views/login.view.html.ftl +53 -51
- package/project/W/cronapp-rad-project/src/main/webapp-autenticacao/webapp/views/public/__copydata.ftl +7 -0
- package/project/W/cronapp-rad-project/src/main/webapp-autenticacao/webapp/views/public/home.view.html.ftl +1 -1
- package/project/W/cronapp-rad-project/src/main/webapp-autenticacao/webapp/views/public/privacy/cookies.view.html +1 -1
- package/project/W/cronapp-rad-project/src/main/webapp-sem-autenticacao/webapp/views/home.view.html.ftl +2 -2
- package/templates/low-code/data-layer/ENTITIES.ftl +42 -22
- package/templates/low-code/data-layer/ENTITIESPK.ftl +4 -4
- package/file/view.html/EmptyCrudHtml/__FileName__.view.html.ftl +0 -69
- package/file/view.html/EmptyCrudHtml/template.properties +0 -7
- package/file/view.html/EmptyCrudHtml/template_pt_BR.properties +0 -4
- package/file/view.html/EmptyCrudHtml/view.html.png +0 -0
|
@@ -18,14 +18,14 @@
|
|
|
18
18
|
* @generated
|
|
19
19
|
*/
|
|
20
20
|
public ${classClass.name} set${fieldName?cap_first}(${field.type} ${fieldName}) {
|
|
21
|
-
<#if field.isEncryption() &&
|
|
21
|
+
<#if field.isEncryption() && field.getPasswordPolicy() != "full">
|
|
22
22
|
this.${fieldName} = ${fieldName}.startsWith(ENCRYPT) ? ${fieldName} : new BCryptPasswordEncoder().encode(${fieldName});
|
|
23
23
|
<#else>
|
|
24
24
|
this.${fieldName} = ${fieldName};
|
|
25
|
-
</#if>
|
|
25
|
+
</#if>
|
|
26
26
|
return this;
|
|
27
27
|
}
|
|
28
|
-
</#macro>
|
|
28
|
+
</#macro>
|
|
29
29
|
|
|
30
30
|
package ${entityPackage}<#if subPackage??>.${subPackage}</#if>;
|
|
31
31
|
|
|
@@ -39,13 +39,16 @@ import cronapi.rest.security.CronappSecurity;
|
|
|
39
39
|
<#if clazz.rest>
|
|
40
40
|
import cronapi.swagger.CronappSwagger;
|
|
41
41
|
</#if>
|
|
42
|
-
<#if clazz.hasRowVersion() || clazz.hasXML()>
|
|
42
|
+
<#if clazz.hasRowVersion() || clazz.hasXML() || clazz.hasUUID()>
|
|
43
43
|
import org.eclipse.persistence.annotations.Convert;
|
|
44
44
|
import org.eclipse.persistence.annotations.Converter;
|
|
45
45
|
</#if>
|
|
46
46
|
<#if clazz.hasRowVersion()>
|
|
47
47
|
import cronapi.database.VersionConverter;
|
|
48
48
|
</#if>
|
|
49
|
+
<#if clazz.hasUUID()>
|
|
50
|
+
import cronapi.database.UUIDConverter;
|
|
51
|
+
</#if>
|
|
49
52
|
<#if clazz.hasUseOuterJoin()?? && clazz.hasUseOuterJoin()>
|
|
50
53
|
import org.eclipse.persistence.annotations.JoinFetch;
|
|
51
54
|
import org.eclipse.persistence.annotations.JoinFetchType;
|
|
@@ -68,9 +71,8 @@ import cronapi.database.ByteConverter;
|
|
|
68
71
|
import cronapp.framework.persistence.ValidPassword;
|
|
69
72
|
import cronapp.framework.persistence.ValidPasswords;
|
|
70
73
|
import cronapp.framework.persistence.PasswordEncoderListener;
|
|
71
|
-
<#else>
|
|
72
|
-
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
|
|
73
74
|
</#if>
|
|
75
|
+
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
|
|
74
76
|
</#if>
|
|
75
77
|
<#list clazz.imports as import>
|
|
76
78
|
import ${import};
|
|
@@ -104,7 +106,7 @@ import org.eclipse.persistence.annotations.*;
|
|
|
104
106
|
</#if>
|
|
105
107
|
_0", columnNames={
|
|
106
108
|
<#list clazz.fieldsUniqueKey as field>
|
|
107
|
-
"${field.dbFieldName}"
|
|
109
|
+
"${field.dbFieldName}"
|
|
108
110
|
<#if field?has_next>
|
|
109
111
|
,
|
|
110
112
|
</#if>
|
|
@@ -125,7 +127,7 @@ import org.eclipse.persistence.annotations.*;
|
|
|
125
127
|
@TenantDiscriminatorColumns({
|
|
126
128
|
</#if>
|
|
127
129
|
<#list clazz.multitententFields as field>
|
|
128
|
-
@TenantDiscriminatorColumn(name = "${field.dbFieldName}", contextProperty = "${field.multitenantContext}")<#if field_has_next>,</#if>
|
|
130
|
+
@TenantDiscriminatorColumn(name = "${field.dbFieldName?replace("\"", "\\\"")}", contextProperty = "${field.multitenantContext}")<#if field_has_next>,</#if>
|
|
129
131
|
</#list>
|
|
130
132
|
<#if (clazz.multitententFields?size > 1)>
|
|
131
133
|
})
|
|
@@ -147,17 +149,23 @@ import org.eclipse.persistence.annotations.*;
|
|
|
147
149
|
converterClass=ByteConverter.class
|
|
148
150
|
)
|
|
149
151
|
</#if>
|
|
152
|
+
<#if clazz.hasUUID()>
|
|
153
|
+
@Converter(
|
|
154
|
+
name="uuid",
|
|
155
|
+
converterClass=UUIDConverter.class
|
|
156
|
+
)
|
|
157
|
+
</#if>
|
|
150
158
|
<#if clazz.hasStrongPassword() && clazz.hasEncryption()>
|
|
151
159
|
@ValidPasswords({
|
|
152
160
|
<#list clazz.fields as field>
|
|
153
|
-
<#if field.isEncryption()>
|
|
161
|
+
<#if field.isEncryption() && field.getPasswordPolicy() == "full">
|
|
154
162
|
@ValidPassword(passwordProperty = "${field.name}", passwordHistoryProperty = "${field.name}History"),
|
|
155
163
|
</#if>
|
|
156
164
|
</#list>
|
|
157
|
-
})
|
|
165
|
+
})
|
|
158
166
|
</#if>
|
|
159
167
|
public class ${clazz.name} implements Serializable {
|
|
160
|
-
<#if clazz.hasEncryption()
|
|
168
|
+
<#if clazz.hasEncryption()>
|
|
161
169
|
/**
|
|
162
170
|
* Variável privada para verificação da criptofrafia
|
|
163
171
|
*
|
|
@@ -185,6 +193,9 @@ public class ${clazz.name} implements Serializable {
|
|
|
185
193
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
186
194
|
</#if>
|
|
187
195
|
</#if>
|
|
196
|
+
<#if (field.isUUID())!false>
|
|
197
|
+
@Convert("uuid")
|
|
198
|
+
</#if>
|
|
188
199
|
<#if field.isVersion()>
|
|
189
200
|
@Version
|
|
190
201
|
<#elseif field.isDate()>
|
|
@@ -197,7 +208,7 @@ public class ${clazz.name} implements Serializable {
|
|
|
197
208
|
<#if (field.relationNames?size == 1)>
|
|
198
209
|
<#list field.relationNames?keys as key>
|
|
199
210
|
<#if key??>
|
|
200
|
-
@JoinColumn(name="${key}", nullable = ${field.nullable?c}, referencedColumnName = "${field.relationNames[key]}", insertable=${field.insertable?c}, updatable=${field.updatable?c})
|
|
211
|
+
@JoinColumn(name="${(key)?replace("\"", "\\\"")}", nullable = ${field.nullable?c}, referencedColumnName = "${field.relationNames[key]?replace("\"", "\\\"")}", insertable=${field.insertable?c}, updatable=${field.updatable?c})
|
|
201
212
|
</#if>
|
|
202
213
|
</#list>
|
|
203
214
|
<#elseif (field.relationNames?size > 1)>
|
|
@@ -205,14 +216,17 @@ public class ${clazz.name} implements Serializable {
|
|
|
205
216
|
@JoinColumns({
|
|
206
217
|
<#list field.relationNames?keys as key>
|
|
207
218
|
<#if key??>
|
|
208
|
-
@JoinColumn(name="${key}", nullable = ${field.nullable?c}, referencedColumnName = "${field.relationNames[key]}", insertable=${field.insertable?c}, updatable=${field.updatable?c})
|
|
219
|
+
@JoinColumn(name="${(key)?replace("\"", "\\\"")}", nullable = ${field.nullable?c}, referencedColumnName = "${field.relationNames[key]?replace("\"", "\\\"")}", insertable=${field.insertable?c}, updatable=${field.updatable?c})
|
|
209
220
|
<#if (i>1)>,</#if>
|
|
210
221
|
</#if>
|
|
211
222
|
<#assign i = i-1>
|
|
212
223
|
</#list>
|
|
213
224
|
})
|
|
214
225
|
<#else>
|
|
215
|
-
|
|
226
|
+
<#if field.columnDefinition?? && field.columnDefinition == "TEXT" && persistenceProvider?upper_case == "ORACLE">
|
|
227
|
+
@Lob
|
|
228
|
+
</#if>
|
|
229
|
+
@Column(name = "${field.dbFieldName?replace("\"", "\\\"")}", nullable = ${field.nullable?c}<#if !field.primaryKey>, unique = ${field.unique?c}</#if><#if field.length??>, length=${field.length?c}</#if><#if field.precision??>, precision=${field.precision?c}</#if><#if field.scale??>, scale=${field.scale?c}</#if>, insertable=${field.insertable?c}, updatable=${field.updatable?c}<#if field.columnDefinition?? && (field.columnDefinition != "TEXT" || persistenceProvider?upper_case != "ORACLE")>, columnDefinition = "${field.columnDefinition}"</#if>)
|
|
216
230
|
</#if>
|
|
217
231
|
${field.modifier} <#if field.arrayRelation>${field.type}<#else>${field.type}</#if> ${name}<#if field.defaultValue?has_content> = ${field.defaultValue}<#elseif field.primaryKey && field.generationType?? && field.generationType == "UUID"> = UUID.randomUUID().toString().toUpperCase()</#if>;
|
|
218
232
|
</#if>
|
|
@@ -225,6 +239,9 @@ public class ${clazz.name} implements Serializable {
|
|
|
225
239
|
*/
|
|
226
240
|
<#if (field.rowVersion)!false>
|
|
227
241
|
@Convert("version")
|
|
242
|
+
</#if>
|
|
243
|
+
<#if (field.isUUID())!false>
|
|
244
|
+
@Convert("uuid")
|
|
228
245
|
</#if>
|
|
229
246
|
<#if (field.XML)!false>
|
|
230
247
|
@Convert("bytes")
|
|
@@ -237,7 +254,7 @@ public class ${clazz.name} implements Serializable {
|
|
|
237
254
|
<#if (field.relationNames?size == 1)>
|
|
238
255
|
<#list field.relationNames?keys as key>
|
|
239
256
|
<#if key??>
|
|
240
|
-
@JoinColumn(name="${key}", nullable = ${field.nullable?c}, referencedColumnName = "${field.relationNames[key]}", insertable=${field.insertable?c}, updatable=${field.updatable?c}<#if field.cascade>, foreignKey = @ForeignKey(name = "<#if tableName??>${tableName}<#else>${clazz.name?upper_case}</#if>_${key?upper_case}_${field.dbTableRelationClazz}_${field.relationNames[key]?upper_case}", foreignKeyDefinition = "FOREIGN KEY (${key}) REFERENCES ${field.dbTableRelationClazz} (${field.relationNames[key]}) ON DELETE CASCADE")<#elseif field.fkName?has_content>, foreignKey = @ForeignKey(name = "${field.fkName}", foreignKeyDefinition = "FOREIGN KEY (${key}) REFERENCES ${field.dbTableRelationClazz} (${field.relationNames[key]})")</#if>)
|
|
257
|
+
@JoinColumn(name="${(key)?replace("\"", "\\\"")}", nullable = ${field.nullable?c}, referencedColumnName = "${field.relationNames[key]?replace("\"", "\\\"")}", insertable=${field.insertable?c}, updatable=${field.updatable?c}<#if field.cascade>, foreignKey = @ForeignKey(name = "<#if tableName??>${tableName?replace("\"", "\\\"")}<#else>${(clazz.name?upper_case)?replace("\"", "\\\"")}</#if>_${(key?upper_case)?replace("\"", "\\\"")}_${field.dbTableRelationClazz?replace("\"", "\\\"")}_${(field.relationNames[key]?upper_case)?replace("\"", "\\\"")}", foreignKeyDefinition = "FOREIGN KEY (${(key)?replace("\"", "\\\"")}) REFERENCES ${field.dbTableRelationClazz} (${field.relationNames[key]?replace("\"", "\\\"")}) ON DELETE CASCADE")<#elseif field.fkName?has_content>, foreignKey = @ForeignKey(name = "${field.fkName?replace("\"", "\\\"")}", foreignKeyDefinition = "FOREIGN KEY (${(key)?replace("\"", "\\\"")}) REFERENCES ${field.dbTableRelationClazz} (${field.relationNames[key]?replace("\"", "\\\"")})")</#if>)
|
|
241
258
|
</#if>
|
|
242
259
|
</#list>
|
|
243
260
|
<#elseif (field.relationNames?size > 1)>
|
|
@@ -245,14 +262,14 @@ public class ${clazz.name} implements Serializable {
|
|
|
245
262
|
@JoinColumns({
|
|
246
263
|
<#list field.relationNames?keys as key>
|
|
247
264
|
<#if key??>
|
|
248
|
-
@JoinColumn(name="${key}", nullable = ${field.nullable?c}, referencedColumnName = "${field.relationNames[key]}", insertable=${field.insertable?c}, updatable=${field.updatable?c}<#if field.fkName?has_content>, foreignKey = @ForeignKey(name = "${field.fkName}", foreignKeyDefinition = "FOREIGN KEY (${key}) REFERENCES ${field.dbTableRelationClazz} (${field.relationNames[key]})")</#if>)
|
|
265
|
+
@JoinColumn(name="${(key)?replace("\"", "\\\"")}", nullable = ${field.nullable?c}, referencedColumnName = "${field.relationNames[key]?replace("\"", "\\\"")}", insertable=${field.insertable?c}, updatable=${field.updatable?c}<#if field.fkName?has_content>, foreignKey = @ForeignKey(name = "${field.fkName?replace("\"", "\\\"")}", foreignKeyDefinition = "FOREIGN KEY (${(key)?replace("\"", "\\\"")}) REFERENCES ${field.dbTableRelationClazz} (${field.relationNames[key]?replace("\"", "\\\"")})")</#if>)
|
|
249
266
|
<#if (i>1)>,</#if>
|
|
250
267
|
</#if>
|
|
251
268
|
<#assign i = i-1>
|
|
252
269
|
</#list>
|
|
253
270
|
})
|
|
254
271
|
<#elseif field.arrayRelation>
|
|
255
|
-
@OneToMany(fetch = FetchType.LAZY, mappedBy="${field.mappedBy}", insertable=${field.insertable?c}, updatable=${field.updatable?c})
|
|
272
|
+
@OneToMany(fetch = FetchType.LAZY, mappedBy="${field.mappedBy?replace("\"", "\\\"")}", insertable=${field.insertable?c}, updatable=${field.updatable?c})
|
|
256
273
|
<#else>
|
|
257
274
|
<#if field.transient>
|
|
258
275
|
@Transient
|
|
@@ -266,7 +283,10 @@ public class ${clazz.name} implements Serializable {
|
|
|
266
283
|
<#elseif field.isTimestamp()>
|
|
267
284
|
@Temporal(TemporalType.TIMESTAMP)
|
|
268
285
|
</#if>
|
|
269
|
-
|
|
286
|
+
<#if field.columnDefinition?? && field.columnDefinition == "TEXT" && persistenceProvider?upper_case == "ORACLE">
|
|
287
|
+
@Lob
|
|
288
|
+
</#if>
|
|
289
|
+
@Column(name = "${field.dbFieldName?replace("\"", "\\\"")}", nullable = ${field.nullable?c}<#if !field.primaryKey>, unique = ${field.unique?c}</#if><#if field.length??>, length=${field.length?c}</#if><#if field.precision??>, precision=${field.precision?c}</#if><#if field.scale??>, scale=${field.scale?c}</#if>, insertable=${field.insertable?c}, updatable=${field.updatable?c}<#if field.columnDefinition?? && (field.columnDefinition != "TEXT" || persistenceProvider?upper_case != "ORACLE")>, columnDefinition = "${field.columnDefinition}"</#if>)
|
|
270
290
|
</#if>
|
|
271
291
|
</#if>
|
|
272
292
|
<#if field.getUseOuterJoin()>
|
|
@@ -276,7 +296,7 @@ public class ${clazz.name} implements Serializable {
|
|
|
276
296
|
@JsonIgnore
|
|
277
297
|
</#if>
|
|
278
298
|
<#if field.isCloudStorage()>
|
|
279
|
-
@CronapiCloud(type = "${field.getStorageType()}", value="${field.getStorageKey()}", id="${field.getStorageId()}", secret="${field.getStorageSecret()}")
|
|
299
|
+
@CronapiCloud(type = "${field.getStorageType()}", value="${field.getStorageKey()}", id="${field.getStorageId()}", secret="${field.getStorageSecret()}", regionAWS="${field.getRegionAWS()}")
|
|
280
300
|
</#if>
|
|
281
301
|
<#if field.isFileDataBase()>
|
|
282
302
|
@CronapiByteHeaderSignature
|
|
@@ -288,11 +308,11 @@ public class ${clazz.name} implements Serializable {
|
|
|
288
308
|
${field.modifier} <#if field.arrayRelation>${field.type}<#else>${field.type}</#if> ${field.name}<#if field.defaultValue?has_content> = ${field.defaultValue}</#if>;
|
|
289
309
|
</#if>
|
|
290
310
|
|
|
291
|
-
<#if field.isEncryption()>
|
|
311
|
+
<#if field.isEncryption() && field.getPasswordPolicy() == "full">
|
|
292
312
|
/**
|
|
293
313
|
* @generated
|
|
294
314
|
*/
|
|
295
|
-
<@single_line>@Column(name = "${field.dbFieldName}_history"
|
|
315
|
+
<@single_line>@Column(name = "${field.dbFieldName?replace("\"", "\\\"")}_history"
|
|
296
316
|
<#if !field.insertable>, insertable = ${field.insertable?c}</#if>
|
|
297
317
|
<#if !field.updatable>, updatable = ${field.updatable?c}</#if>
|
|
298
318
|
)</@single_line>
|
|
@@ -309,7 +329,7 @@ public class ${clazz.name} implements Serializable {
|
|
|
309
329
|
|
|
310
330
|
<#list clazz.fields as field>
|
|
311
331
|
<@getter_setter clazz field "${field.name}" />
|
|
312
|
-
<#if field.isEncryption()>
|
|
332
|
+
<#if field.isEncryption() && field.getPasswordPolicy() == "full">
|
|
313
333
|
<@getter_setter clazz field "${field.name}History" />
|
|
314
334
|
</#if>
|
|
315
335
|
</#list>
|
|
@@ -32,7 +32,7 @@ public class ${clazz.name + "PK"} implements Serializable {
|
|
|
32
32
|
<#assign name = "${field.name}">
|
|
33
33
|
<#if field.getProperty("FOREIGN")??>
|
|
34
34
|
<#if name?contains('_')>
|
|
35
|
-
<#assign name = "${field.name?string[0..field.name?
|
|
35
|
+
<#assign name = "${field.name?string[0..field.name?last_index_of('_') - 1]}">
|
|
36
36
|
</#if>
|
|
37
37
|
</#if>
|
|
38
38
|
|
|
@@ -53,7 +53,7 @@ public class ${clazz.name + "PK"} implements Serializable {
|
|
|
53
53
|
<#assign name = "${field.name}">
|
|
54
54
|
<#if field.getProperty("FOREIGN")??>
|
|
55
55
|
<#if name?contains('_')>
|
|
56
|
-
<#assign name = "${field.name?string[0..field.name?
|
|
56
|
+
<#assign name = "${field.name?string[0..field.name?last_index_of('_') - 1]}">
|
|
57
57
|
</#if>
|
|
58
58
|
</#if>
|
|
59
59
|
/**
|
|
@@ -88,7 +88,7 @@ ${clazz.name + "PK"} object = (${clazz.name + "PK"})obj;
|
|
|
88
88
|
<#assign name = "${field.name}">
|
|
89
89
|
<#if field.getProperty("FOREIGN")??>
|
|
90
90
|
<#if name?contains('_')>
|
|
91
|
-
<#assign name = "${field.name?string[0..field.name?
|
|
91
|
+
<#assign name = "${field.name?string[0..field.name?last_index_of('_') - 1]}">
|
|
92
92
|
</#if>
|
|
93
93
|
</#if>
|
|
94
94
|
if (${name} != null ? !${name}.equals(object.${name}) : object.${name} != null) return false;
|
|
@@ -106,7 +106,7 @@ ${clazz.name + "PK"} object = (${clazz.name + "PK"})obj;
|
|
|
106
106
|
<#assign name = "${field.name}">
|
|
107
107
|
<#if field.getProperty("FOREIGN")??>
|
|
108
108
|
<#if name?contains('_')>
|
|
109
|
-
<#assign name = "${field.name?string[0..field.name?
|
|
109
|
+
<#assign name = "${field.name?string[0..field.name?last_index_of('_') - 1]}">
|
|
110
110
|
</#if>
|
|
111
111
|
</#if>
|
|
112
112
|
<#if !field.isTypePrimitive()>
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
<h2 class="component-holder text-left h3 title">Title</h2>
|
|
2
|
-
|
|
3
|
-
<datasource data-component="crn-datasource" filter="" name="MainDatasource" entity="" keys="" rows-per-page="100" class="" schema="" lazy=""></datasource>
|
|
4
|
-
|
|
5
|
-
<div role="search" ng-hide="MainDatasource.inserting || MainDatasource.editing" data-component="crn-datasource-filter" id="crn-datasource-filter" class="">
|
|
6
|
-
<div class="form-group">
|
|
7
|
-
<label for="textinput-filter" class="">{{"template.crud.search" | translate}}</label>
|
|
8
|
-
<input type="text" ng-model="vars.search" id="textinput-filter" class="form-control k-textbox" cronapp-filter="" cronapp-filter-operator="" cronapp-filter-caseinsensitive="false" cronapp-filter-autopost="true" crn-datasource="MainDatasource" value="" placeholder="{{'template.crud.search' | translate}}">
|
|
9
|
-
</div>
|
|
10
|
-
</div>
|
|
11
|
-
|
|
12
|
-
<section ng-hide="MainDatasource.editing || MainDatasource.inserting" class="component-holder ng-binding ng-scope" data-component="crn-cron-grid" id="cron-crn-grid-search">
|
|
13
|
-
<cron-grid options="{"dataSourceScreen":{},"allowPaging":true,"allowSorting":true,"allowGrouping":false,"allowSelectionTotalPageToShow":true,"allowRefreshGrid":true,"allowSelectionRow":true,"editable":"datasource","columns":[],"toolBarButtons":[{"type":"Native","title":"create"}],"details":[]}" ng-model="vars.gridmain" class="" style="">
|
|
14
|
-
</cron-grid>
|
|
15
|
-
</section>
|
|
16
|
-
<div data-component="crn-form" id="crn-form-form">
|
|
17
|
-
<section class="form" ng-show="MainDatasource.editing || MainDatasource.inserting">
|
|
18
|
-
<form crn-datasource="MainDatasource" class="">
|
|
19
|
-
<div class="tool-bar" ng-hide="datasource.editing || datasource.inserting">
|
|
20
|
-
<div class="component-holder ng-scope" data-component="crn-button" id="crn-button-startInserting">
|
|
21
|
-
<button class="btn k-button btn-block btn-default btn-fab" ng-click="datasource.startInserting()" aria-label="{{'StartInserting' | translate}}" xattr-fullsize="btn-block" xattr-theme="btn-default" xattr-disabled="">
|
|
22
|
-
<i class="glyphicon glyphicon-plus" icon-theme=""></i>
|
|
23
|
-
</button>
|
|
24
|
-
</div>
|
|
25
|
-
<div class="component-holder ng-scope" data-component="crn-button" id="crn-button-startEditing">
|
|
26
|
-
<button class="btn k-button btn-block btn-default btn-fab" ng-click="datasource.startEditing()" aria-label="{{'startEditing' | translate}}" xattr-fullsize="btn-block" xattr-theme="btn-default" xattr-disabled="">
|
|
27
|
-
<i class="glyphicon glyphicon-pencil" icon-theme=""></i>
|
|
28
|
-
</button>
|
|
29
|
-
</div>
|
|
30
|
-
<div class="component-holder ng-scope" data-component="crn-button" id="crn-button-previous">
|
|
31
|
-
<button class="btn k-button btn-block btn-default btn-fab" ng-click="datasource.previous()" ng-disabled="!datasource.hasPrevious()" aria-label="{{'Before' | translate}}" xattr-fullsize="btn-block" xattr-theme="btn-default" xattr-disabled="">
|
|
32
|
-
<i class="glyphicon glyphicon-chevron-left" icon-theme=""></i>
|
|
33
|
-
</button>
|
|
34
|
-
</div>
|
|
35
|
-
<div class="component-holder ng-scope" data-component="crn-button" id="crn-button-next">
|
|
36
|
-
<button class="btn k-button btn-block btn-default btn-fab" ng-click="datasource.next()" ng-disabled="!datasource.hasNext()" aria-label="{{'Next' | translate}}" xattr-fullsize="btn-block" xattr-theme="btn-default" xattr-disabled="">
|
|
37
|
-
<i class="glyphicon glyphicon-chevron-right" icon-theme=""></i>
|
|
38
|
-
</button>
|
|
39
|
-
</div>
|
|
40
|
-
<div class="component-holder ng-scope" data-component="crn-button" id="crn-button-remove">
|
|
41
|
-
<button class="btn k-button btn-block btn-danger btn-fab" ng-click="datasource.remove()" aria-label="{{'Remove' | translate}}" xattr-fullsize="btn-block" xattr-theme="btn-danger" xattr-disabled="">
|
|
42
|
-
<i class="glyphicon glyphicon-remove" icon-theme=""></i>
|
|
43
|
-
</button>
|
|
44
|
-
</div>
|
|
45
|
-
</div>
|
|
46
|
-
<div class="active-bar" ng-hide="!datasource.editing && !datasource.inserting">
|
|
47
|
-
<div class="component-holder ng-scope" data-component="crn-button" id="btn_crud_post_${model.random}">
|
|
48
|
-
<button class="btn k-button btn-block btn-success btn-fab" ng-click="datasource.post()" aria-label="{{'SaveChanges' | translate}}" xattr-fullsize="btn-block" xattr-theme="btn-success" xattr-disabled="">
|
|
49
|
-
<i class="glyphicon glyphicon-ok" icon-theme=""></i>
|
|
50
|
-
</button>
|
|
51
|
-
</div>
|
|
52
|
-
<div class="component-holder ng-scope" data-component="crn-button" id="btn_crud_cancel_${model.random}">
|
|
53
|
-
<button class="btn k-button btn-block btn-danger btn-fab" ng-click="datasource.cancel()" aria-label="{{'CancelChanges' | translate}}" xattr-fullsize="btn-block" xattr-theme="btn-danger" xattr-disabled="">
|
|
54
|
-
<i class="glyphicon glyphicon-ban-circle" icon-theme=""></i>
|
|
55
|
-
</button>
|
|
56
|
-
</div>
|
|
57
|
-
</div>
|
|
58
|
-
<br>
|
|
59
|
-
<fieldset ng-disabled="!datasource.editing && !datasource.inserting">
|
|
60
|
-
<div class="component-holder ng-binding ng-scope" data-component="crn-textinput" id="crn-textinput-98075">
|
|
61
|
-
<div class="form-group">
|
|
62
|
-
<label for="input5045">Label</label>
|
|
63
|
-
<input type="text" mask="" mask-placeholder="" ng-required="false" ng-model="vars.input5045" class="form-control k-textbox" id="input5045" placeholder="Placeholder text">
|
|
64
|
-
</div>
|
|
65
|
-
</div>
|
|
66
|
-
</fieldset>
|
|
67
|
-
</form>
|
|
68
|
-
</section>
|
|
69
|
-
</div>
|
|
Binary file
|