Difference between revisions of "Template:Suit"
From cm2.liecourt.com
(Fill database) |
(Fill database) |
||
Line 279: | Line 279: | ||
{{#arraymap:{{#arrayprint:@cases}}|,|@@@|<!-- | {{#arraymap:{{#arrayprint:@cases}}|,|@@@|<!-- | ||
--><div id="cases-{{#var:@casecounter2}}" class="tab-pane {{#ifeq:{{#var:@casecounter2}}|0|active}}"><!-- | --><div id="cases-{{#var:@casecounter2}}" class="tab-pane {{#ifeq:{{#var:@casecounter2}}|0|active}}"><!-- | ||
− | -->{{#vardefine:@workflow|{{#ask:[[@@@]]|?Lie|?Case ID|?Topic|?Filed by|?Jurors|?Juror amount|?Description|?Markup|?Locations|?Accusation|format=array|link=none}} }}<!-- | + | -->{{#vardefine:@workflow|{{#ask:[[@@@]]|?Lie|?Case ID|?Topic|?Filed by|?Jurors|?Juror amount|?Description|?Markup|?Locations|?Accusation|?uuid|format=array|link=none}} }}<!-- |
-->{{Item responsive |Cols={{#var:@cols|4-8}} | -->{{Item responsive |Cols={{#var:@cols|4-8}} | ||
|1=<b>Lie</b> | |1=<b>Lie</b> | ||
Line 304: | Line 304: | ||
}} | }} | ||
{{Item responsive |Cols=4-8 | {{Item responsive |Cols=4-8 | ||
− | |1=<b>Evidence of lie appearance</b> | + | |1=<b>Evidence of lie appearance:</b>{{#vardefine:@uuid|{{#show:{{{Workflow|}}}|?uuid|link=none}} }} |
− | |2={{#vardefine:@counter|0}}{{#arraymap:{{#ask:[[Class::Case file]][[Case file: | + | |2={{#vardefine:@counter|0}}{{#arraymap:{{#ask:[[Class::Case file]][[Case file::{{#var:@uuid}}]]|?=|?Modification date|?Type|Format=array|link=none}}|,|@@@|{{#widget:link |type=a|href=#image-modal-{{#var:@counter}} |datatoggle=modal |class=attachment |text={{#ifeq:{{#explode:@@@|<PROP>|2}}|pdf|{{fa|file-pdf}}|{{fa|image}} }} }}<!-- |
-->{{Modal | -->{{Modal | ||
|Targetid=image-modal-{{#var:@counter}} | |Targetid=image-modal-{{#var:@counter}} | ||
|Dialog class=image-modal | |Dialog class=image-modal | ||
− | |ModalHeading=Image | + | |ModalHeading={{#ifeq:{{#explode:@@@|<PROP>|2}}|pdf|Pdf|Image}} |
− | |BodyText=[[{{#explode:@@@|<PROP>|0}}]]Uploaded on: {{#explode:@@@|<PROP>|1}} | + | |BodyText={{#ifeq:{{#explode:@@@|<PROP>|2}}|pdf|{{#widget:pdf|pdf={{filepath:{{#explode:{{#explode:@@@|<PROP>|0}}|:|1}} }} }}|[[{{#explode:@@@|<PROP>|0}}]]}}Uploaded on: {{#explode:@@@|<PROP>|1}} |
|FooterText={{#widget:link |type=a|href=#image-modal-{{#var:@counter}} |datatoggle=modal |class=btn btn-submit |text=close}} | |FooterText={{#widget:link |type=a|href=#image-modal-{{#var:@counter}} |datatoggle=modal |class=btn btn-submit |text=close}} | ||
|Hide link=Yes | |Hide link=Yes | ||
Line 373: | Line 373: | ||
}} | }} | ||
{{Item responsive |Cols=4-8 | {{Item responsive |Cols=4-8 | ||
− | |1=<b>Evidence of lie appearance</b> | + | |1=<b>Evidence of lie appearance</b>{{#vardefine:@uuid|{{#show:{{{Workflow|}}}|?uuid|link=none}} }} |
− | |2={{#vardefine:@counter|0}}{{#arraymap:{{#ask:[[Class::Case file]][[Case file::{{ | + | |2={{#vardefine:@counter|0}}{{#arraymap:{{#ask:[[Class::Case file]][[Case file::{{#var:@uuid}}]]|?=|?Modification date|?Type|Format=array|link=none}}|,|@@@|{{#widget:link |type=a|href=#image-modal-{{#var:@counter}} |datatoggle=modal |class=attachment |text={{#ifeq:{{#explode:@@@|<PROP>|2}}|pdf|{{fa|file-pdf}}|{{fa|image}} }} }}<!-- |
-->{{Modal | -->{{Modal | ||
|Targetid=image-modal-{{#var:@counter}} | |Targetid=image-modal-{{#var:@counter}} | ||
|Dialog class=image-modal | |Dialog class=image-modal | ||
− | |ModalHeading=Image | + | |ModalHeading={{#ifeq:{{#explode:@@@|<PROP>|2}}|pdf|Pdf|Image}} |
− | |BodyText=[[{{#explode:@@@|<PROP>|0}}]]Uploaded on: {{#explode:@@@|<PROP>|1}} | + | |BodyText={{#ifeq:{{#explode:@@@|<PROP>|2}}|pdf|{{#widget:pdf|pdf={{filepath:{{#explode:{{#explode:@@@|<PROP>|0}}|:|1}} }} }}|[[{{#explode:@@@|<PROP>|0}}]]}}Uploaded on: {{#explode:@@@|<PROP>|1}} |
|FooterText={{#widget:link |type=a|href=#image-modal-{{#var:@counter}} |datatoggle=modal |class=btn btn-submit |text=close}} | |FooterText={{#widget:link |type=a|href=#image-modal-{{#var:@counter}} |datatoggle=modal |class=btn btn-submit |text=close}} | ||
|Hide link=Yes | |Hide link=Yes |
Revision as of 14:07, 27 May 2020
This is the Suit template. It should be called in the following format:
{{Suit |Case ID= |Title= |Workflow= }}