Difference between revisions of "Template:Messages"

From cm2.liecourt.com
(Fill database)
 
 
(2 intermediate revisions by 2 users not shown)
Line 14: Line 14:
 
|}}<!--
 
|}}<!--
  
-->{{#arraymap:{{#ask:[[Class::Workflow]][[Jurors::{{{Fullpagename|}}}]][[Change::!none]]|?Change seen by|?Suit date|link=none|format=array|limit=9999}}|,|@@@|<!--
+
-->{{#arraymap:{{#ask:[[Class::Workflow]][[Jurors::{{{Fullpagename|}}}]][[Change::!none]]|?Change seen by|?Slot|link=none|format=array|limit=9999}}|,|@@@|<!--
 
 
 
-->{{#arraydefine:@change|{{#arraymap:{{#explode:@@@|<PROP>|1}}|<MANY>|###|###|,}} }}
 
-->{{#arraydefine:@change|{{#arraymap:{{#explode:@@@|<PROP>|1}}|<MANY>|###|###|,}} }}
Line 49: Line 49:
  
 
{{#tag:wsform|
 
{{#tag:wsform|
{{#tag:wscreate||mwwrite=Workflow/|mwtemplate=Workflow|mwoption=range:00001-99999 }}
+
{{#tag:wscreate||mwwrite=Workflow/|mwtemplate=Workflow|mwoption=add_random }}
 
{{#tag:wsfield||type=hidden|name=Lie|value={{#explode:@@@|<PROP>|13}} }}
 
{{#tag:wsfield||type=hidden|name=Lie|value={{#explode:@@@|<PROP>|13}} }}
 
{{#tag:wsfield||type=hidden|name=Type|value=Class }}
 
{{#tag:wsfield||type=hidden|name=Type|value=Class }}
Line 58: Line 58:
 
{{#tag:wsedit||target={{PAGEID:{{#explode:@@@|<PROP>|0}}}}|template=Workflow|formfield=Class request|value=Approved}}<!--  
 
{{#tag:wsedit||target={{PAGEID:{{#explode:@@@|<PROP>|0}}}}|template=Workflow|formfield=Class request|value=Approved}}<!--  
 
  -->{{#tag:wsedit||target={{PAGEID:{{#explode:@@@|<PROP>|0}}}}|template=Workflow|formfield=Stage|value=Settled}}
 
  -->{{#tag:wsedit||target={{PAGEID:{{#explode:@@@|<PROP>|0}}}}|template=Workflow|formfield=Stage|value=Settled}}
{{#tag:wsfield||type=submit|value=Approve request|class=btn btn-green btn-half }}
+
{{#tag:wsfield||type=submit|value=Approve request|onclick=this.classList.add('pending')|class=btn btn-green btn-half }}
 
|action=addToWiki}}
 
|action=addToWiki}}
 
|{{#tag:wsform|
 
|{{#tag:wsform|
Line 64: Line 64:
 
{{#tag:wsedit||target={{PAGEID:{{#explode:@@@|<PROP>|0}}}}|template=Workflow|formfield=Stage|value=Settled}}
 
{{#tag:wsedit||target={{PAGEID:{{#explode:@@@|<PROP>|0}}}}|template=Workflow|formfield=Stage|value=Settled}}
 
{{#tag:wsedit||target={{PAGEID:{{#explode:{{#var:@classinfo}}|<PROP>|0}}}}|template=Workflow|formfield=Class case IDs|value={{#if:{{#explode:{{#var:@classinfo}}|<PROP>|11}}| {{#arraymap:{{#explode:{{#var:@classinfo}}|<PROP>|11}}|<MANY>|###|###|,}} , {{#explode:@@@|<PROP>|0}}  |{{#explode:@@@|<PROP>|0}} }} }}
 
{{#tag:wsedit||target={{PAGEID:{{#explode:{{#var:@classinfo}}|<PROP>|0}}}}|template=Workflow|formfield=Class case IDs|value={{#if:{{#explode:{{#var:@classinfo}}|<PROP>|11}}| {{#arraymap:{{#explode:{{#var:@classinfo}}|<PROP>|11}}|<MANY>|###|###|,}} , {{#explode:@@@|<PROP>|0}}  |{{#explode:@@@|<PROP>|0}} }} }}
{{#tag:wsfield||type=submit|value=Approve request|class=btn btn-green btn-half }}
+
{{#tag:wsfield||type=submit|value=Approve request|onclick=this.classList.add('pending')|class=btn btn-green btn-half }}
  
 
|action=addToWiki}}
 
|action=addToWiki}}
Line 85: Line 85:
 
{{#widget:link|type=a|href={{#var:@partpage}}|class=btn btn-green mt-4 mb-4|text=Create verdict}}
 
{{#widget:link|type=a|href={{#var:@partpage}}|class=btn btn-green mt-4 mb-4|text=Create verdict}}
 
|{{#tag:wsform|  
 
|{{#tag:wsform|  
{{#tag:wscreate||mwwrite=Participant/|mwtemplate=Participant|mwoption=range:00001-99999|mwfollow=true }}
+
{{#tag:wscreate||mwwrite=Participant/|mwtemplate=Participant|mwoption=add_random|mwfollow=true }}
 
<!--{{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Plaintiff verdict|value=Yes}}-->
 
<!--{{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Plaintiff verdict|value=Yes}}-->
 
{{#tag:wsfield||type=hidden|name=User|value={{{Fullpagename|}}} }}
 
{{#tag:wsfield||type=hidden|name=User|value={{{Fullpagename|}}} }}
Line 91: Line 91:
 
{{#tag:wsfield||type=hidden|name=Case ID|value={{#explode:@@@|<PROP>|1}} }}
 
{{#tag:wsfield||type=hidden|name=Case ID|value={{#explode:@@@|<PROP>|1}} }}
 
{{#tag:wsfield||type=hidden|name=Workflow|value={{#explode:@@@|<PROP>|0}} }}
 
{{#tag:wsfield||type=hidden|name=Workflow|value={{#explode:@@@|<PROP>|0}} }}
{{#tag:wsfield||type=submit|value=Create verdict|class=btn btn-green ml-4 mt-4 mb-4}}
+
{{#tag:wsfield||type=submit|value=Create verdict|onclick=this.classList.add('pending')|class=btn btn-green ml-4 mt-4 mb-4}}
 
|action=addToWiki}} }}
 
|action=addToWiki}} }}
 
{{#tag:html|</details>}}
 
{{#tag:html|</details>}}
Line 97: Line 97:
 
|}}
 
|}}
  
{{#arraymap:{{#ask:[[Class::Workflow]][[Random judge::{{{Fullpagename|}}}]]|?Declined judge|?Filed by|?Case ID|?Lie|?Topic|?Description|?Markup|?Facts|?Locations|?Type|?Class case IDs|?Reason for judge decline|link=none|format=array|sep=$$$|limit=9999}}|$$$|@@@|
+
{{#arraymap:{{#ask:[[Class::Workflow]][[Random judge::{{{Fullpagename|}}}]]|?Declined judge|?Filed by|?Case ID|?Lie|?Topic|?Description|?Markup|?Facts|?Locations|?Type|?Class case IDs|?Reason for judge decline|?Slot|link=none|format=array|sep=$$$|limit=9999}}|$$$|@@@|
 
<div class="info-item">
 
<div class="info-item">
 
{{#tag:html|<details>
 
{{#tag:html|<details>
 
<summary>You have been selected as a {{#ifeq:{{#explode:@@@|<PROP>|10}}|Class|Class&nbsp;}}Judge</summary>}}
 
<summary>You have been selected as a {{#ifeq:{{#explode:@@@|<PROP>|10}}|Class|Class&nbsp;}}Judge</summary>}}
 +
<div class="suit-ace">
 +
<div class="info-row"><b>Suit date</b>{{#explode:@@@|<PROP>|13}}</div>
 +
</div>
 
<div class="d-none suit-ace">
 
<div class="d-none suit-ace">
 
{{#ifeq:{{#explode:@@@|<PROP>|10}}|Class|<h2>Class cases information</h2>{{#arraymap:{{#explode:@@@|<PROP>|11}}|<MANY>|###|<div class="info-row">Case: ###</div>|}}|<h2>Case information</h2><div class="info-row"><b>Lie</b>{{#explode:@@@|<PROP>|4}}</div>
 
{{#ifeq:{{#explode:@@@|<PROP>|10}}|Class|<h2>Class cases information</h2>{{#arraymap:{{#explode:@@@|<PROP>|11}}|<MANY>|###|<div class="info-row">Case: ###</div>|}}|<h2>Case information</h2><div class="info-row"><b>Lie</b>{{#explode:@@@|<PROP>|4}}</div>
Line 171: Line 174:
 
{{#tag:wsedit||target={{PAGEID:{{#explode:@@@|<PROP>|0}} }}|template=Workflow|formfield=Reason for judge decline}}
 
{{#tag:wsedit||target={{PAGEID:{{#explode:@@@|<PROP>|0}} }}|template=Workflow|formfield=Reason for judge decline}}
 
{{#tag:wsfield||type=textarea|placeholder=Reason|name=Reason for judge decline|class=form-control mb-4}}
 
{{#tag:wsfield||type=textarea|placeholder=Reason|name=Reason for judge decline|class=form-control mb-4}}
{{#tag:wsfield||type=submit|value=Save|class=btn btn-green}}
+
{{#tag:wsfield||type=submit|value=Save|onclick=this.classList.add('pending')|class=btn btn-green}}
 
|action=addToWiki|class=d-none pb-4|id=dec-{{#explode:{{#explode:@@@|<PROP>|0}}|/|1}} }}
 
|action=addToWiki|class=d-none pb-4|id=dec-{{#explode:{{#explode:@@@|<PROP>|0}}|/|1}} }}
<div class="d-flex justify-content-center pb-4" id="{{#explode:{{#explode:@@@|<PROP>|0}}|/|1}}">{{#tag:wsfield|Decline judge role|type=button|onclick=openInput('dec','{{#explode:{{#explode:@@@|<PROP>|0}}|/|1}}')|class=btn btn-half btn-red}}{{#tag:wsfield|Accept judge role|type=button|onclick=submitInput('{{#explode:{{#explode:@@@|<PROP>|0}}|/|1}}');|class=btn btn-half btn-green}}</div><!--submitInput('{{#explode:{{#explode:@@@|<PROP>|0}}|/|1}}'-->
+
<div class="d-flex justify-content-center pb-4" id="{{#explode:{{#explode:@@@|<PROP>|0}}|/|1}}">{{#tag:wsfield|Decline judge role|type=button|onclick=openInput('dec','{{#explode:{{#explode:@@@|<PROP>|0}}|/|1}}')|class=btn btn-half btn-red}}{{#tag:wsfield|Accept judge role|type=button|onclick=this.classList.add('pending');submitInput('{{#explode:{{#explode:@@@|<PROP>|0}}|/|1}}');|class=btn btn-half btn-green}}</div><!--submitInput('{{#explode:{{#explode:@@@|<PROP>|0}}|/|1}}'-->
 
{{#tag:wsform|
 
{{#tag:wsform|
{{#tag:wscreate||mwwrite=Participant/|mwtemplate=Participant|mwoption=range:00001-99999|mwfollow=true}}
+
{{#tag:wscreate||mwwrite=Participant/|mwtemplate=Participant|mwoption=add_random|mwfollow=true}}
 
{{#tag:wsedit||target={{PAGEID:{{#explode:@@@|<PROP>|0}} }}|template=Workflow|formfield=Stage|value=Judge accepted}}
 
{{#tag:wsedit||target={{PAGEID:{{#explode:@@@|<PROP>|0}} }}|template=Workflow|formfield=Stage|value=Judge accepted}}
 
{{#tag:wsedit||target={{PAGEID:{{#explode:@@@|<PROP>|0}} }}|template=Workflow|formfield=Judge|value={{{Fullpagename|}}} }}
 
{{#tag:wsedit||target={{PAGEID:{{#explode:@@@|<PROP>|0}} }}|template=Workflow|formfield=Judge|value={{{Fullpagename|}}} }}
Line 183: Line 186:
 
{{#tag:wsfield||type=hidden|name=Case ID|value={{#explode:@@@|<PROP>|3}} }}
 
{{#tag:wsfield||type=hidden|name=Case ID|value={{#explode:@@@|<PROP>|3}} }}
 
{{#tag:wsfield||type=hidden|name=Workflow|value={{#explode:@@@|<PROP>|0}} }}
 
{{#tag:wsfield||type=hidden|name=Workflow|value={{#explode:@@@|<PROP>|0}} }}
{{#tag:wsfield||type=submit|value=Save|class=btn btn-green mt-4|id=submit-{{#explode:{{#explode:@@@|<PROP>|0}}|/|1}}}}
+
{{#tag:wsfield||type=submit|value=Save|onclick=this.classList.add('pending')|class=btn btn-green mt-4|id=submit-{{#explode:{{#explode:@@@|<PROP>|0}}|/|1}}}}
 
|action=addToWiki|class=d-none pb-4|id=acp-{{#explode:{{#explode:@@@|<PROP>|0}}|/|1}} }}</div>
 
|action=addToWiki|class=d-none pb-4|id=acp-{{#explode:{{#explode:@@@|<PROP>|0}}|/|1}} }}</div>
 
{{#tag:html|</details>}}
 
{{#tag:html|</details>}}
 
|}}
 
|}}
{{#arraymap:{{#ask:[[Class::Workflow]][[Random juror::{{{Fullpagename|}}}]]|?Declined juror|?Filed by|?Case ID|?Lie|?Topic|?Description|?Markup|?Facts|?Locations|?Juror amount|?Jurors|?Judge|?Random juror|?Suit date|link=none|format=array|sep=$$$|limit=9999}}|$$$|@@@|
+
{{#arraymap:{{#ask:[[Class::Workflow]][[Random juror::{{{Fullpagename|}}}]]|?Declined juror|?Filed by|?Case ID|?Lie|?Topic|?Description|?Markup|?Facts|?Locations|?Juror amount|?Jurors|?Judge|?Random juror|?Slot|link=none|format=array|sep=$$$|limit=9999}}|$$$|@@@|
 
<div class="info-item">
 
<div class="info-item">
 
{{#tag:html|<details>
 
{{#tag:html|<details>
 
<summary>You have been selected as a Juror</summary>}}
 
<summary>You have been selected as a Juror</summary>}}
 
<h2>Case information</h2>
 
<h2>Case information</h2>
<div class="info-row"><b>Suit date</b>{{#time:d M Y|{{#explode:@@@|<PROP>|14}} }}</div>
+
<div class="info-row"><b>Suit date</b>{{#explode:@@@|<PROP>|14}}</div>
 
<!--<div class="info-row"><b>Lie</b>{{#explode:@@@|<PROP>|4}}</div>
 
<!--<div class="info-row"><b>Lie</b>{{#explode:@@@|<PROP>|4}}</div>
 
<div class="info-row"><b>Topic</b>{{#explode:@@@|<PROP>|5}}</div>
 
<div class="info-row"><b>Topic</b>{{#explode:@@@|<PROP>|5}}</div>
Line 207: Line 210:
 
{{#tag:wsedit||target={{PAGEID:{{#explode:@@@|<PROP>|0}}}}|template=Workflow|formfield=Declined juror|value={{#if:{{#explode:@@@|<PROP>|1}}|{{#arraymap:{{#explode:@@@|<PROP>|1}}|<MANY>|@@@|@@@|,}}, {{{Fullpagename|}}}| {{{Fullpagename|}}} }} }}
 
{{#tag:wsedit||target={{PAGEID:{{#explode:@@@|<PROP>|0}}}}|template=Workflow|formfield=Declined juror|value={{#if:{{#explode:@@@|<PROP>|1}}|{{#arraymap:{{#explode:@@@|<PROP>|1}}|<MANY>|@@@|@@@|,}}, {{{Fullpagename|}}}| {{{Fullpagename|}}} }} }}
 
{{#ifexpr:{{#arraysize:@jurrors}} < {{#var:@nrofjurorswanted}}|
 
{{#ifexpr:{{#arraysize:@jurrors}} < {{#var:@nrofjurorswanted}}|
{{#tag:wsfield||type=submit|value=Decline juror role|class=btn btn-red btn-half}}
+
{{#tag:wsfield||type=submit|onclick=this.classList.add('pending')|value=Decline juror role|class=btn btn-red btn-half}}
 
}}
 
}}
 
|action=addToWiki}}
 
|action=addToWiki}}
 
{{#tag:wsform|
 
{{#tag:wsform|
{{#tag:wscreate||mwwrite=Participant/|mwtemplate=Participant|mwoption=range:00001-99999|mwfollow=true}}
+
{{#tag:wscreate||mwwrite=Participant/|mwtemplate=Participant|mwoption=add_random|mwfollow=true}}
 
{{#tag:wsfield||type=hidden|name=User|value={{{Fullpagename|}}} }}
 
{{#tag:wsfield||type=hidden|name=User|value={{{Fullpagename|}}} }}
 
{{#tag:wsfield||type=hidden|name=Role|value=Juror }}
 
{{#tag:wsfield||type=hidden|name=Role|value=Juror }}
 
{{#arraydefine:@countjurors|{{#explode:@@@|<PROP>|11}}|<MANY>}}
 
{{#arraydefine:@countjurors|{{#explode:@@@|<PROP>|11}}|<MANY>}}
{{#tag:wsfield||type=hidden|name=Name|value=Juror {{#expr:{{#if:{{#arraysize:@countjurors}}|{{#arraysize:@countjurors}}|0}} + 1}} }}
+
  {{#vardefine:@sub|<nowiki>{{subst:#if:true|{{subst:#expr:{{subst:#ask:[[Role::Juror]][[Workflow::</nowiki>{{#explode:@@@|<PROP>|0}}<nowiki>]][[Class::Participant]]|format=count}} + 1 }} }}</nowiki> }}
 +
  {{#tag:wsfield||type=hidden|name=Name|value=Juror {{#var:@sub}} }}
 
{{#tag:wsfield||type=hidden|name=Workflow|value={{#explode:@@@|<PROP>|0}} }}
 
{{#tag:wsfield||type=hidden|name=Workflow|value={{#explode:@@@|<PROP>|0}} }}
 
{{#tag:wsfield||type=hidden|name=Case ID|value={{#explode:@@@|<PROP>|3}} }}
 
{{#tag:wsfield||type=hidden|name=Case ID|value={{#explode:@@@|<PROP>|3}} }}
Line 226: Line 230:
 
}} }}
 
}} }}
 
{{#ifexpr:{{#arraysize:@jurrors}} < {{#var:@nrofjurorswanted}}|
 
{{#ifexpr:{{#arraysize:@jurrors}} < {{#var:@nrofjurorswanted}}|
{{#tag:wsfield||type=submit|value=Accept juror role|class=btn btn-green btn-half }}
+
{{#tag:wsfield||type=submit|value=Accept juror role|onclick=this.classList.add('pending')|class=btn btn-green btn-half }}
 
}}
 
}}
 
|action=addToWiki}}
 
|action=addToWiki}}

Latest revision as of 12:28, 8 April 2022

Messages

A case you filed is settled

Case ID:<ul><li>The symbol "[[" was used in a place where it is not useful.</li> <!--br--><li>The part ""." of the query was not understood.Results might not be as expected.</li> <!--br--><li>The part "]]" of the query was not understood.Results might not be as expected.</li></ul>
Suit:The query description has an empty condition.

A case you are jurying is changed
Case ID:<ul><li>The symbol "[[" was used in a place where it is not useful.</li> <!--br--><li>The part ""." of the query was not understood.Results might not be as expected.</li> <!--br--><li>The part "]]" of the query was not understood.Results might not be as expected.</li></ul>
Suit:The query description has an empty condition.
Suit date:

A case awaits

Are you sure you want to accept?


Lie
Topic
Description
Marked truth and lies
Locations



Please fill in your plaintiff verdict

Lie

The query description has an empty condition." >Create verdict

You have been selected as a Judge

Suit date

Case information

Lie
Topic
Description
Marked truth and lies
Locations
Screenshot

Plaintiff verdict

Is it the Truth? %
Is it the Whole Truth? %
Is it Nothing But the Truth? %
What is the Deceit?
Is the Deceit Intended? %
What is the Motivation behind the Lie?
What is the Social Acceptability for the lie? %
What is the label for the lie needed to Improve the Social Acceptability? %

Some use of "" in your query was not closed by a matching "".<">

You have been selected as a Juror

Case information

Suit date