Difference between revisions of "Prosecute a case"

From cm2.liecourt.com
(Fill database)
 
(Fill database)
Line 120: Line 120:
  
  
<h1>Prosecute a case</h1>
+
<h1>Prosecute a case</h1><!--
 +
-->{{#vardefine:@spent|{{#ask:[[Class::Workflow]][[Filed by::User:{{CURRENTLOGGEDUSER}}]]|link=none|format=count}} }}<!--
 +
-->{{#vardefine:@bought|{{#arraymap:{{#ask:[[Class::Order]][[User::User:{{CURRENTLOGGEDUSER}}]][[Transaction::+]]|?Tokens|format=array|link=none}}|,|@@@|{{#explode:@@@|<PROP>|1}}|+}} }}<!--
 +
-->{{#vardefine:@sent|{{#arraymap:{{#ask:[[Class::Transaction]][[User::User:{{CURRENTLOGGEDUSER}}]][[To::!None]]|?Tokens|link=none|format=array}}|,|@@@|{{#explode:@@@|<PROP>|1}}|+}} }}<!--
 +
-->{{#vardefine:@recieved|{{#arraymap:{{#ask:[[Class::Transaction]][[To::User:{{CURRENTLOGGEDUSER}}]]|?Tokens|link=none|format=array}}|,|@@@|{{#explode:@@@|<PROP>|1}}|+}} }}<!--
 +
-->{{#vardefine:@balance|{{#expr:{{#if:{{#var:@bought}}|{{#var:@bought}}|0}} + {{#if:{{#var:@recieved}}|{{#var:@recieved}}|0}} - {{#expr:{{#if:{{#var:@spent}}|{{#var:@spent}}|0}} + {{#if:{{#var:@sent}}|{{#var:@sent}}|0}} }} }} }}
 +
{{#ifexpr:{{#var:@balance}} > 0|
  
 
<wsform action="addToWiki" id="case-form" enctype="multipart/form-data" mwreturn="{{fullurl:User:{{CURRENTLOGGEDUSER}} }}">
 
<wsform action="addToWiki" id="case-form" enctype="multipart/form-data" mwreturn="{{fullurl:User:{{CURRENTLOGGEDUSER}} }}">
Line 128: Line 134:
 
<wsfield type="hidden" name="Filed by"  value="User:{{CURRENTLOGGEDUSER}}" />
 
<wsfield type="hidden" name="Filed by"  value="User:{{CURRENTLOGGEDUSER}}" />
 
<wsfield type="hidden" name="Case ID" value="1234-{{#time: U | now}}-{{#time: U | now}}" />
 
<wsfield type="hidden" name="Case ID" value="1234-{{#time: U | now}}-{{#time: U | now}}" />
 +
  
 
{{Item responsive |Cols={{#var:@cols|4-8}}
 
{{Item responsive |Cols={{#var:@cols|4-8}}
Line 237: Line 244:
  
  
</script>}}{{Managed
+
</script>}}|<div class="m-5 alert alert-primary">0 TruthTokens, please buy TruthTokens on your profile page</div>
 +
<wsform>
 +
{{Item responsive |Cols={{#var:@cols|4-8}}
 +
|1=<h3>What is the Lie?</h3>
 +
|2=<wsfield type="text" class="form-control mt-2" name="Lie" placeholder="Lie title" value="{{{Lie|}}}"  />
 +
}}
 +
 
 +
{{Item responsive |Cols={{#var:@cols|4-8}}
 +
|1=<h3>Lie topic</h3>
 +
|2=<wsselect name="Topic" placeholder="Placeholder" class="form-control">
 +
<wsfield type="option" value="Environment">Environment</wsfield>
 +
<wsfield type="option" value="Topic2">Topic 2</wsfield>
 +
</wsselect>
 +
}}
 +
 
 +
{{Item responsive |Cols={{#var:@cols|4-8}}
 +
|1=<h3>Description of the lie </h3>
 +
|2=
 +
<wsfield type="textarea" class="form-control mt-2" name="Description" placeholder="Description" value="{{{Description|}}}" />
 +
}}
 +
{{Item responsive |Cols={{#var:@cols|4-8}}
 +
|1=<h3>Markup Lie and Thruth parts</h3>
 +
|2=<wsfield type="button" class="btn btn-red btn-mark" onclick="document.execCommand('bold', false, null)">{{fa|highlighter}} Mark Lie</wsfield>
 +
<wsfield type="button" class="btn btn-green btn-mark " onclick="document.execCommand('italic', false, null)">{{fa|highlighter}} Mark Truth</wsfield><wsfield type="button" class="btn btn-gray btn-mark " ">{{fa|highlighter}} Clear mark</wsfield> 
 +
{{#Widget:Markup}}
 +
}}
 +
 
 +
{{Item responsive |Cols={{#var:@cols|4-8}}
 +
|1=<h3>Lie locations</h3>
 +
|2=<div class="original"><div class="d-flex">
 +
<wsfield type="text" class="form-control mt-2" name="Locations[]" placeholder="Location" value="{{{Locations|}}}" /><span class="add-more locations">{{fa|plus}}</span></div></div>
 +
}}
 +
 
 +
 
 +
{{Item responsive |Cols={{#var:@cols|4-8}}
 +
|1=<h3>Evidence of lie appearance</h3>
 +
|2=<div class="d-flex">{{#vardefine:@filename|Import-cse-{{#time: U | now}}.png}}
 +
{{#vardefine:@pagecontent|<nowiki>{{File for case|Case file=</nowiki>1234-132525-767967-3865381265853<nowiki>|Uploaded by=</nowiki>{{CURRENTLOGGEDUSER}}<nowiki>}}</nowiki>}}
 +
<wslabel for="file-upload" class="attachment">{{fa|paperclip}}
 +
<wsfield class="d-none" type="file" name="File" id="file-upload" verbose_id="hiddendiv" target="{{#var:@filename}}" pagecontent="{{#var:@pagecontent}}" /></wslabel>
 +
<div class="upload-preview hidden" id="hiddendiv"></div></div>
 +
}}
 +
{{Item responsive |Cols={{#var:@cols|4-8}}
 +
|1=<h3>Class suit?</h3>
 +
|2=<div class="d-flex">
 +
{{#widget:Check input |type=radio |name=Type  |text=yes |id=truthyes |value=Class}}
 +
{{#widget:Check input |type=radio |name=Type |text=no |id=truthno |value=Individual  |checked=checked }}
 +
</div>
 +
}}
 +
{{Item responsive |Cols={{#var:@cols|4-8}}
 +
|1=
 +
|2=
 +
 
 +
 
 +
 
 +
}}</wsform> }}{{Managed
 
|Version=1.0
 
|Version=1.0
 
|Version notes=1.0 - First managed version
 
|Version notes=1.0 - First managed version

Revision as of 09:16, 14 May 2020


Prosecute a case

Expression error: Unexpected < operator.