Difference between revisions of "Template:Verdict"

From cm2.liecourt.com
(Undo revision 3250 by Merel (talk))
(Tag: Undo)
 
(4 intermediate revisions by 2 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 516: 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= 
}}