Difference between revisions of "Template:Verdict"
From cm2.liecourt.com
(Fill database) |
(Tag: Undo) |
||
(68 intermediate revisions by 3 users not shown) | |||
Line 46: | Line 46: | ||
|Role={{{Role|}}} | |Role={{{Role|}}} | ||
|User={{{User|}}} | |User={{{User|}}} | ||
− | |Truth={{{Truth|}}} | + | |Truth={{#replace:{{{Truth|}}}|,|.}} |
|Truth percentage={{{Truth percentage|}}} | |Truth percentage={{{Truth percentage|}}} | ||
− | |Truth text={{{Truth text|}}} | + | |Truth text={{#if:{{{Truth text|}}}|{{{Truth text|}}}|-}} |
− | |Whole truth={{{Whole truth|}}} | + | |Whole truth={{#replace:{{{Whole truth|}}}|,|.}} |
|Whole truth percentage={{{Whole truth percentage|}}} | |Whole truth percentage={{{Whole truth percentage|}}} | ||
− | |Whole truth text={{{Whole truth text|}}} | + | |Whole truth text={{#replace:{{#if:{{{Whole truth text|}}}|{{{Whole truth text|}}}|-}}|,|.}} |
|Nothing But the truth={{{Nothing But the truth|}}} | |Nothing But the truth={{{Nothing But the truth|}}} | ||
|Nothing But the truth percentage={{{Nothing But the truth percentage|}}} | |Nothing But the truth percentage={{{Nothing But the truth percentage|}}} | ||
− | |Nothing But the truth text={{{Nothing But the truth text|}}} | + | |Nothing But the truth text={{#if:{{{Nothing But the truth text|}}}|{{{Nothing But the truth text|}}}|-}} |
− | |Deceit={{{Deceit|}}} | + | |Deceit={{#replace:{{{Deceit|}}}|,|.}} |
|Deceit percentage={{{Deceit percentage|}}} | |Deceit percentage={{{Deceit percentage|}}} | ||
− | |Deceit text={{{Deceit text|}}} | + | |Deceit text={{#replace:{{#if:{{{Deceit text|}}}|{{{Deceit text|}}}|-}}|,|.}} |
− | |Deceit intended={{{Deceit intended|}}} | + | |Deceit intended={{#replace:{{{Deceit intended|}}}|,|.}} |
|Deceit intended percentage={{{Deceit intended percentage|}}} | |Deceit intended percentage={{{Deceit intended percentage|}}} | ||
− | |Deceit intended text={{{Deceit intended text|}}} | + | |Deceit intended text={{#replace:{{#if:{{{Deceit intended text|}}}|{{{Deceit intended text|}}}|}}|,|.}} |
− | |Motivation={{{Motivation|}}} | + | |Motivation={{#replace:{{{Motivation|}}}|,|.}} |
|Motivation percentage={{{Motivation percentage|}}} | |Motivation percentage={{{Motivation percentage|}}} | ||
− | |Motivation text={{{Motivation text|}}} | + | |Motivation text={{#replace:{{#if:{{{Motivation text|}}}|{{{Motivation text|}}}|-}}|,|.}} |
− | |Social acceptability={{{Social acceptability|}}} | + | |Social acceptability={{#replace:{{{Social acceptability|}}}|,|.}} |
|Social acceptability percentage={{{Social acceptability percentage|}}} | |Social acceptability percentage={{{Social acceptability percentage|}}} | ||
− | |Social acceptability text={{{Social acceptability text|}}} | + | |Social acceptability text={{#replace:{{#if:{{{Social acceptability text|}}}|{{{Social acceptability text|}}}|-}}|,|.}} |
− | |Label={{{Label|}}} | + | |Label={{#replace:{{{Label|}}}|,|.}} |
|Label percentage={{{Label percentage|}}} | |Label percentage={{{Label percentage|}}} | ||
− | |Label text={{{Label text|}}} | + | |Label text={{#replace:{{#if:{{{Label text|}}}|{{{Label text|}}}|}}|,|.}} |
|Context={{{Context|None}}} | |Context={{{Context|None}}} | ||
|Name={{{Name|}}} | |Name={{{Name|}}} | ||
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 199: | Line 199: | ||
padding-left: 24px; | padding-left: 24px; | ||
height: 41px; | height: 41px; | ||
+ | } | ||
+ | button.btn.copy-verdict { | ||
+ | float: right; | ||
+ | background: #006699; | ||
+ | color: white; | ||
} | } | ||
</style>}} | </style>}} | ||
Line 205: | 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}} }} | ||
− | <wsform action="addToWiki" id="verdict-form | + | {{#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}} }} }} }} }}" > | ||
<wscreate mwwrite="{{FULLPAGENAME}}" mwtemplate="Verdict" /> | <wscreate mwwrite="{{FULLPAGENAME}}" mwtemplate="Verdict" /> | ||
{{#ifeq:{{#var:@stage}}|Waiting for Plaintiff verdict| | {{#ifeq:{{#var:@stage}}|Waiting for Plaintiff verdict| | ||
+ | |||
{{#tag:wsedit||target={{PAGEID:{{{Workflow|}}} }}|template=Workflow|formfield=Stage|value=Needs judge}} | {{#tag:wsedit||target={{PAGEID:{{{Workflow|}}} }}|template=Workflow|formfield=Stage|value=Needs judge}} | ||
− | |||
− | |||
− | |||
− | <wsfield type="hidden" name="Role" value="{{{Role|}}}" /> | + | }}<!-- |
+ | --><wsfield type="hidden" name="Role" value="{{{Role|}}}" /> | ||
<wsfield type="hidden" name="Workflow" value="{{{Workflow|}}}" /> | <wsfield type="hidden" name="Workflow" value="{{{Workflow|}}}" /> | ||
<wsfield type="hidden" name="Case ID" value="{{{Case ID|}}}" /> | <wsfield type="hidden" name="Case ID" value="{{{Case ID|}}}" /> | ||
Line 220: | Line 225: | ||
<wsfield type="hidden" name="Name" value="{{{Name|}}}" /> | <wsfield type="hidden" name="Name" value="{{{Name|}}}" /> | ||
<wsfield type="hidden" name="Context" value="{{{Context|}}}" /> | <wsfield type="hidden" name="Context" value="{{{Context|}}}" /> | ||
− | <h1><span>{{{Role|}}} verdict</span><span>{{{Context|}}}</span><span>Suit: {{{Case ID|}}}</span></h1> | + | <h1><span>{{{Role|}}} verdict</span><span>{{{Context|}}}</span><span>Suit: {{{Case ID|}}}</span></h1>Every decision should include your 0 - 100% confidence in the decision<!-- |
+ | -->{{#vardefine:verdictsarray|{{#ask:[[Class::Verdict]][[Case ID:: {{{Case ID|}}}]]{{#ifeq:{{{Role|}}}|Judge|[[Role::!Judge]]|[[Role::Plaintiff]]}} | ||
+ | |?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 | ||
+ | |?-Verdict=File | ||
+ | |?-Verdict.Modification date | ||
+ | |?Name | ||
+ | |link=none | ||
+ | |Sort=Role | ||
+ | |Order=desc | ||
+ | |Format=array | ||
+ | |Sep=$ | ||
+ | }}}}<!-- | ||
+ | -->{{#vardefine:@decision |Enter your decision 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=<b>Class request:</b> | ||
+ | |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> | |1=<h3>Is it the Truth?</h3> | ||
− | |2=<div class="d-flex">{{#widget:Check input |type=radio |name=Truth |text=yes |id=truthyes |value=yes |checked={{#ifeq:{{{Truth|}}}|no||checked}} }} | + | |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}} }}<!-- | ||
+ | |||
+ | -->{{Modal | ||
+ | |Targetid=image-modal-{{#var:@counter}} | ||
+ | |Dialog class=image-modal | ||
+ | |ModalHeading=Image | ||
+ | |BodyText=[[{{#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 | ||
+ | }}<!-- | ||
+ | |||
+ | -->{{#vardefine:@counter|{{#expr:{{#var:@counter}} + 1}} }} |}}</div><!-- | ||
+ | |||
+ | --></div></div></div>|}} {{#tag:html|</details>}} }} | ||
+ | <div class="d-flex">{{#widget:Check input |type=radio |name=Truth |text=yes |id=truthyes |value=yes |checked={{#ifeq:{{{Truth|}}}|no||checked}} }} | ||
{{#widget:Check input |type=radio |name=Truth |text=no |id=truthno |value=no |checked={{#ifeq:{{{Truth|}}}|no|checked|}} }}<span class="percentage"><wsfield type="number" class="form-control form-number" min="0" max="100" name="Truth percentage" placeholder="0" value="{{{Truth percentage|}}}" />%</span></div> | {{#widget:Check input |type=radio |name=Truth |text=no |id=truthno |value=no |checked={{#ifeq:{{{Truth|}}}|no|checked|}} }}<span class="percentage"><wsfield type="number" class="form-control form-number" min="0" max="100" name="Truth percentage" placeholder="0" value="{{{Truth percentage|}}}" />%</span></div> | ||
− | <div class="d-flex"><wsfield type="textarea" class="form-control mt-2" name="Truth text" placeholder=" | + | <div class="d-flex"><wsfield type="textarea" class="form-control mt-2" name="Truth text" placeholder="{{#var:@support}}">{{{Truth text|}}}</wsfield>{{#vardefine:@counter|0}}{{#arraymap:{{#ask:[[Class::Verdict file]][[Verdict::{{FULLPAGENAME}}]]|?=|?Modification date|Format=array|link=none}}|,|@@@|{{#widget:link |type=a|href=#image-modal-{{#var:@counter}} |datatoggle=modal |class=attachment |text={{fa|image}} }}<!-- |
-->{{Modal | -->{{Modal | ||
Line 256: | 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=<div class="d-flex">{{#widget:Check input |type=radio |name=Whole truth |text=yes |id=wholetruthdyes |value=yes |checked={{#ifeq:{{{Whole truth|}}}|no||checked}} }} | + | |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></div></div>|}}{{#tag:html|</details>}} }}<div class="d-flex">{{#widget:Check input |type=radio |name=Whole truth |text=yes |id=wholetruthdyes |value=yes |checked={{#ifeq:{{{Whole truth|}}}|no||checked}} }} | ||
{{#widget:Check input |type=radio |name=Whole truth |text=no |id=wholetruthno |value=no |checked={{#ifeq:{{{Whole truth|}}}|no|checked|}} }}<span class="percentage"><wsfield type="number" class="form-control form-number" min="0" max="100" name="Whole truth percentage" placeholder="0" value="{{{Whole truth percentage|}}}" />%</span></div> | {{#widget:Check input |type=radio |name=Whole truth |text=no |id=wholetruthno |value=no |checked={{#ifeq:{{{Whole truth|}}}|no|checked|}} }}<span class="percentage"><wsfield type="number" class="form-control form-number" min="0" max="100" name="Whole truth percentage" placeholder="0" value="{{{Whole truth percentage|}}}" />%</span></div> | ||
− | <wsfield type="textarea" class="form-control mt-2" name="Whole truth text" placeholder=" | + | <wsfield type="textarea" class="form-control mt-2" name="Whole truth text" placeholder="{{#var:@support}}">{{{Whole truth text|}}}</wsfield> |
}} | }} | ||
{{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=<div class="d-flex">{{#widget:Check input |type=radio |name=Nothing But the truth |text=yes |id=nothingyes |value=yes |checked={{#ifeq:{{{Nothing But the truth|}}}|no||checked}} }} | + | |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></div></div>|}}{{#tag:html|</details>}} }}<div class="d-flex">{{#widget:Check input |type=radio |name=Nothing But the truth |text=yes |id=nothingyes |value=yes |checked={{#ifeq:{{{Nothing But the truth|}}}|no||checked}} }} | ||
{{#widget:Check input |type=radio |name=Nothing But the truth |text=no |id=nothingno |value=no |checked={{#ifeq:{{{Nothing But the truth|}}}|no|checked|}} }}<span class="percentage"><wsfield type="number" class="form-control form-number" min="0" max="100" name="Nothing But the truth percentage" placeholder="0" value="{{{Nothing But the truth percentage|}}}" />%</span></div> | {{#widget:Check input |type=radio |name=Nothing But the truth |text=no |id=nothingno |value=no |checked={{#ifeq:{{{Nothing But the truth|}}}|no|checked|}} }}<span class="percentage"><wsfield type="number" class="form-control form-number" min="0" max="100" name="Nothing But the truth percentage" placeholder="0" value="{{{Nothing But the truth percentage|}}}" />%</span></div> | ||
− | <wsfield type="textarea" class="form-control mt-2" name="Nothing But the truth text" placeholder=" | + | <wsfield type="textarea" class="form-control mt-2" name="Nothing But the truth text" placeholder="{{#var:@support}}">{{{Nothing But the truth text|}}}</wsfield> |
}} | }} | ||
Line 273: | 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={{#arraymap:{{{Deceit text|}}}|,|@@@| | + | |2={{#ifeq:{{{Role|}}}|Plaintiff||{{#tag:html|<details open><summary>{{#ifeq:{{{Role|}}}|Judge|Verdicts|Plaintiff answer}}</summary>}}{{#arraymap:{{#var:verdictsarray}}|$|@@@| |
− | {{#ifexpr:{{#arraysize:@deciets}} = {{#var:@decietscount}}|<div class="original">|<div class="old-copy">}}<div class="d-flex"><wsfield type="textarea" class="form-control" name="Deceit[]" placeholder=" | + | <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><!-- | ||
+ | |||
+ | --></div>{{#vardefine:@decietscount|{{#expr:{{#var:@decietscount}} + 1 }} }}|}}</div></div> | ||
+ | |||
+ | |||
+ | |}}{{#tag:html|</details>}} }}{{#arraymap:{{{Deceit text|}}}|,|@@@| | ||
+ | {{#ifexpr:{{#arraysize:@deciets}} = {{#var:@decietscount}}|<div class="original">|<div class="old-copy">}}<div class="d-flex"><wsfield type="textarea" class="form-control" name="Deceit[]" placeholder="{{#var:@decision}}">{{#explode:{{{Deceit|}}}|,|{{#expr:{{#var:@decietscount}} - 1}} }}</wsfield> | ||
<span class="percentage"><wsfield type="number" class="form-control form-number" min="0" max="100" name="Deceit percentage[]" placeholder="0" value="{{#explode:{{{Deceit percentage|}}}|,|{{#expr:{{#var:@decietscount}} - 1}} }}" />%</span></div> | <span class="percentage"><wsfield type="number" class="form-control form-number" min="0" max="100" name="Deceit percentage[]" placeholder="0" value="{{#explode:{{{Deceit percentage|}}}|,|{{#expr:{{#var:@decietscount}} - 1}} }}" />%</span></div> | ||
− | <div class="d-flex"><wsfield type="textarea" class="form-control mt-2" name="Deceit text[]" placeholder=" | + | <div class="d-flex"><wsfield type="textarea" class="form-control mt-2" name="Deceit text[]" placeholder="{{#var:@support}}" >{{#explode:{{{Deceit text|}}}|,|{{#expr:{{#var:@decietscount}} - 1}} }}</wsfield>{{#ifexpr:{{#arraysize:@deciets}} = {{#var:@decietscount}}|<!--<span class="add-more deceit">{{fa|plus}}</span>-->}}</div></div>{{#vardefine:@decietscount|{{#expr:{{#var:@decietscount}} + 1 }} }} |
|}} | |}} | ||
}} | }} | ||
Line 282: | 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=<div class="original"><div class="d-flex"><wsfield type="textarea" class="form-control" name="Deceit[]" placeholder=" | + | |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><!-- | ||
+ | |||
+ | --></div>{{#vardefine:@decietscount|{{#expr:{{#var:@decietscount}} + 1 }} }}|}}</div></div> | ||
+ | |||
+ | |||
+ | |}} {{#tag:html|</details>}} }}<div class="original"><div class="d-flex"><wsfield type="textarea" class="form-control" name="Deceit[]" placeholder="{{#var:@decision}}">{{{Deceit|}}}</wsfield> | ||
<span class="percentage"><wsfield type="number" class="form-control form-number" min="0" max="100" name="Deceit percentage[]" placeholder="0" value="{{{Deceit percentage|}}}" />%</span></div> | <span class="percentage"><wsfield type="number" class="form-control form-number" min="0" max="100" name="Deceit percentage[]" placeholder="0" value="{{{Deceit percentage|}}}" />%</span></div> | ||
− | <div class="d-flex"><wsfield type="textarea" class="form-control mt-2" name="Deceit text[]" placeholder=" | + | <div class="d-flex"><wsfield type="textarea" class="form-control mt-2" name="Deceit text[]" placeholder="{{#var:@support}}">{{{Deceit text|}}}</wsfield><!--<span class="add-more deceit">{{fa|plus}}</span>--></div></div> |
}} | }} | ||
}} | }} | ||
Line 290: | 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=<div class="d-flex">{{#widget:Check input |type=radio |name=Deceit intended |text=yes |id=deceitintendedyes |value=yes |checked={{#ifeq:{{{Deceit intended|}}}|no||checked}} }} | + | |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></div></div>|}}{{#tag:html|</details>}} }}<div class="d-flex">{{#widget:Check input |type=radio |name=Deceit intended |text=yes |id=deceitintendedyes |value=yes |checked={{#ifeq:{{{Deceit intended|}}}|no||checked}} }} | ||
{{#widget:Check input |type=radio |name=Deceit intended |text=no |id=deceitintendedno |value=no |checked={{#ifeq:{{{Deceit intended|}}}|no|checked|}} }}<span class="percentage"><wsfield type="number" class="form-control form-number" min="0" max="100" name="Deceit intended percentage" placeholder="0" value="{{{Deceit intended percentage|}}}" />%</span></div> | {{#widget:Check input |type=radio |name=Deceit intended |text=no |id=deceitintendedno |value=no |checked={{#ifeq:{{{Deceit intended|}}}|no|checked|}} }}<span class="percentage"><wsfield type="number" class="form-control form-number" min="0" max="100" name="Deceit intended percentage" placeholder="0" value="{{{Deceit intended percentage|}}}" />%</span></div> | ||
− | <wsfield type="textarea" class="form-control mt-2" name="Deceit intended text" placeholder=" | + | <wsfield type="textarea" class="form-control mt-2" name="Deceit intended text" placeholder="{{#var:@support}}">{{{Deceit intended text|}}}</wsfield> |
}} | }} | ||
Line 300: | 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={{#arraymap:{{{Motivation text|}}}|,|@@@| | + | |2={{#ifeq:{{{Role|}}}|Plaintiff||{{#tag:html|<details open><summary>{{#ifeq:{{{Role|}}}|Judge|Verdicts|Plaintiff answer}}</summary>}}{{#arraymap:{{#var:verdictsarray}}|$|@@@| |
− | {{#ifexpr:{{#arraysize:@deciets}} = {{#var:@decietscount}}|<div class="original">|<div class="old-copy">}}<div class="d-flex"><wsfield type="textarea" class="form-control" name="Motivation[]" placeholder=" | + | <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><!-- | ||
+ | |||
+ | --></div>{{#vardefine:@decietscount|{{#expr:{{#var:@decietscount}} + 1 }} }}|}}</div></div> | ||
+ | |||
+ | |||
+ | |}} {{#tag:html|</details>}} }}{{#arraymap:{{{Motivation text|}}}|,|@@@| | ||
+ | {{#ifexpr:{{#arraysize:@deciets}} = {{#var:@decietscount}}|<div class="original">|<div class="old-copy">}}<div class="d-flex"><wsfield type="textarea" class="form-control" name="Motivation[]" placeholder="{{#var:@decision}}">{{#explode:{{{Motivation|}}}|,|{{#expr:{{#var:@decietscount}} - 1}} }}</wsfield> | ||
<span class="percentage"><wsfield type="number" class="form-control form-number" min="0" max="100" name="Motivation percentage[]" placeholder="0" value="{{#explode:{{{Motivation percentage|}}}|,|{{#expr:{{#var:@decietscount}} - 1}} }}" />%</span></div> | <span class="percentage"><wsfield type="number" class="form-control form-number" min="0" max="100" name="Motivation percentage[]" placeholder="0" value="{{#explode:{{{Motivation percentage|}}}|,|{{#expr:{{#var:@decietscount}} - 1}} }}" />%</span></div> | ||
− | <div class="d-flex"><wsfield type="textarea" class="form-control mt-2" name="Motivation text[]" placeholder=" | + | <div class="d-flex"><wsfield type="textarea" class="form-control mt-2" name="Motivation text[]" placeholder="{{#var:@support}}">{{#explode:{{{Motivation text|}}}|,|{{#expr:{{#var:@decietscount}} - 1}} }}</wsfield>{{#ifexpr:{{#arraysize:@deciets}} = {{#var:@decietscount}}|<!--<span class="add-more motivation">{{fa|plus}}</span>-->}}</div></div>{{#vardefine:@decietscount|{{#expr:{{#var:@decietscount}} + 1 }} }} |
|}} | |}} | ||
}} | }} | ||
Line 309: | 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=<div class="original"><div class="d-flex"><wsfield type="textarea" class="form-control" name="Motivation[]" placeholder=" | + | |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><!-- | ||
+ | |||
+ | --></div>{{#vardefine:@decietscount|{{#expr:{{#var:@decietscount}} + 1 }} }}|}}</div></div> | ||
+ | |||
+ | |||
+ | |}} {{#tag:html|</details>}} }}<div class="original"><div class="d-flex"><wsfield type="textarea" class="form-control" name="Motivation[]" placeholder="{{#var:@decision}}">{{{Motivation|}}}</wsfield> | ||
<span class="percentage"><wsfield type="number" class="form-control form-number" min="0" max="100" name="Motivation percentage[]" placeholder="0" value="{{{Motivation percentage|}}}" />%</span></div> | <span class="percentage"><wsfield type="number" class="form-control form-number" min="0" max="100" name="Motivation percentage[]" placeholder="0" value="{{{Motivation percentage|}}}" />%</span></div> | ||
− | <div class="d-flex"><wsfield type="textarea" class="form-control mt-2" name="Motivation text[]" placeholder=" | + | <div class="d-flex"><wsfield type="textarea" class="form-control mt-2" name="Motivation text[]" placeholder="{{#var:@support}}">{{{Motivation text|}}}</wsfield><!--<span class="add-more motivation">{{fa|plus}}</span>--></div></div> |
}} | }} | ||
}} | }} | ||
Line 317: | 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=<div class="d-flex">{{#widget:Check input |type=radio |name=Social acceptability |text=Acceptable |id=socialacceptabilityyes |value=Acceptable |checked={{#ifeq:{{{Social acceptability|}}}|Unacceptable||checked}} }} | + | |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></div></div>|}}{{#tag:html|</details>}} }}<div class="d-flex">{{#widget:Check input |type=radio |name=Social acceptability |text=Acceptable |id=socialacceptabilityyes |value=Acceptable |checked={{#ifeq:{{{Social acceptability|}}}|Unacceptable||checked}} }} | ||
{{#widget:Check input |type=radio |name=Social acceptability |text=Unacceptable |id=socialacceptabilityno |value=Unacceptable |checked={{#ifeq:{{{Social acceptability|}}}|Unacceptable|checked|}} }}<span class="percentage"><wsfield type="number" class="form-control form-number" min="0" max="100" name="Social acceptability percentage" placeholder="0" value="{{{Social acceptability percentage|}}}" />%</span></div> | {{#widget:Check input |type=radio |name=Social acceptability |text=Unacceptable |id=socialacceptabilityno |value=Unacceptable |checked={{#ifeq:{{{Social acceptability|}}}|Unacceptable|checked|}} }}<span class="percentage"><wsfield type="number" class="form-control form-number" min="0" max="100" name="Social acceptability percentage" placeholder="0" value="{{{Social acceptability percentage|}}}" />%</span></div> | ||
− | <wsfield type="textarea" class="form-control mt-2" name="Social acceptability text" placeholder=" | + | <wsfield type="textarea" class="form-control mt-2" name="Social acceptability text" placeholder="{{#var:@support}}">{{{Social acceptability text|}}}</wsfield> |
}} | }} | ||
{{Item responsive |Cols={{#var:@cols|4-8}} | {{Item responsive |Cols={{#var:@cols|4-8}} | ||
− | |1=<h3>What is the | + | |1=<h3>What is the Label for the Lie needed to Improve the Social Acceptability?</h3> |
− | |2=<div class="d-flex"><wsfield type="textarea" class="form-control" name="Label" | + | |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></div></div>|}}{{#tag:html|</details>}} }}<div class="d-flex"><wsfield type="textarea" class="form-control" name="Label" placeholder="Label" >{{{Label|}}}</wsfield> | ||
<span class="percentage"><wsfield type="number" class="form-control form-number" min="0" max="100" name="Label percentage" placeholder="0" value="{{{Label percentage|}}}" />%</span></div> | <span class="percentage"><wsfield type="number" class="form-control form-number" min="0" max="100" name="Label percentage" placeholder="0" value="{{{Label percentage|}}}" />%</span></div> | ||
− | <wsfield type="textarea" class="form-control mt-2" name="Label text" placeholder=" | + | <wsfield type="textarea" class="form-control mt-2" name="Label text" placeholder="{{#var:@support}}">{{{Label text|}}}</wsfield> |
}} | }} | ||
{{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><!-- | ||
Line 337: | Line 523: | ||
-->{{#tag:html|<script> | -->{{#tag:html|<script> | ||
− | var addMore = document.querySelectorAll('.add-more'),i; | + | //var addMore = document.querySelectorAll('.add-more'),i; |
− | for(i = 0; i < addMore.length; ++i){ | + | //for(i = 0; i < addMore.length; ++i){ |
− | + | // addMore[i].addEventListener('click', addMoreInputs, false); | |
− | } | + | //} |
− | var newDeceit = document.querySelector('.add-more.deceit').closest('.col-md-8').querySelector('.original').innerHTML; | + | //var newDeceit = document.querySelector('.add-more.deceit').closest('.col-md-8').querySelector('.original').innerHTML; |
− | var newMotivation = document.querySelector('.add-more.motivation').closest('.col-md-8').querySelector('.original').innerHTML; | + | //var newMotivation = document.querySelector('.add-more.motivation').closest('.col-md-8').querySelector('.original').innerHTML; |
function addMoreInputs(){ | function addMoreInputs(){ | ||
Line 370: | Line 556: | ||
this.remove(); | this.remove(); | ||
} | } | ||
+ | |||
+ | function copyVerdict(btn){ | ||
+ | |||
+ | var wrapper = btn.closest('.col-md-8') | ||
+ | var verdict = btn.closest('.verdict-item') | ||
+ | var no = verdict.querySelector('.truth-no') | ||
+ | var yes = verdict.querySelector('.truth-yes') | ||
+ | var check_no = wrapper.querySelector('.checkinput-button label [value="no"]') | ||
+ | var check_yes = wrapper.querySelector('.checkinput-button label [value="yes"]') | ||
+ | var check_accept = wrapper.querySelector('.checkinput-button label [value="Acceptable"]') | ||
+ | var check_unaccept = wrapper.querySelector('.checkinput-button label [value="Unacceptable"]') | ||
+ | var precentage = verdict.querySelector('.inner-percentage') | ||
+ | var precantage_input = wrapper.querySelector('[type="number"]') | ||
+ | var verdict_text = verdict.querySelectorAll('.bg-white') | ||
+ | var support_input = wrapper.querySelector('[placeholder="{{#var:@support}}"]') | ||
+ | var decision_input = wrapper.querySelector('[placeholder="{{#var:@decision}}"]') | ||
+ | var label_input = wrapper.querySelector('[placeholder="Label"]') | ||
+ | |||
+ | |||
+ | if(no){ | ||
+ | if(check_no){ | ||
+ | check_no.click() | ||
+ | } | ||
+ | } | ||
+ | |||
+ | if(yes){ | ||
+ | if(check_yes){ | ||
+ | check_yes.click() | ||
+ | } | ||
+ | } | ||
+ | |||
+ | if(no){ | ||
+ | if(check_unaccept){ | ||
+ | check_unaccept.click() | ||
+ | } | ||
+ | } | ||
+ | |||
+ | if(yes){ | ||
+ | if(check_accept){ | ||
+ | check_accept.click() | ||
+ | } | ||
+ | } | ||
+ | |||
+ | if(precentage){ | ||
+ | precantage_input.value = precentage.innerText.replace('%', '') | ||
+ | } | ||
+ | |||
+ | if(decision_input){ | ||
+ | decision_input.value = verdict_text[0].innerText | ||
+ | support_input.value = verdict_text[1].innerText | ||
+ | }else if(label_input){ | ||
+ | label_input.value = verdict_text[0].innerText | ||
+ | support_input.value = verdict_text[1].innerText | ||
+ | }else{ | ||
+ | support_input.value = verdict_text[0].innerText | ||
+ | } | ||
+ | |||
+ | } | ||
+ | |||
</script>}} | </script>}} | ||
</includeonly> | </includeonly> |
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= }}