Difference between revisions of "Prosecute a case"
From cm2.liecourt.com
(Fill database) |
(Fill database) |
||
Line 21: | Line 21: | ||
font-weight: 600; | font-weight: 600; | ||
} | } | ||
− | #case-form input, #case-form textarea{ | + | #case-form input, #case-form textarea, #case-form select{ |
border-radius: 30px; | border-radius: 30px; | ||
background: #f2f2f2; | background: #f2f2f2; | ||
+ | border: none; | ||
padding-left: 24px; | padding-left: 24px; | ||
− | + | box-shadow: none; | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
} | } | ||
.checkinput-button input[type="radio"]:checked + span { | .checkinput-button input[type="radio"]:checked + span { | ||
Line 135: | Line 124: | ||
− | <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:@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:@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:@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}} }} }} }} | + | -->{{#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| | {{#ifexpr:{{#var:@balance}} > 0| | ||
Line 200: | Line 187: | ||
{{#widget:Check input |type=radio |name=Type |text=no |id=truthno |value=Individual |checked=checked }} | {{#widget:Check input |type=radio |name=Type |text=no |id=truthno |value=Individual |checked=checked }} | ||
</div> | </div> | ||
− | }} | + | }} |
− | |||
{{Item responsive |Cols={{#var:@cols|4-8}} | {{Item responsive |Cols={{#var:@cols|4-8}} | ||
|1= | |1= | ||
|2= | |2= | ||
<wsfield type="textarea" name="Markup" id="real-field" class="d-none" /> | <wsfield type="textarea" name="Markup" id="real-field" class="d-none" /> | ||
− | <wsfield type="button" class="btn btn-green float-right" onclick="submitRealField()">Prosecute | + | <wsfield type="button" class="btn btn-green float-right" onclick="submitRealField()">Prosecute</wsfield> |
+ | |||
<wsfield type="submit" id="real-submit" class="d-none" value="niks" /> | <wsfield type="submit" id="real-submit" class="d-none" value="niks" /> | ||
− | }} | + | }} |
− | |||
</wsform> | </wsform> | ||
{{#tag:html|<script> | {{#tag:html|<script> | ||
Line 264: | Line 250: | ||
</script>}}|<div class="m-5 alert alert-primary">0 TruthTokens, please buy TruthTokens on your profile page</div> | </script>}}|<div class="m-5 alert alert-primary">0 TruthTokens, please buy TruthTokens on your profile page</div> | ||
− | <wsform | + | <wsform> |
{{Item responsive |Cols={{#var:@cols|4-8}} | {{Item responsive |Cols={{#var:@cols|4-8}} | ||
|1=<h3>What is the Lie?</h3> | |1=<h3>What is the Lie?</h3> | ||
− | |2=<wsfield type="text" class="form-control mt-2" name="Lie" placeholder="Lie title" value="{{{Lie|}}}" | + | |2=<wsfield type="text" class="form-control mt-2" name="Lie" placeholder="Lie title" value="{{{Lie|}}}" /> |
}} | }} | ||
{{Item responsive |Cols={{#var:@cols|4-8}} | {{Item responsive |Cols={{#var:@cols|4-8}} | ||
|1=<h3>Lie topic</h3> | |1=<h3>Lie topic</h3> | ||
− | |2=<wsselect name="Topic" placeholder="Placeholder" class="form-control | + | |2=<wsselect name="Topic" placeholder="Placeholder" class="form-control"> |
<wsfield type="option" value="Environment">Environment</wsfield> | <wsfield type="option" value="Environment">Environment</wsfield> | ||
<wsfield type="option" value="Topic2">Topic 2</wsfield> | <wsfield type="option" value="Topic2">Topic 2</wsfield> | ||
Line 281: | Line 267: | ||
|1=<h3>Description of the lie </h3> | |1=<h3>Description of the lie </h3> | ||
|2= | |2= | ||
− | <wsfield type="textarea" class="form-control mt-2" name="Description" placeholder="Description" value="{{{Description|}}} | + | <wsfield type="textarea" class="form-control mt-2" name="Description" placeholder="Description" value="{{{Description|}}}" /> |
}} | }} | ||
{{Item responsive |Cols={{#var:@cols|4-8}} | {{Item responsive |Cols={{#var:@cols|4-8}} | ||
|1=<h3>Markup Lie and Thruth parts</h3> | |1=<h3>Markup Lie and Thruth parts</h3> | ||
− | |2=<wsfield type="button" class="btn btn-red btn-mark | + | |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 | + | <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}} | {{#Widget:Markup}} | ||
}} | }} | ||
Line 293: | Line 279: | ||
|1=<h3>Lie locations</h3> | |1=<h3>Lie locations</h3> | ||
|2=<div class="original"><div class="d-flex"> | |2=<div class="original"><div class="d-flex"> | ||
− | <wsfield type="text" class="form-control mt-2" name="Locations[]" placeholder="Location" value="{{{Locations|}}} | + | <wsfield type="text" class="form-control mt-2" name="Locations[]" placeholder="Location" value="{{{Locations|}}}" /><span class="add-more locations">{{fa|plus}}</span></div></div> |
}} | }} | ||
Line 302: | Line 288: | ||
{{#vardefine:@pagecontent|<nowiki>{{File for case|Case file=</nowiki>1234-132525-767967-3865381265853<nowiki>|Uploaded by=</nowiki>{{CURRENTLOGGEDUSER}}<nowiki>}}</nowiki>}} | {{#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}} | <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}} | + | <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> | <div class="upload-preview hidden" id="hiddendiv"></div></div> | ||
}} | }} |
Revision as of 13:36, 18 May 2020
Prosecute a case
Expression error: Unexpected < operator.