Difference between revisions of "Template:User"
From cm2.liecourt.com
(Fill database) |
(Fill database) |
||
Line 23: | Line 23: | ||
{{#ifeq:{{#var:@allowed}}|Yes|<div class="row mt-4"> | {{#ifeq:{{#var:@allowed}}|Yes|<div class="row mt-4"> | ||
<div class="col-12 col-lg-8 mt-4"> | <div class="col-12 col-lg-8 mt-4"> | ||
+ | {{#ifeq:{{#urlget:msg}}|casestarted|<div class="alert alert-success">Case started! Please check your messages for the required actions.</div>}} | ||
<div class="row"> | <div class="row"> | ||
<div class="profile-img col-2 d-lg-block d-none"> | <div class="profile-img col-2 d-lg-block d-none"> | ||
Line 107: | Line 108: | ||
<div class="col-12 col-lg-4"> | <div class="col-12 col-lg-4"> | ||
<div class="info-box"> | <div class="info-box"> | ||
− | <h2>TruthTokens</h2><div id="balance"><!-- | + | <h2>TruthTokens</h2><div id="balance"> |
+ | <!-- | ||
-->{{#vardefine:@spent|{{#ask:[[Class::Workflow]][[Filed by::{{FULLPAGENAME}}]]|link=none|format=count}} }}<!-- | -->{{#vardefine:@spent|{{#ask:[[Class::Workflow]][[Filed by::{{FULLPAGENAME}}]]|link=none|format=count}} }}<!-- | ||
-->{{#vardefine:@bought|{{#arraymap:{{#ask:[[Class::Order]][[User::{{FULLPAGENAME}}]][[Transaction::+]]|?Tokens|format=array|link=none}}|,|@@@|{{#explode:@@@|<PROP>|1}}|+}} }}<!-- | -->{{#vardefine:@bought|{{#arraymap:{{#ask:[[Class::Order]][[User::{{FULLPAGENAME}}]][[Transaction::+]]|?Tokens|format=array|link=none}}|,|@@@|{{#explode:@@@|<PROP>|1}}|+}} }}<!-- | ||
Line 122: | Line 124: | ||
<wsfield type="hidden" name="Name" value="{{{Name|}}}" /> | <wsfield type="hidden" name="Name" value="{{{Name|}}}" /> | ||
<wsfield type="hidden" name="User" value="{{FULLPAGENAME}}" /> | <wsfield type="hidden" name="User" value="{{FULLPAGENAME}}" /> | ||
+ | {{#vardefine:@payid|{{#ask:[[Class::Order]][[User::{{FULLPAGENAME}}]][[Transaction::+]][[Paytrace validated customer id::+]]|?Paytrace validated customer id|limit=1|link=none|pagetitle=hide|format=plainlist|headers=hide|mainlabel=-|searchlabel=}} }} | ||
+ | {{#if:{{#var:@payid}}|<wsfield type="hidden" name="Paytrace validated customer id" value="{{#var:@payid}}" />}} | ||
<div class="total-token-price">Total $ <span id="total-price" >200</span>,-</div> | <div class="total-token-price">Total $ <span id="total-price" >200</span>,-</div> | ||
<!--{{#widget:Pay}}--> | <!--{{#widget:Pay}}--> | ||
Line 145: | Line 149: | ||
<h2>Messages</h2> | <h2>Messages</h2> | ||
{{#arraymap:{{#ask:[[Class::Workflow]][[Filed by::{{FULLPAGENAME}}]][[Stage::Settled]]|?Settled seen by|format=array}}|,|@@@| | {{#arraymap:{{#ask:[[Class::Workflow]][[Filed by::{{FULLPAGENAME}}]][[Stage::Settled]]|?Settled seen by|format=array}}|,|@@@| | ||
− | {{#arraydefine:@seen|{{#explode:@@@|<PROP>|1}} }} | + | {{#arraydefine:@seen|{{#arraymap:{{#explode:@@@|<PROP>|1}}|<MANY>|###|###|,}} }} |
− | {{#if:{{#arraysearch:@seen|{{FULLPAGENAME}} }}||{{#tag:html|<details> | + | {{#if:{{#arraysearch:@seen|{{FULLPAGENAME}} }}| | |
+ | {{#tag:html|<details> | ||
<summary>A case you filed is settled</summary>}} | <summary>A case you filed is settled</summary>}} | ||
<div class="info-row"><b>Suit:</b>{{#ask:[[Class::Suit]][[Workflow::{{#explode:@@@|<PROP>|0}}]]}} | <div class="info-row"><b>Suit:</b>{{#ask:[[Class::Suit]][[Workflow::{{#explode:@@@|<PROP>|0}}]]}} | ||
− | </div> | + | </div>{{#tag:wsform|{{#tag:wsedit||target={{PAGEID:{{#explode:@@@|<PROP>|0}}}}|template=Workflow|formfield=Settled seen by|value={{#if:{{#explode:@@@|<PROP>|1}}|{{#arraymap:{{#explode:@@@|<PROP>|1}}|<MANY>|###|###|,}}, {{FULLPAGENAME}}|{{FULLPAGENAME}} }} }} |
− | {{#tag:wsform| | ||
− | {{#tag:wsedit||target={{PAGEID:{{#explode:@@@|<PROP>|0}}}}|template=Workflow|formfield=Settled seen by|value={{FULLPAGENAME}}}} | ||
{{#tag:wsfield||type=submit|value=Remove message|class=btn btn-green mt-4 mb-4}} | {{#tag:wsfield||type=submit|value=Remove message|class=btn btn-green mt-4 mb-4}} | ||
|action=addToWiki}} | |action=addToWiki}} | ||
{{#tag:html|</details>}} }} | {{#tag:html|</details>}} }} | ||
|}}<!-- | |}}<!-- | ||
+ | |||
+ | -->{{#arraymap:{{#ask:[[Class::Workflow]][[Jurors::{{FULLPAGENAME}}]][[Change::!none]]|?Change seen by|?Suit date|link=none|format=array}}|,|@@@|<!-- | ||
+ | |||
+ | -->{{#arraydefine:@change|{{#arraymap:{{#explode:@@@|<PROP>|1}}|<MANY>|###|###|,}} }} | ||
+ | {{#if:{{#arraysearch:@change|{{FULLPAGENAME}} }}| |<div class="info-item">{{#tag:html|<details> | ||
+ | <summary>A case you are jurying is changed</summary>}} | ||
+ | <div class="info-row"><b>Suit:</b>{{#ask:[[Class::Suit]][[Workflow::{{#explode:@@@|<PROP>|0}}]]}}</div> | ||
+ | <div class="info-row"><b>Suit date:</b>{{#explode:@@@|<PROP>|2}}</div> | ||
+ | {{#tag:wsform|{{#tag:wsedit||target={{PAGEID:{{#explode:@@@|<PROP>|0}}}}|template=Workflow|formfield=Change seen by|value={{#if:{{#explode:@@@|<PROP>|1}}|{{#arraymap:{{#explode:@@@|<PROP>|1}}|<MANY>|###|###|,}}, {{FULLPAGENAME}}|{{FULLPAGENAME}} }} }} | ||
+ | {{#tag:wsfield||type=submit|value=Remove message|class=btn btn-green mt-4 mb-4}} | ||
+ | |action=addToWiki}} {{#tag:html|</details>}} | ||
+ | </div>}} |}}<!-- | ||
Line 167: | Line 182: | ||
<div class="info-row"><b>Description</b>{{#explode:@@@|<PROP>|6}}</div> | <div class="info-row"><b>Description</b>{{#explode:@@@|<PROP>|6}}</div> | ||
<div class="info-row"><b>Marked truth and lies </b><div class="lie-input">{{#explode:@@@|<PROP>|7}}</div></div> | <div class="info-row"><b>Marked truth and lies </b><div class="lie-input">{{#explode:@@@|<PROP>|7}}</div></div> | ||
− | <div class="info-row"><b>Locations</b>{{#arraymap:{{#explode:@@@|<PROP>|9}}|,|@@@|@@@|}}</div> | + | <div class="info-row"><b>Locations</b>{{#arraymap:{{#explode:@@@|<PROP>|9}}|,|@@@|@@@|<br>}}</div> |
<div class="info-row"><b>Link</b>{{#ask:[[Class::Suit]][[Case ID::{{#explode:@@@|<PROP>|3}}]]|format=plainlist}}</div> | <div class="info-row"><b>Link</b>{{#ask:[[Class::Suit]][[Case ID::{{#explode:@@@|<PROP>|3}}]]|format=plainlist}}</div> | ||
<h2>Class information</h2> | <h2>Class information</h2> | ||
Line 182: | Line 197: | ||
<div class="info-row"><b>Description</b>{{#explode:{{#var:@classinfo}}|<PROP>|6}}</div> | <div class="info-row"><b>Description</b>{{#explode:{{#var:@classinfo}}|<PROP>|6}}</div> | ||
<div class="info-row"><b>Marked truth and lies </b><div class="lie-input">{{#explode:{{#var:@classinfo}}|<PROP>|7}}</div></div> | <div class="info-row"><b>Marked truth and lies </b><div class="lie-input">{{#explode:{{#var:@classinfo}}|<PROP>|7}}</div></div> | ||
− | <div class="info-row"><b>Locations</b>{{#arraymap:{{#explode:{{#var:@classinfo}}|<PROP>|9}}|,|@@@|@@@|}}</div> | + | <div class="info-row"><b>Locations</b>{{#arraymap:{{#explode:{{#var:@classinfo}}|<PROP>|9}}|,|@@@|@@@|<br>}}</div> |
<div class="info-row"><b>Link</b>{{#ask:[[Class::Suit]][[Case ID::{{#explode:{{#var:@classinfo}}|<PROP>|3}}]]|format=plainlist}}</div> | <div class="info-row"><b>Link</b>{{#ask:[[Class::Suit]][[Case ID::{{#explode:{{#var:@classinfo}}|<PROP>|3}}]]|format=plainlist}}</div> | ||
}}<!-- if new --> | }}<!-- if new --> | ||
Line 240: | Line 255: | ||
|}} | |}} | ||
− | {{#arraymap:{{#ask:[[Class::Workflow]][[Random judge::{{FULLPAGENAME}}]]|?Declined judge|?Filed by|?Case ID|?Lie|?Topic|?Description|?Markup|?Facts|?Locations|?Type|?Class case IDs|link=none|format=array|sep=$$$}}|$$$|@@@| | + | {{#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=$$$}}|$$$|@@@| |
<div class="info-item"> | <div class="info-item"> | ||
{{#tag:html|<details> | {{#tag:html|<details> | ||
Line 249: | Line 264: | ||
<div class="info-row"><b>Description</b>{{#explode:@@@|<PROP>|6}}</div> | <div class="info-row"><b>Description</b>{{#explode:@@@|<PROP>|6}}</div> | ||
<div class="info-row"><b>Marked truth and lies </b><div class="lie-input">{{#explode:@@@|<PROP>|7}}</div></div> | <div class="info-row"><b>Marked truth and lies </b><div class="lie-input">{{#explode:@@@|<PROP>|7}}</div></div> | ||
− | <div class="info-row"><b>Locations</b>{{#arraymap:{{#explode:@@@|<PROP>|9}}|,|@@@|@@@|}}</div> | + | <div class="info-row"><b>Locations</b>{{#arraymap:{{#explode:@@@|<PROP>|9}}|,|@@@|@@@|<br>}}</div> |
+ | <div class="info-row"><b>Screenshot</b>{{#vardefine:@counter|0}}{{#arraymap:{{#ask:[[Class::Case file]][[Case file::{{#explode:@@@|<PROP>|3}}]]|?=|?Modification date|Format=array|link=none}}|,|@@@|{{#widget:link |type=a|href=#image-modal-{{#var:@counter}} |datatoggle=modal |class=attachment |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 | ||
+ | }}<!-- | ||
+ | -->|}} </div> | ||
<h2>Plaintiff verdict</h2> | <h2>Plaintiff verdict</h2> | ||
{{#vardefine:@plver|{{#ask:[[Class::Verdict]][[Context::None]][[Case ID::{{#explode:@@@|<PROP>|3}}]][[Role::Plaintiff]] | {{#vardefine:@plver|{{#ask:[[Class::Verdict]][[Context::None]][[Case ID::{{#explode:@@@|<PROP>|3}}]][[Role::Plaintiff]] | ||
Line 295: | Line 321: | ||
<div class="info-row"><b>What is the Social Acceptability for the lie?</b>{{#explode:{{#var:@plver}}|<PROP>|22}} <span class="percnt">{{#explode:{{#var:@plver}}|<PROP>|23}}%</span><br>{{#explode:{{#var:@plver}}|<PROP>|24}}</div> | <div class="info-row"><b>What is the Social Acceptability for the lie?</b>{{#explode:{{#var:@plver}}|<PROP>|22}} <span class="percnt">{{#explode:{{#var:@plver}}|<PROP>|23}}%</span><br>{{#explode:{{#var:@plver}}|<PROP>|24}}</div> | ||
<div class="info-row"><b>What is the label for the lie needed to Improve the Social Acceptability?</b>{{#explode:{{#var:@plver}}|<PROP>|25}} <span class="percnt">{{#explode:{{#var:@plver}}|<PROP>|26}}%</span><br>{{#explode:{{#var:@plver}}|<PROP>|27}}</div>}} | <div class="info-row"><b>What is the label for the lie needed to Improve the Social Acceptability?</b>{{#explode:{{#var:@plver}}|<PROP>|25}} <span class="percnt">{{#explode:{{#var:@plver}}|<PROP>|26}}%</span><br>{{#explode:{{#var:@plver}}|<PROP>|27}}</div>}} | ||
+ | {{#if:{{#explode:@@@|<PROP>|12}}|<h2>Former selected judge declined</h2> | ||
+ | <div class="info-row"><b>Reason</b>{{#explode:@@@|<PROP>|12}}</div>}} | ||
{{#tag:wsform|<h2>Reason for decline</h2> | {{#tag:wsform|<h2>Reason for decline</h2> | ||
{{#tag:wsedit||target={{PAGEID:{{#explode:@@@|<PROP>|0}} }}|template=Workflow|formfield=Random judge|value={{#ask:[[Class::Member]]{{#arraymap:{{#explode:@@@|<PROP>|1}}|<MANY>|@@@|[[!@@@]]|}}[[!{{#explode:@@@|<PROP>|2}}]][[!{{FULLPAGENAME}}]][[Role::Judge]]|Limit=1|format=array|order=random}}}} | {{#tag:wsedit||target={{PAGEID:{{#explode:@@@|<PROP>|0}} }}|template=Workflow|formfield=Random judge|value={{#ask:[[Class::Member]]{{#arraymap:{{#explode:@@@|<PROP>|1}}|<MANY>|@@@|[[!@@@]]|}}[[!{{#explode:@@@|<PROP>|2}}]][[!{{FULLPAGENAME}}]][[Role::Judge]]|Limit=1|format=array|order=random}}}} | ||
Line 327: | Line 355: | ||
<div class="info-row"><b>Lies</b>{{#arraymap:{{#explode:@@@|<PROP>|7}}|,|@@@|@@@|}}</div> | <div class="info-row"><b>Lies</b>{{#arraymap:{{#explode:@@@|<PROP>|7}}|,|@@@|@@@|}}</div> | ||
<div class="info-row"><b>Facts</b>{{#arraymap:{{#explode:@@@|<PROP>|8}}|,|@@@|@@@|}}</div> | <div class="info-row"><b>Facts</b>{{#arraymap:{{#explode:@@@|<PROP>|8}}|,|@@@|@@@|}}</div> | ||
− | <div class="info-row"><b>Locations</b>{{#arraymap:{{#explode:@@@|<PROP>|9}}|,|@@@|@@@|}}</div> | + | <div class="info-row"><b>Locations</b>{{#arraymap:{{#explode:@@@|<PROP>|9}}|,|@@@|@@@|<br>}}</div> |
− | {{#arraydefine:@jurrors|{{#explode:@@@|<PROP>|11}} }} | + | {{#arraydefine:@jurrors|{{#arraymap:{{#explode:@@@|<PROP>|11}}|<MANY>|@@@|@@@|,}} }} |
<div class="d-flex justify-content-center pb-4"> | <div class="d-flex justify-content-center pb-4"> | ||
{{#tag:wsform| | {{#tag:wsform| | ||
− | {{#tag:wsedit||target={{PAGEID:{{#explode:@@@|<PROP>|0}}}}|template=Workflow|formfield=Random juror|value={{#ask:[[Class::Member]][[!{{{Filed by|}}}]][[Role::Juror]][[!{{#explode:@@@|<PROP>|12}}]][[!{{#explode:@@@|<PROP>|13}}]]{{#arraymap:{{#explode:@@@|<PROP>|11}}| | + | {{#tag:wsedit||target={{PAGEID:{{#explode:@@@|<PROP>|0}}}}|template=Workflow|formfield=Random juror|value={{#ask:[[Class::Member]][[!{{{Filed by|}}}]][[Role::Juror]][[!{{#explode:@@@|<PROP>|12}}]][[!{{#explode:@@@|<PROP>|13}}]]{{#arraymap:{{#explode:@@@|<PROP>|11}}|<MANY>|@@@|[[!@@@]]|}}{{#arraymap:{{#explode:@@@|<PROP>|1}}|<MANY>|@@@|[[!@@@]]|}}|Limit=1|format=array|order=random}} }} |
{{#tag:wsedit||target={{PAGEID:{{#explode:@@@|<PROP>|0}}}}|template=Workflow|formfield=Declined juror|value={{#if:{{#explode:@@@|<PROP>|1}}|{{#arraymap:{{#explode:@@@|<PROP>|1}}|<MANY>|@@@|@@@|,}}, {{#explode:@@@|<PROP>|13}}| {{#explode:@@@|<PROP>|13}} }} }} | {{#tag:wsedit||target={{PAGEID:{{#explode:@@@|<PROP>|0}}}}|template=Workflow|formfield=Declined juror|value={{#if:{{#explode:@@@|<PROP>|1}}|{{#arraymap:{{#explode:@@@|<PROP>|1}}|<MANY>|@@@|@@@|,}}, {{#explode:@@@|<PROP>|13}}| {{#explode:@@@|<PROP>|13}} }} }} | ||
{{#ifexpr:{{#arraysize:@jurrors}} < {{#explode:@@@|<PROP>|10}}| | {{#ifexpr:{{#arraysize:@jurrors}} < {{#explode:@@@|<PROP>|10}}| | ||
Line 341: | Line 369: | ||
{{#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 }} | ||
+ | {{#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}} }} | ||
− | {{#tag:wsedit||target={{PAGEID:{{#explode:@@@|<PROP>|0}}}}|template=Workflow|formfield=Jurors|value={{#if:{{#explode:@@@|<PROP>|11}}|{{#explode:@@@|<PROP>|11}} | + | {{#tag:wsedit||target={{PAGEID:{{#explode:@@@|<PROP>|0}}}}|template=Workflow|formfield=Jurors|value={{#if:{{#explode:@@@|<PROP>|11}}|{{#arraymap:{{#explode:@@@|<PROP>|11}}|<MANY>|@@@|@@@|,}}, {{FULLPAGENAME}}| {{FULLPAGENAME}} }} }} |
{{#ifeq:{{#arraysize:@jurrors}}|{{#expr:{{#explode:@@@|<PROP>|10}} - 1 }}| | {{#ifeq:{{#arraysize:@jurrors}}|{{#expr:{{#explode:@@@|<PROP>|10}} - 1 }}| | ||
{{#tag:wsedit||target={{PAGEID:{{#explode:@@@|<PROP>|0}}}}|template=Workflow|formfield=Random juror|value=done}} | {{#tag:wsedit||target={{PAGEID:{{#explode:@@@|<PROP>|0}}}}|template=Workflow|formfield=Random juror|value=done}} | ||
− | {{#tag:wsedit||target={{PAGEID:{{#explode:@@@|<PROP>|0}}}}|template=Workflow|formfield=Stage|value=In progress}}|{{#tag:wsedit||target={{PAGEID:{{#explode:@@@|<PROP>|0}}}}|template=Workflow|formfield=Random juror|value={{#ask:[[Class::Member]][[!{{{Filed by|}}}]][[Role::Juror]][[!{{#explode:@@@|<PROP>|12}}]][[!{{#explode:@@@|<PROP>|13}}]]{{#arraymap:{{#explode:@@@|<PROP>|11}}| | + | {{#tag:wsedit||target={{PAGEID:{{#explode:@@@|<PROP>|0}}}}|template=Workflow|formfield=Stage|value=In progress}}|{{#tag:wsedit||target={{PAGEID:{{#explode:@@@|<PROP>|0}}}}|template=Workflow|formfield=Random juror|value={{#ask:[[Class::Member]][[!{{{Filed by|}}}]][[Role::Juror]][[!{{#explode:@@@|<PROP>|12}}]][[!{{#explode:@@@|<PROP>|13}}]]{{#arraymap:{{#explode:@@@|<PROP>|11}}|<MANY>|@@@|[[!@@@]]|}}{{#arraymap:{{#explode:@@@|<PROP>|1}}|<MANY>|@@@|[[!@@@]]|}}|Limit=1|format=array|order=random}} }} |
}} | }} | ||
{{#ifexpr:{{#arraysize:@jurrors}} < {{#explode:@@@|<PROP>|10}}| | {{#ifexpr:{{#arraysize:@jurrors}} < {{#explode:@@@|<PROP>|10}}| |
Revision as of 14:45, 15 May 2020
This is the Member template. It should be called in the following format:
{{Member |User= |Roles= |Name= |Filed by= }}
TruthTokens
× 3
Please log in first.
Messages
Participant in 0 case