Todos los resultados
All results
Asset Publisher
An error occurred while processing the template.
The string doesn't match the expected date/time/date-time format. The string to parse was: "". The expected format was: "yyyy/MM/dd". The nested reason given follows: Unparseable date: "" ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign fecha_resultado = fecha_strin... [in template "48155#48801#2706902" at line 53, column 37] ----
1<#assign language = locale.getLanguage() />
2<#if language == "es">
3 <#assign text_resultados = "Resultados" />
4 <#assign text_documentos = "Documentos" />
5<#elseif language == "eu">
6 <#assign text_resultados = "Emaitzak" />
7 <#assign text_documentos = "Dokumentuak" />
8<#elseif language == "fr">
9 <#assign text_resultados = "Les résultats" />
10 <#assign text_documentos = "Les documents" />
11<#elseif language == "en">
12 <#assign text_resultados = "Results" />
13 <#assign text_documentos = "Documents" />
14</#if>
15<section>
16<#if entries?has_content>
17 <#list entries as entry>
18 <#assign fields = entry.getAssetRenderer().getDDMFormValuesReader().getDDMFormValues().getDDMFormFieldValues()/>
19 <#-- Definición de datos-->
20 <#list fields as field>
21 <#if field.getValue()?has_content>
22 <#if field.getName()=='fecha_resultado'>
23 <#assign fecha=field.getValue().getString(locale)>
24 </#if>
25 <#if field.getName()=='color'>
26 <#assign color =field.getValue().getString(locale)>
27 </#if>
28 <#if field.getName()=='accion_id'>
29 <#assign accion_id= field.getValue().getString(locale)>
30 </#if>
31 <#if field.getName()=='area_de_accion'>
32 <#assign nombre_area= field.getValue().getString(locale)>
33 <#assign nombre_area= nombre_area?replace(']', '')>
34 <#assign nombre_area= nombre_area?replace('[', '')>
35 <#assign nombre_area= nombre_area?replace('"', '')>
36 </#if>
37 </#if>
38 </#list>
39 <#if fecha?? && fecha != ''>
40 <!-- Resultados -->
41 <div class="container m_comun text_center">
42 <h2 class="title title_into title_prin_accion c_white" style="margin-top: 0; background-color:${color}">
43 ${nombre_area} - ${text_resultados} ${accion_id}
44 </h2>
45 <#list fields as field>
46 <#if field.getValue()?has_content>
47
48 <#if field.getName()=='fecha_resultado'>
49 <div class="resultado_accion">
50 <div class="text_accion">
51 <h6 class="fecha_resultado" style="color: ${color};">
52 <#assign fecha_string=field.getValue().getString(locale)?replace("-","/")>
53 <#assign fecha_resultado = fecha_string?date("yyyy/MM/dd")?string("dd/MM/yyyy")>
54 ${fecha_resultado}
55 </h6>
56 </div>
57 <#list field.getNestedDDMFormFieldValues() as resultado>
58 <#if resultado.getName() == 'texto_resultado'>
59 <div class="texto_resultado">
60 <p>${resultado.getValue().getString(locale)}</p>
61 </div>
62 </#if>
63
64 <div class="content_accion" style="text-transform:uppercase;">
65 <#if resultado.getName() == 'documentos'>
66 <#if resultado.getValue().getString(locale) != "">
67 <#assign json= resultado.getValue().getString(locale)?json_string?replace('\\"', '\"')>
68 <#assign eval=json?eval>
69
70 <#assign title=eval.title>
71 <#assign groupid=eval.groupId>
72 <#assign uuid=eval.uuid>
73 <#assign documentos="/documents/"+groupid+"/0/"+title+"/"+uuid>
74
75
76 <a target="_blank" class="button_grey" href="${documentos}" title="">${text_documentos}</a>
77
78 </#if>
79 </#if>
80 </div>
81 </#list>
82 </div>
83 </#if>
84
85 </#if>
86 </#list>
87 </div>
88 </#if>
89 </#list>
90</#if>
91</section>
92
93<style>
94 .texto_resultado{
95 text-align: center;
96 }
97</style>