Ruta de navegación
Pasajes
Pasajes
Se ha producido un error al procesar la plantilla.
The following has evaluated to null or missing: ==> industriaService.findByName(NombreDeLaIndustria.getData()) [in template "61606#61645#69535" at line 5, column 17] ---- Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: industria = industriaService.findByNa... [in template "61606#61645#69535" at line 5, column 5] ----
1<!-- assets/portal-publico/categorias/templates/categoria.ftl -->
2
3<#assign
4 industriaService = serviceLocator.findService("com.sencillito.publico.portal.service.IndustriaLocalService")
5 industria = industriaService.findByName(NombreDeLaIndustria.getData())
6
7 industriaConvenioService = serviceLocator.findService("com.sencillito.publico.portal.service.IndustriaConvenioLocalService")
8 convenios = industriaConvenioService.findByIndustriaId(industria.getId(), false)
9
10 imagesPath = themeDisplay.getPathThemeImages()
11 prefix = "ppt"
12
13 valor = -1
14/>
15
16<section class="${prefix}-centro-de-ayuda ${prefix}-categoria container-secondary">
17
18
19 <div class="container mx-2 ${prefix}-categoria-header mb-3">
20 <div class="row h-100 m-0 p-0">
21 <div class="col-sm-12 my-auto">
22 <span class="${prefix}-categoria-header__title"> ${industria.getNombre()}</span>
23 <#if industria.getLogoPath()?? && industria.getLogoPath() != "">
24 <img class="${prefix}-categoria-header__image" src="${industria.getLogoPath()}" />
25 </#if>
26 </div>
27 </div>
28 </div>
29
30 <div class="container">
31 <div class="row">
32 <#if convenios?has_content>
33 <#list convenios as convenio1>
34
35 <#if convenio1.getShortUtilityName()?has_content>
36 <#if convenio1.getUtilityNumber() == 6500>
37 <#assign valor = convenio1.getId()/>
38 </#if>
39 </#if>
40 </#list>
41 <#list convenios as convenio>
42 <#if convenio.getShortUtilityName()?has_content>
43 <#assign url = themeDisplay.getPortalURL() + "/pagos-de-la-factura?industriaId=" + industria.getId() + "&convenioId=" + convenio.getId() />
44 <#if convenio.getConvenioFatherId()== 0>
45 <div class="custom-col">
46 <a title="${convenio.getShortUtilityName()}" href="${url}" class="${prefix}-centro-de-ayuda-item text-center">
47 <div class="${prefix}-centro-de-ayuda-item__content ${prefix}-categorias-item__content">
48 <div class="${prefix}-categorias__image-wrapper">
49 <#if convenio.getLogoPath()?? && convenio.getLogoPath() != "">
50 <img class="${prefix}-categorias__image" src="${convenio.getLogoPath()}" />
51 <#else>
52 <img class="${prefix}-categorias__image" src="${imagesPath}/shared/globals/default_image.png" />
53 </#if>
54 </div>
55 <h4 class="${prefix}-centro-de-ayuda-item__title font-weight-normal">${convenio.getShortUtilityName()}</h4>
56 </div>
57 </a>
58 </div>
59 <#else>
60 <#if convenio.getConvenioFatherId()== valor>
61 <div class="custom-col">
62 <a title="${convenio.getShortUtilityName()}" href="${url}" class="${prefix}-centro-de-ayuda-item text-center">
63 <div class="${prefix}-centro-de-ayuda-item__content ${prefix}-categorias-item__content">
64 <div class="${prefix}-categorias__image-wrapper">
65 <#if convenio.getLogoPath()?? && convenio.getLogoPath() != "">
66 <img class="${prefix}-categorias__image" src="${convenio.getLogoPath()}" />
67 <#else>
68 <img class="${prefix}-categorias__image" src="${imagesPath}/shared/globals/default_image.png" />
69 </#if>
70 </div>
71 <h4 class="${prefix}-centro-de-ayuda-item__title font-weight-normal">${convenio.getShortUtilityName()}</h4>
72 </div>
73 </a>
74 </div>
75 </#if>
76 </#if>
77
78
79 </#if>
80 </#list>
81 </#if>
82 </div>
83 </div>
84
85</section>
86
87<script>
88
89 $(function() {
90
91 shave('.${prefix}-centro-de-ayuda-item__title', 44);
92
93 })
94</script>