Difference between revisions of "Template:Verdict"

From cm2.liecourt.com
(Undo revision 3250 by Merel (talk))
(Tag: Undo)
 
(6 intermediate revisions by 3 users not shown)
Line 126: Line 126:
 
}
 
}
 
#verdict-form input.btn-submit {
 
#verdict-form input.btn-submit {
     background: #339966;
+
     background-color: #339966;
 
     color: white;
 
     color: white;
 
     float: right;
 
     float: right;
Line 210: Line 210:
 
{{#vardefine:@allowed|{{#ifeq:User:{{CURRENTLOGGEDUSER}}|{{{User|}}}|Yes|{{#ifsysop:Yes|No}}}}}}
 
{{#vardefine:@allowed|{{#ifeq:User:{{CURRENTLOGGEDUSER}}|{{{User|}}}|Yes|{{#ifsysop:Yes|No}}}}}}
 
{{#ifeq:{{#var:@allowed}}|Yes|{{#vardefine:@stage|{{#show:{{{Workflow|}}}|?Stage|link=none}} }}
 
{{#ifeq:{{#var:@allowed}}|Yes|{{#vardefine:@stage|{{#show:{{{Workflow|}}}|?Stage|link=none}} }}
{{#vardefine:@myparticipantpage|{{#ask:[[Class::Participant]] [[User::User:{{CURRENTLOGGEDUSER}}]] [[Case ID::{{{Case ID|}}}]]|link=none }} }}<!--  
+
{{#vardefine:@myparticipantpage|{{#ask:[[Class::Participant]] [[User::User:{{CURRENTLOGGEDUSER}}]] [[Case ID::{{{Case ID|}}}]]|limit=1|link=none|searchlabel= }} }}<!--  
 
  --><wsform action="addToWiki" id="verdict-form"  mwreturn="{{#if:{{#var:@myparticipantpage}}|{{fullurl:{{#var:@myparticipantpage}} }}|{{#if:{{{Participant|}}}|{{fullurl:{{{Participant|}}} }}|{{#if:{{#urlget:Participant}}|{{fullurl:{{#urldecode:{{#urlget:Participant}} }} }}|{{fullurl:{{FULLPAGENAME}} }} }} }} }}" >
 
  --><wsform action="addToWiki" id="verdict-form"  mwreturn="{{#if:{{#var:@myparticipantpage}}|{{fullurl:{{#var:@myparticipantpage}} }}|{{#if:{{{Participant|}}}|{{fullurl:{{{Participant|}}} }}|{{#if:{{#urlget:Participant}}|{{fullurl:{{#urldecode:{{#urlget:Participant}} }} }}|{{fullurl:{{FULLPAGENAME}} }} }} }} }}" >
 
<wscreate mwwrite="{{FULLPAGENAME}}" mwtemplate="Verdict" />
 
<wscreate mwwrite="{{FULLPAGENAME}}" mwtemplate="Verdict" />
Line 264: Line 264:
 
}}}}<!--
 
}}}}<!--
 
-->{{#vardefine:@decision |Enter your decision here}}<!--
 
-->{{#vardefine:@decision |Enter your decision here}}<!--
-->{{#vardefine:@support |Enter your additional support here}}
+
-->{{#vardefine:@support |Enter your additional support here}}<!--
 +
 
 +
case information
 +
--><div class="box"><div class="d-flex justify-content-between"><h2>Case information</h2> {{#ifeq:{{{Role|}}}|Plaintiff|{{#widget:link|type=a|text=Edit|class=btn-green|href={{fullurl:edit case|id={{#replace:{{{Workflow|}}}|Workflow/| }} }} }} }}</div><!--
 +
-->{{#ifeq:{{#show:{{{Workflow}}}|?Stage }}|Settled|| {{#if:{{#var:@judge}}|<!--
 +
 
 +
 
 +
--> }}<!--
 +
 
 +
-->{{#vardefine:@classQ|{{#show:{{{Workflow|}}}|?Class request|link=none}} }}{{#if:{{#var:@classQ}}|
 
{{Item responsive |Cols={{#var:@cols|4-8}}
 
{{Item responsive |Cols={{#var:@cols|4-8}}
|1=<h3>Is is the Truth?</h3>
+
|1=<b>Class request:</b>
|2={{#ifeq:{{{Role|}}}|Plaintiff||{{#tag:html|<details><summary>{{#ifeq:{{{Role|}}}|Judge|Verdicts|Plaintiff answer}}</summary>}}{{#arraymap:{{#var:verdictsarray}}|$|@@@|<div class="verdict-item"><wsfield type="button" class="btn copy-verdict" onclick="copyVerdict(this)">Copy</wsfield><div class="d-flex"><div class="verdict-type">{{#if:{{#explode:@@@|<PROP>|30}}|{{#explode:@@@|<PROP>|30}}|{{#explode:@@@|<PROP>|2}} }}</div><div class="w-100 verdict-wrapper"><div class="d-flex"> </div><div class="d-flex"><div class="vi {{#ifeq:{{#explode:@@@|<PROP>|4}}|yes|truth-yes|truth-no}}">{{#explode:@@@|<PROP>|4}}</div><div class="vi ml-2" style="background: linear-gradient(to right, #329966 0%,#329966 {{#explode:@@@|<PROP>|5}}%,#f2f2f2 {{#explode:@@@|<PROP>|5}}%,#f2f2f2 100%); background: conic-gradient(from 180deg, #329966 43%, #f2f2f2 0 0);"><div class="inner-percentage">{{#explode:@@@|<PROP>|5}}%</div></div></div><div class="d-flex "> <div class="vi mt-2 w-100 bg-white">{{#explode:@@@|<PROP>|6}} </div><!--  
+
|2={{#ifeq:{{#var:@classQ}}|Declined|Declined|{{#ifeq:{{#var:@classQ}}|Approved|
 +
                                          Approved: Class page:  {{#ask:[[Class::Workflow]][[Class case IDs::{{{Workflow|}}}]]|format=array|link=none}}                                        |Pending}} }}
 +
}}
 +
}} }}<!--
 +
 
 +
-->{{Item responsive |Cols={{#var:@cols|4-8}}
 +
|1=<b>Role:</b>
 +
|2={{{Role|}}}
 +
}}<!--
 +
 
 +
-->{{Item responsive |Cols={{#var:@cols|4-8}}
 +
|1=<b>Suit:</b>
 +
|2={{#vardefine:@title|{{#ask:[[Class::Suit]][[Case ID::{{{Case ID|}}}]]}} }}{{#if:{{#var:@title}}|{{#var:@title}}|{{#show:{{{Workflow}}}|?Lie|link=none }} }}
 +
}}<!--
 +
 
 +
-->{{Item responsive |Cols={{#var:@cols|4-8}}
 +
|1=<b>Stage:</b>
 +
|2={{#show:{{{Workflow}}}|?Stage }}
 +
}}<!--
 +
 
 +
-->{{Item responsive |Cols={{#var:@cols|4-8}}
 +
|1=<b>The Plaintiff Accusation with Evidence :</b>
 +
|2={{#show:{{{Workflow}}}|?Accusation|link=none }}
 +
}}<!--
 +
-->{{Item responsive |Cols={{#var:@cols|4-8}}
 +
|1=<b>Marked <span class="red">lies</span> and <span class="dark-blue">truths</span> :</b>
 +
|2=<div class="lie-input">{{#show:{{{Workflow}}}|?Markup|Link=none }}</div>
 +
}}<!--
 +
 
 +
-->{{Item responsive |Cols={{#var:@cols|4-8}}
 +
|1=<b>Lie locations:</b>
 +
|2={{#arraymap:{{#show:{{{Workflow|}}}|?Locations}}|,|@@@|
 +
{{#widget:link|href=@@@|text={{#regex:@@@|/^(?:https?:\/\/)?(?:[^@\/\n]+@)?(?:www\.)?([^:\/?\n]+)(.+)/|$1}}|type=a}} |<br>}}
 +
}}<!--
 +
 
 +
-->{{#vardefine:@meeting|{{#show:{{{Workflow}}}|?Meeting|link=none }} }}<!--
 +
 
 +
-->{{#if:{{#var:@meeting}}|{{Item responsive |Cols={{#var:@cols|4-8}}
 +
|1=<b>Meeting link</b>
 +
|2=[{{#var:@meeting}} Meeting]
 +
}} }}<!--
 +
 
 +
-->{{Item responsive |Cols={{#var:@cols|4-8}}
 +
|1=<b>Suit date</b>
 +
|2={{#show:{{{Workflow}}}|?Slot|link=none }}
 +
}} <!--
 +
 
 +
-->{{Item responsive |Cols=6-6
 +
|1=<b>Evidence of lie appearance:</b>{{#vardefine:@uuid|{{#show:{{{Workflow|}}}|?uuid|link=none}} }}
 +
|2={{#vardefine:@counter|0}}{{#if:{{#var:@uuid}}|{{#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
 +
|Targetid=image-modal-{{#var:@counter}}
 +
|Dialog class=image-modal
 +
|ModalHeading={{#ifeq:{{#explode:@@@|<PROP>|2}}|pdf|Pdf|Image}}
 +
|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}}
 +
|Hide link=Yes
 +
}}<!--
 +
-->|}} }} }}</div><!--
 +
 
 +
end case infor
 +
 
 +
-->{{Item responsive |Cols={{#var:@cols|4-8}}
 +
|1=<h3>Is it the Truth?</h3>
 +
|2={{#ifeq:{{{Role|}}}|Plaintiff||{{#tag:html|<details open><summary>{{#ifeq:{{{Role|}}}|Judge|Verdicts|Plaintiff answer}}</summary>}}{{#arraymap:{{#var:verdictsarray}}|$|@@@|<div class="verdict-item"><wsfield type="button" class="btn copy-verdict" onclick="copyVerdict(this)">Copy</wsfield><div class="d-flex"><div class="verdict-type">{{#if:{{#explode:@@@|<PROP>|30}}|{{#explode:@@@|<PROP>|30}}|{{#explode:@@@|<PROP>|2}} }}</div><div class="w-100 verdict-wrapper"><div class="d-flex"> </div><div class="d-flex"><div class="vi {{#ifeq:{{#explode:@@@|<PROP>|4}}|yes|truth-yes|truth-no}}">{{#explode:@@@|<PROP>|4}}</div><div class="vi ml-2" style="background: linear-gradient(to right, #329966 0%,#329966 {{#explode:@@@|<PROP>|5}}%,#f2f2f2 {{#explode:@@@|<PROP>|5}}%,#f2f2f2 100%); background: conic-gradient(from 180deg, #329966 43%, #f2f2f2 0 0);"><div class="inner-percentage">{{#explode:@@@|<PROP>|5}}%</div></div></div><div class="d-flex "> <div class="vi mt-2 w-100 bg-white">{{#explode:@@@|<PROP>|6}} </div><!--  
  
 
-->{{#vardefine:@counter|0}}{{#arraymap:{{#ask:[[Class::Verdict file]][[Verdict::{{#explode:@@@|<PROP>|0}}]]|?=|?Modification date|Format=array|link=none}}|,|###|{{#widget:link |type=a|href=#image-modal-{{#var:@counter}} |datatoggle=modal |class=vi attachment mt-2 |text={{fa|image}} }}<!--
 
-->{{#vardefine:@counter|0}}{{#arraymap:{{#ask:[[Class::Verdict file]][[Verdict::{{#explode:@@@|<PROP>|0}}]]|?=|?Modification date|Format=array|link=none}}|,|###|{{#widget:link |type=a|href=#image-modal-{{#var:@counter}} |datatoggle=modal |class=vi attachment mt-2 |text={{fa|image}} }}<!--
Line 316: Line 390:
 
{{Item responsive |Cols={{#var:@cols|4-8}}
 
{{Item responsive |Cols={{#var:@cols|4-8}}
 
|1=<h3>Is it the Whole Truth?</h3>
 
|1=<h3>Is it the Whole Truth?</h3>
|2={{#ifeq:{{{Role|}}}|Plaintiff||{{#tag:html|<details><summary>{{#ifeq:{{{Role|}}}|Judge|Verdicts|Plaintiff answer}}</summary>}}{{#arraymap:{{#var:verdictsarray}}|$|@@@|<div class="verdict-item"><wsfield type="button" class="btn copy-verdict" onclick="copyVerdict(this)">Copy</wsfield><div class="d-flex"><div class="verdict-type">{{#if:{{#explode:@@@|<PROP>|30}}|{{#explode:@@@|<PROP>|30}}|{{#explode:@@@|<PROP>|2}} }}</div><div class="w-100 verdict-wrapper"><div class="d-flex">  </div><div class="d-flex"><div class="vi {{#ifeq:{{#explode:@@@|<PROP>|7}}|yes|truth-yes|truth-no}}">{{#explode:@@@|<PROP>|7}}</div><div class="vi ml-2" style="background: linear-gradient(to right, #329966 0%,#329966 {{#explode:@@@|<PROP>|8}}%,#f2f2f2 {{#explode:@@@|<PROP>|8}}%,#f2f2f2 100%); background: conic-gradient(from 180deg, #329966 {{#explode:@@@|<PROP>|8}}%, #f2f2f2 0 0);"><div class="inner-percentage">{{#explode:@@@|<PROP>|8}}%</div></div></div><div class="d-flex "> <div class="vi mt-2 w-100 bg-white">{{#explode:@@@|<PROP>|9}} </div><!--  
+
|2={{#ifeq:{{{Role|}}}|Plaintiff||{{#tag:html|<details open><summary>{{#ifeq:{{{Role|}}}|Judge|Verdicts|Plaintiff answer}}</summary>}}{{#arraymap:{{#var:verdictsarray}}|$|@@@|<div class="verdict-item"><wsfield type="button" class="btn copy-verdict" onclick="copyVerdict(this)">Copy</wsfield><div class="d-flex"><div class="verdict-type">{{#if:{{#explode:@@@|<PROP>|30}}|{{#explode:@@@|<PROP>|30}}|{{#explode:@@@|<PROP>|2}} }}</div><div class="w-100 verdict-wrapper"><div class="d-flex">  </div><div class="d-flex"><div class="vi {{#ifeq:{{#explode:@@@|<PROP>|7}}|yes|truth-yes|truth-no}}">{{#explode:@@@|<PROP>|7}}</div><div class="vi ml-2" style="background: linear-gradient(to right, #329966 0%,#329966 {{#explode:@@@|<PROP>|8}}%,#f2f2f2 {{#explode:@@@|<PROP>|8}}%,#f2f2f2 100%); background: conic-gradient(from 180deg, #329966 {{#explode:@@@|<PROP>|8}}%, #f2f2f2 0 0);"><div class="inner-percentage">{{#explode:@@@|<PROP>|8}}%</div></div></div><div class="d-flex "> <div class="vi mt-2 w-100 bg-white">{{#explode:@@@|<PROP>|9}} </div><!--  
  
 
--></div><!--  
 
--></div><!--  
Line 327: Line 401:
 
{{Item responsive |Cols={{#var:@cols|4-8}}
 
{{Item responsive |Cols={{#var:@cols|4-8}}
 
|1=<h3>Is it Nothing But the Truth?</h3>
 
|1=<h3>Is it Nothing But the Truth?</h3>
|2={{#ifeq:{{{Role|}}}|Plaintiff||{{#tag:html|<details><summary>{{#ifeq:{{{Role|}}}|Judge|Verdicts|Plaintiff answer}}</summary>}}{{#arraymap:{{#var:verdictsarray}}|$|@@@|<div class="verdict-item"><wsfield type="button" class="btn copy-verdict" onclick="copyVerdict(this)">Copy</wsfield><div class="d-flex"><div class="verdict-type">{{#if:{{#explode:@@@|<PROP>|30}}|{{#explode:@@@|<PROP>|30}}|{{#explode:@@@|<PROP>|2}} }}</div><div class="w-100 verdict-wrapper"><div class="d-flex">  </div><div class="d-flex"><div class="vi {{#ifeq:{{#explode:@@@|<PROP>|10}}|yes|truth-yes|truth-no}}">{{#explode:@@@|<PROP>|10}}</div><div class="vi ml-2" style="background: linear-gradient(to right, #329966 0%,#329966 {{#explode:@@@|<PROP>|11}}%,#f2f2f2 {{#explode:@@@|<PROP>|11}}%,#f2f2f2 100%); background: conic-gradient(from 180deg, #329966 {{#explode:@@@|<PROP>|11}}%, #f2f2f2 0 0);"><div class="inner-percentage">{{#explode:@@@|<PROP>|11}}%</div></div></div><div class="d-flex "> <div class="vi mt-2 w-100 bg-white">{{#explode:@@@|<PROP>|12}} </div><!--  
+
|2={{#ifeq:{{{Role|}}}|Plaintiff||{{#tag:html|<details open><summary>{{#ifeq:{{{Role|}}}|Judge|Verdicts|Plaintiff answer}}</summary>}}{{#arraymap:{{#var:verdictsarray}}|$|@@@|<div class="verdict-item"><wsfield type="button" class="btn copy-verdict" onclick="copyVerdict(this)">Copy</wsfield><div class="d-flex"><div class="verdict-type">{{#if:{{#explode:@@@|<PROP>|30}}|{{#explode:@@@|<PROP>|30}}|{{#explode:@@@|<PROP>|2}} }}</div><div class="w-100 verdict-wrapper"><div class="d-flex">  </div><div class="d-flex"><div class="vi {{#ifeq:{{#explode:@@@|<PROP>|10}}|yes|truth-yes|truth-no}}">{{#explode:@@@|<PROP>|10}}</div><div class="vi ml-2" style="background: linear-gradient(to right, #329966 0%,#329966 {{#explode:@@@|<PROP>|11}}%,#f2f2f2 {{#explode:@@@|<PROP>|11}}%,#f2f2f2 100%); background: conic-gradient(from 180deg, #329966 {{#explode:@@@|<PROP>|11}}%, #f2f2f2 0 0);"><div class="inner-percentage">{{#explode:@@@|<PROP>|11}}%</div></div></div><div class="d-flex "> <div class="vi mt-2 w-100 bg-white">{{#explode:@@@|<PROP>|12}} </div><!--  
  
 
--></div><!--  
 
--></div><!--  
Line 341: Line 415:
 
{{Item responsive |Cols={{#var:@cols|4-8}}
 
{{Item responsive |Cols={{#var:@cols|4-8}}
 
|1=<h3>What is the Deceit?</h3>
 
|1=<h3>What is the Deceit?</h3>
|2={{#ifeq:{{{Role|}}}|Plaintiff||{{#tag:html|<details><summary>{{#ifeq:{{{Role|}}}|Judge|Verdicts|Plaintiff answer}}</summary>}}{{#arraymap:{{#var:verdictsarray}}|$|@@@|
+
|2={{#ifeq:{{{Role|}}}|Plaintiff||{{#tag:html|<details open><summary>{{#ifeq:{{{Role|}}}|Judge|Verdicts|Plaintiff answer}}</summary>}}{{#arraymap:{{#var:verdictsarray}}|$|@@@|
 
<div class="verdict-item"><wsfield type="button" class="btn copy-verdict" onclick="copyVerdict(this)">Copy</wsfield><div class="d-flex"><div class="verdict-type">{{#if:{{#explode:@@@|<PROP>|30}}|{{#explode:@@@|<PROP>|30}}|{{#explode:@@@|<PROP>|2}} }}</div>{{#vardefine:@decietscount|0}}{{#arraymap:{{#explode:@@@|<PROP>|15}}|,|###|<div class="w-100 verdict-wrapper"><div class="d-flex">  </div><div class="d-flex"><div class="vi bg-white">{{#explode:{{#explode:@@@|<PROP>|13}}|,|{{#var:@decietscount}}}}</div><div class="vi ml-2" style="background: linear-gradient(to right, #329966 0%,#329966 {{#explode:{{#explode:@@@|<PROP>|14}}|,|{{#var:@decietscount}}}}%,#f2f2f2 {{#explode:{{#explode:@@@|<PROP>|14}}|,|{{#var:@decietscount}}}}%,#f2f2f2 100%); background: conic-gradient(from 180deg, #329966 {{#explode:{{#explode:@@@|<PROP>|14}}|,|{{#var:@decietscount}}}}%, #f2f2f2 0 0);"><div class="inner-percentage">{{#explode:{{#explode:@@@|<PROP>|14}}|,|{{#var:@decietscount}}}}%</div></div></div><div class="d-flex "> <div class="vi mt-2 w-100 bg-white">{{#explode:{{#explode:@@@|<PROP>|15}}|,|{{#var:@decietscount}}}} </div><!--  
 
<div class="verdict-item"><wsfield type="button" class="btn copy-verdict" onclick="copyVerdict(this)">Copy</wsfield><div class="d-flex"><div class="verdict-type">{{#if:{{#explode:@@@|<PROP>|30}}|{{#explode:@@@|<PROP>|30}}|{{#explode:@@@|<PROP>|2}} }}</div>{{#vardefine:@decietscount|0}}{{#arraymap:{{#explode:@@@|<PROP>|15}}|,|###|<div class="w-100 verdict-wrapper"><div class="d-flex">  </div><div class="d-flex"><div class="vi bg-white">{{#explode:{{#explode:@@@|<PROP>|13}}|,|{{#var:@decietscount}}}}</div><div class="vi ml-2" style="background: linear-gradient(to right, #329966 0%,#329966 {{#explode:{{#explode:@@@|<PROP>|14}}|,|{{#var:@decietscount}}}}%,#f2f2f2 {{#explode:{{#explode:@@@|<PROP>|14}}|,|{{#var:@decietscount}}}}%,#f2f2f2 100%); background: conic-gradient(from 180deg, #329966 {{#explode:{{#explode:@@@|<PROP>|14}}|,|{{#var:@decietscount}}}}%, #f2f2f2 0 0);"><div class="inner-percentage">{{#explode:{{#explode:@@@|<PROP>|14}}|,|{{#var:@decietscount}}}}%</div></div></div><div class="d-flex "> <div class="vi mt-2 w-100 bg-white">{{#explode:{{#explode:@@@|<PROP>|15}}|,|{{#var:@decietscount}}}} </div><!--  
  
Line 358: Line 432:
 
{{Item responsive |Cols={{#var:@cols|4-8}}
 
{{Item responsive |Cols={{#var:@cols|4-8}}
 
|1=<h3>What is the Deceit?</h3>
 
|1=<h3>What is the Deceit?</h3>
|2={{#ifeq:{{{Role|}}}|Plaintiff||{{#tag:html|<details><summary>{{#ifeq:{{{Role|}}}|Judge|Verdicts|Plaintiff answer}}</summary>}}{{#arraymap:{{#var:verdictsarray}}|$|@@@|
+
|2={{#ifeq:{{{Role|}}}|Plaintiff||{{#tag:html|<details open><summary>{{#ifeq:{{{Role|}}}|Judge|Verdicts|Plaintiff answer}}</summary>}}{{#arraymap:{{#var:verdictsarray}}|$|@@@|
 
<div class="verdict-item"><wsfield type="button" class="btn copy-verdict" onclick="copyVerdict(this)">Copy</wsfield><div class="d-flex"><div class="verdict-type">{{#if:{{#explode:@@@|<PROP>|30}}|{{#explode:@@@|<PROP>|30}}|{{#explode:@@@|<PROP>|2}} }}</div>{{#vardefine:@decietscount|0}}{{#arraymap:{{#explode:@@@|<PROP>|15}}|,|###|<div class="w-100 verdict-wrapper"><div class="d-flex">  </div><div class="d-flex"><div class="vi bg-white">{{#explode:{{#explode:@@@|<PROP>|13}}|,|{{#var:@decietscount}}}}</div><div class="vi ml-2" style="background: linear-gradient(to right, #329966 0%,#329966 {{#explode:{{#explode:@@@|<PROP>|14}}|,|{{#var:@decietscount}}}}%,#f2f2f2 {{#explode:{{#explode:@@@|<PROP>|14}}|,|{{#var:@decietscount}}}}%,#f2f2f2 100%); background: conic-gradient(from 180deg, #329966 {{#explode:{{#explode:@@@|<PROP>|14}}|,|{{#var:@decietscount}}}}%, #f2f2f2 0 0);"><div class="inner-percentage">{{#explode:{{#explode:@@@|<PROP>|14}}|,|{{#var:@decietscount}}}}%</div></div></div><div class="d-flex "> <div class="vi mt-2 w-100 bg-white">{{#explode:{{#explode:@@@|<PROP>|15}}|,|{{#var:@decietscount}}}} </div><!--  
 
<div class="verdict-item"><wsfield type="button" class="btn copy-verdict" onclick="copyVerdict(this)">Copy</wsfield><div class="d-flex"><div class="verdict-type">{{#if:{{#explode:@@@|<PROP>|30}}|{{#explode:@@@|<PROP>|30}}|{{#explode:@@@|<PROP>|2}} }}</div>{{#vardefine:@decietscount|0}}{{#arraymap:{{#explode:@@@|<PROP>|15}}|,|###|<div class="w-100 verdict-wrapper"><div class="d-flex">  </div><div class="d-flex"><div class="vi bg-white">{{#explode:{{#explode:@@@|<PROP>|13}}|,|{{#var:@decietscount}}}}</div><div class="vi ml-2" style="background: linear-gradient(to right, #329966 0%,#329966 {{#explode:{{#explode:@@@|<PROP>|14}}|,|{{#var:@decietscount}}}}%,#f2f2f2 {{#explode:{{#explode:@@@|<PROP>|14}}|,|{{#var:@decietscount}}}}%,#f2f2f2 100%); background: conic-gradient(from 180deg, #329966 {{#explode:{{#explode:@@@|<PROP>|14}}|,|{{#var:@decietscount}}}}%, #f2f2f2 0 0);"><div class="inner-percentage">{{#explode:{{#explode:@@@|<PROP>|14}}|,|{{#var:@decietscount}}}}%</div></div></div><div class="d-flex "> <div class="vi mt-2 w-100 bg-white">{{#explode:{{#explode:@@@|<PROP>|15}}|,|{{#var:@decietscount}}}} </div><!--  
  
Line 374: Line 448:
 
{{Item responsive |Cols={{#var:@cols|4-8}}
 
{{Item responsive |Cols={{#var:@cols|4-8}}
 
|1=<h3>Is the Deceit Intended?</h3>
 
|1=<h3>Is the Deceit Intended?</h3>
|2={{#ifeq:{{{Role|}}}|Plaintiff||{{#tag:html|<details><summary>{{#ifeq:{{{Role|}}}|Judge|Verdicts|Plaintiff answer}}</summary>}}{{#arraymap:{{#var:verdictsarray}}|$|@@@|<div class="verdict-item"><wsfield type="button" class="btn copy-verdict" onclick="copyVerdict(this)">Copy</wsfield><div class="d-flex"><div class="verdict-type">{{#if:{{#explode:@@@|<PROP>|30}}|{{#explode:@@@|<PROP>|30}}|{{#explode:@@@|<PROP>|2}} }}</div><div class="w-100 verdict-wrapper"><div class="d-flex">  </div><div class="d-flex"><div class="vi {{#ifeq:{{#explode:@@@|<PROP>|16}}|yes|truth-yes|truth-no}}">{{#explode:@@@|<PROP>|16}}</div><div class="vi ml-2" style="background: linear-gradient(to right, #329966 0%,#329966 {{#explode:@@@|<PROP>|17}}%,#f2f2f2 {{#explode:@@@|<PROP>|17}}%,#f2f2f2 100%); background: conic-gradient(from 180deg, #329966 {{#explode:@@@|<PROP>|17}}%, #f2f2f2 0 0);"><div class="inner-percentage">{{#explode:@@@|<PROP>|17}}%</div></div></div><div class="d-flex "> <div class="vi mt-2 w-100 bg-white">{{#explode:@@@|<PROP>|18}} </div><!--  
+
|2={{#ifeq:{{{Role|}}}|Plaintiff||{{#tag:html|<details open><summary>{{#ifeq:{{{Role|}}}|Judge|Verdicts|Plaintiff answer}}</summary>}}{{#arraymap:{{#var:verdictsarray}}|$|@@@|<div class="verdict-item"><wsfield type="button" class="btn copy-verdict" onclick="copyVerdict(this)">Copy</wsfield><div class="d-flex"><div class="verdict-type">{{#if:{{#explode:@@@|<PROP>|30}}|{{#explode:@@@|<PROP>|30}}|{{#explode:@@@|<PROP>|2}} }}</div><div class="w-100 verdict-wrapper"><div class="d-flex">  </div><div class="d-flex"><div class="vi {{#ifeq:{{#explode:@@@|<PROP>|16}}|yes|truth-yes|truth-no}}">{{#explode:@@@|<PROP>|16}}</div><div class="vi ml-2" style="background: linear-gradient(to right, #329966 0%,#329966 {{#explode:@@@|<PROP>|17}}%,#f2f2f2 {{#explode:@@@|<PROP>|17}}%,#f2f2f2 100%); background: conic-gradient(from 180deg, #329966 {{#explode:@@@|<PROP>|17}}%, #f2f2f2 0 0);"><div class="inner-percentage">{{#explode:@@@|<PROP>|17}}%</div></div></div><div class="d-flex "> <div class="vi mt-2 w-100 bg-white">{{#explode:@@@|<PROP>|18}} </div><!--  
  
 
--></div><!--  
 
--></div><!--  
Line 388: Line 462:
 
{{Item responsive |Cols={{#var:@cols|4-8}}
 
{{Item responsive |Cols={{#var:@cols|4-8}}
 
|1=<h3>What is the Motivation behind the Lie?</h3>
 
|1=<h3>What is the Motivation behind the Lie?</h3>
|2={{#ifeq:{{{Role|}}}|Plaintiff||{{#tag:html|<details><summary>{{#ifeq:{{{Role|}}}|Judge|Verdicts|Plaintiff answer}}</summary>}}{{#arraymap:{{#var:verdictsarray}}|$|@@@|
+
|2={{#ifeq:{{{Role|}}}|Plaintiff||{{#tag:html|<details open><summary>{{#ifeq:{{{Role|}}}|Judge|Verdicts|Plaintiff answer}}</summary>}}{{#arraymap:{{#var:verdictsarray}}|$|@@@|
 
<div class="verdict-item"><wsfield type="button" class="btn copy-verdict" onclick="copyVerdict(this)">Copy</wsfield><div class="d-flex"><div class="verdict-type">{{#if:{{#explode:@@@|<PROP>|30}}|{{#explode:@@@|<PROP>|30}}|{{#explode:@@@|<PROP>|2}} }}</div>{{#vardefine:@decietscount|0}}{{#arraymap:{{#explode:@@@|<PROP>|19}}|,|###|<div class="w-100 verdict-wrapper"><div class="d-flex">  </div><div class="d-flex"><div class="vi bg-white">{{#explode:{{#explode:@@@|<PROP>|19}}|,|{{#var:@decietscount}}}}</div><div class="vi ml-2" style="background: linear-gradient(to right, #329966 0%,#329966 {{#explode:{{#explode:@@@|<PROP>|20}}|,|{{#var:@decietscount}}}}%,#f2f2f2 {{#explode:{{#explode:@@@|<PROP>|20}}|,|{{#var:@decietscount}}}}%,#f2f2f2 100%); background: conic-gradient(from 180deg, #329966 {{#explode:{{#explode:@@@|<PROP>|20}}|,|{{#var:@decietscount}}}}%, #f2f2f2 0 0);"><div class="inner-percentage">{{#explode:{{#explode:@@@|<PROP>|20}}|,|{{#var:@decietscount}}}}%</div></div></div><div class="d-flex "> <div class="vi mt-2 w-100 bg-white">{{#explode:{{#explode:@@@|<PROP>|21}}|,|{{#var:@decietscount}}}} </div><!--  
 
<div class="verdict-item"><wsfield type="button" class="btn copy-verdict" onclick="copyVerdict(this)">Copy</wsfield><div class="d-flex"><div class="verdict-type">{{#if:{{#explode:@@@|<PROP>|30}}|{{#explode:@@@|<PROP>|30}}|{{#explode:@@@|<PROP>|2}} }}</div>{{#vardefine:@decietscount|0}}{{#arraymap:{{#explode:@@@|<PROP>|19}}|,|###|<div class="w-100 verdict-wrapper"><div class="d-flex">  </div><div class="d-flex"><div class="vi bg-white">{{#explode:{{#explode:@@@|<PROP>|19}}|,|{{#var:@decietscount}}}}</div><div class="vi ml-2" style="background: linear-gradient(to right, #329966 0%,#329966 {{#explode:{{#explode:@@@|<PROP>|20}}|,|{{#var:@decietscount}}}}%,#f2f2f2 {{#explode:{{#explode:@@@|<PROP>|20}}|,|{{#var:@decietscount}}}}%,#f2f2f2 100%); background: conic-gradient(from 180deg, #329966 {{#explode:{{#explode:@@@|<PROP>|20}}|,|{{#var:@decietscount}}}}%, #f2f2f2 0 0);"><div class="inner-percentage">{{#explode:{{#explode:@@@|<PROP>|20}}|,|{{#var:@decietscount}}}}%</div></div></div><div class="d-flex "> <div class="vi mt-2 w-100 bg-white">{{#explode:{{#explode:@@@|<PROP>|21}}|,|{{#var:@decietscount}}}} </div><!--  
  
Line 405: Line 479:
 
{{Item responsive |Cols={{#var:@cols|4-8}}
 
{{Item responsive |Cols={{#var:@cols|4-8}}
 
|1=<h3>What is the Motivation behind the Lie?</h3>
 
|1=<h3>What is the Motivation behind the Lie?</h3>
|2={{#ifeq:{{{Role|}}}|Plaintiff||{{#tag:html|<details><summary>{{#ifeq:{{{Role|}}}|Judge|Verdicts|Plaintiff answer}}</summary>}}{{#arraymap:{{#var:verdictsarray}}|$|@@@|
+
|2={{#ifeq:{{{Role|}}}|Plaintiff||{{#tag:html|<details open><summary>{{#ifeq:{{{Role|}}}|Judge|Verdicts|Plaintiff answer}}</summary>}}{{#arraymap:{{#var:verdictsarray}}|$|@@@|
 
<div class="verdict-item"><wsfield type="button" class="btn copy-verdict" onclick="copyVerdict(this)">Copy</wsfield><div class="d-flex"><div class="verdict-type">{{#if:{{#explode:@@@|<PROP>|30}}|{{#explode:@@@|<PROP>|30}}|{{#explode:@@@|<PROP>|2}} }}</div>{{#vardefine:@decietscount|0}}{{#arraymap:{{#explode:@@@|<PROP>|19}}|,|###|<div class="w-100 verdict-wrapper"><div class="d-flex">  </div><div class="d-flex"><div class="vi bg-white">{{#explode:{{#explode:@@@|<PROP>|19}}|,|{{#var:@decietscount}}}}</div><div class="vi ml-2" style="background: linear-gradient(to right, #329966 0%,#329966 {{#explode:{{#explode:@@@|<PROP>|20}}|,|{{#var:@decietscount}}}}%,#f2f2f2 {{#explode:{{#explode:@@@|<PROP>|20}}|,|{{#var:@decietscount}}}}%,#f2f2f2 100%); background: conic-gradient(from 180deg, #329966 {{#explode:{{#explode:@@@|<PROP>|20}}|,|{{#var:@decietscount}}}}%, #f2f2f2 0 0);"><div class="inner-percentage">{{#explode:{{#explode:@@@|<PROP>|20}}|,|{{#var:@decietscount}}}}%</div></div></div><div class="d-flex "> <div class="vi mt-2 w-100 bg-white">{{#explode:{{#explode:@@@|<PROP>|21}}|,|{{#var:@decietscount}}}} </div><!--  
 
<div class="verdict-item"><wsfield type="button" class="btn copy-verdict" onclick="copyVerdict(this)">Copy</wsfield><div class="d-flex"><div class="verdict-type">{{#if:{{#explode:@@@|<PROP>|30}}|{{#explode:@@@|<PROP>|30}}|{{#explode:@@@|<PROP>|2}} }}</div>{{#vardefine:@decietscount|0}}{{#arraymap:{{#explode:@@@|<PROP>|19}}|,|###|<div class="w-100 verdict-wrapper"><div class="d-flex">  </div><div class="d-flex"><div class="vi bg-white">{{#explode:{{#explode:@@@|<PROP>|19}}|,|{{#var:@decietscount}}}}</div><div class="vi ml-2" style="background: linear-gradient(to right, #329966 0%,#329966 {{#explode:{{#explode:@@@|<PROP>|20}}|,|{{#var:@decietscount}}}}%,#f2f2f2 {{#explode:{{#explode:@@@|<PROP>|20}}|,|{{#var:@decietscount}}}}%,#f2f2f2 100%); background: conic-gradient(from 180deg, #329966 {{#explode:{{#explode:@@@|<PROP>|20}}|,|{{#var:@decietscount}}}}%, #f2f2f2 0 0);"><div class="inner-percentage">{{#explode:{{#explode:@@@|<PROP>|20}}|,|{{#var:@decietscount}}}}%</div></div></div><div class="d-flex "> <div class="vi mt-2 w-100 bg-white">{{#explode:{{#explode:@@@|<PROP>|21}}|,|{{#var:@decietscount}}}} </div><!--  
  
Line 421: Line 495:
 
{{Item responsive |Cols={{#var:@cols|4-8}}
 
{{Item responsive |Cols={{#var:@cols|4-8}}
 
|1=<h3>What is the Social Acceptability for the lie?</h3>
 
|1=<h3>What is the Social Acceptability for the lie?</h3>
|2={{#ifeq:{{{Role|}}}|Plaintiff||{{#tag:html|<details><summary>{{#ifeq:{{{Role|}}}|Judge|Verdicts|Plaintiff answer}}</summary>}}{{#arraymap:{{#var:verdictsarray}}|$|@@@|<div class="verdict-item"><wsfield type="button" class="btn copy-verdict" onclick="copyVerdict(this)">Copy</wsfield><div class="d-flex"><div class="verdict-type">{{#if:{{#explode:@@@|<PROP>|30}}|{{#explode:@@@|<PROP>|30}}|{{#explode:@@@|<PROP>|2}} }}</div><div class="w-100 verdict-wrapper"><div class="d-flex">  </div><div class="d-flex"><div class="vi {{#ifeq:{{#explode:@@@|<PROP>|22}}|Acceptable|truth-yes|truth-no}}">{{#explode:@@@|<PROP>|22}}</div><div class="vi ml-2" style="background: linear-gradient(to right, #329966 0%,#329966 {{#explode:@@@|<PROP>|23}}%,#f2f2f2 {{#explode:@@@|<PROP>|23}}%,#f2f2f2 100%); background: conic-gradient(from 180deg, #329966 {{#explode:@@@|<PROP>|23}}%, #f2f2f2 0 0);"><div class="inner-percentage">{{#explode:@@@|<PROP>|23}}%</div></div></div><div class="d-flex "> <div class="vi mt-2 w-100 bg-white">{{#explode:@@@|<PROP>|24}} </div><!--  
+
|2={{#ifeq:{{{Role|}}}|Plaintiff||{{#tag:html|<details open><summary>{{#ifeq:{{{Role|}}}|Judge|Verdicts|Plaintiff answer}}</summary>}}{{#arraymap:{{#var:verdictsarray}}|$|@@@|<div class="verdict-item"><wsfield type="button" class="btn copy-verdict" onclick="copyVerdict(this)">Copy</wsfield><div class="d-flex"><div class="verdict-type">{{#if:{{#explode:@@@|<PROP>|30}}|{{#explode:@@@|<PROP>|30}}|{{#explode:@@@|<PROP>|2}} }}</div><div class="w-100 verdict-wrapper"><div class="d-flex">  </div><div class="d-flex"><div class="vi {{#ifeq:{{#explode:@@@|<PROP>|22}}|Acceptable|truth-yes|truth-no}}">{{#explode:@@@|<PROP>|22}}</div><div class="vi ml-2" style="background: linear-gradient(to right, #329966 0%,#329966 {{#explode:@@@|<PROP>|23}}%,#f2f2f2 {{#explode:@@@|<PROP>|23}}%,#f2f2f2 100%); background: conic-gradient(from 180deg, #329966 {{#explode:@@@|<PROP>|23}}%, #f2f2f2 0 0);"><div class="inner-percentage">{{#explode:@@@|<PROP>|23}}%</div></div></div><div class="d-flex "> <div class="vi mt-2 w-100 bg-white">{{#explode:@@@|<PROP>|24}} </div><!--  
  
 
--></div><!--  
 
--></div><!--  
Line 431: Line 505:
 
{{Item responsive |Cols={{#var:@cols|4-8}}
 
{{Item responsive |Cols={{#var:@cols|4-8}}
 
|1=<h3>What is the Label for the Lie needed to Improve the Social Acceptability?</h3>
 
|1=<h3>What is the Label for the Lie needed to Improve the Social Acceptability?</h3>
|2={{#ifeq:{{{Role|}}}|Plaintiff||{{#tag:html|<details><summary>{{#ifeq:{{{Role|}}}|Judge|Verdicts|Plaintiff answer}}</summary>}}{{#arraymap:{{#var:verdictsarray}}|$|@@@|<div class="verdict-item"><wsfield type="button" class="btn copy-verdict" onclick="copyVerdict(this)">Copy</wsfield><div class="d-flex"><div class="verdict-type">{{#if:{{#explode:@@@|<PROP>|30}}|{{#explode:@@@|<PROP>|30}}|{{#explode:@@@|<PROP>|2}} }}</div><div class="w-100 verdict-wrapper"><div class="d-flex">  </div><div class="d-flex"><div class="vi bg-white">{{#explode:@@@|<PROP>|25}}</div><div class="vi ml-2" style="background: linear-gradient(to right, #329966 0%,#329966 {{#explode:@@@|<PROP>|26}}%,#f2f2f2 {{#explode:@@@|<PROP>|26}}%,#f2f2f2 100%); background: conic-gradient(from 180deg, #329966 {{#explode:@@@|<PROP>|26}}%, #f2f2f2 0 0);"><div class="inner-percentage">{{#explode:@@@|<PROP>|26}}%</div></div></div><div class="d-flex "> <div class="vi mt-2 w-100 bg-white">{{#explode:@@@|<PROP>|27}} </div><!--  
+
|2={{#ifeq:{{{Role|}}}|Plaintiff||{{#tag:html|<details open><summary>{{#ifeq:{{{Role|}}}|Judge|Verdicts|Plaintiff answer}}</summary>}}{{#arraymap:{{#var:verdictsarray}}|$|@@@|<div class="verdict-item"><wsfield type="button" class="btn copy-verdict" onclick="copyVerdict(this)">Copy</wsfield><div class="d-flex"><div class="verdict-type">{{#if:{{#explode:@@@|<PROP>|30}}|{{#explode:@@@|<PROP>|30}}|{{#explode:@@@|<PROP>|2}} }}</div><div class="w-100 verdict-wrapper"><div class="d-flex">  </div><div class="d-flex"><div class="vi bg-white">{{#explode:@@@|<PROP>|25}}</div><div class="vi ml-2" style="background: linear-gradient(to right, #329966 0%,#329966 {{#explode:@@@|<PROP>|26}}%,#f2f2f2 {{#explode:@@@|<PROP>|26}}%,#f2f2f2 100%); background: conic-gradient(from 180deg, #329966 {{#explode:@@@|<PROP>|26}}%, #f2f2f2 0 0);"><div class="inner-percentage">{{#explode:@@@|<PROP>|26}}%</div></div></div><div class="d-flex "> <div class="vi mt-2 w-100 bg-white">{{#explode:@@@|<PROP>|27}} </div><!--  
  
 
--></div><!--  
 
--></div><!--  
Line 442: Line 516:
 
{{Item responsive |Cols={{#var:@cols|4-8}}
 
{{Item responsive |Cols={{#var:@cols|4-8}}
 
|1=
 
|1=
|2=<wsfield type="submit" class="btn btn-submit"  value="Save"  />
+
|2=<wsfield type="submit" class="btn btn-submit"  value="Save"  onclick="this.classList.add('pending');" />
 
}}</wsform><!--
 
}}</wsform><!--
  

Latest revision as of 11:16, 28 March 2022


This is the Verdict template. It should be called in the following format:

{{Verdict
|Workflow=
|Case ID=
|Role=
|User=
|Truth=
|Truth percentage=
|Truth text=
|Whole truth=
|Whole truth percentage=
|Whole truth text=
|Nothing But the truth=
|Nothing But the truth percentage=
|Nothing But the truth text=
|Deceit=
|Deceit percentage=
|Deceit text=
|Deceit intended=
|Deceit intended percentage=
|Deceit intended text=
|Motivation=
|Motivation percentage=
|Motivation text=
|Social acceptability=
|Social acceptability percentage=
|Social acceptability text=
|Label=
|Label percentage=
|Label text=
|Context= 
}}