Difference between revisions of "Edit case"
From cm2.liecourt.com
(Created page with "{{#if:{{#urlget:id}}| {{#vardefine:allowed|{{#ifeq:{{#show:Workflow/{{#urldecode:{{#urlget:id}} }}|?Filed by}}|User:{{CURRENTLOGGEDUSER}}|yes}}{{#ifsysop:yes}} }} {{#if:{{#var...") |
(Fill database) |
||
(10 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
{{#vardefine:allowed|{{#ifeq:{{#show:Workflow/{{#urldecode:{{#urlget:id}} }}|?Filed by}}|User:{{CURRENTLOGGEDUSER}}|yes}}{{#ifsysop:yes}} }} | {{#vardefine:allowed|{{#ifeq:{{#show:Workflow/{{#urldecode:{{#urlget:id}} }}|?Filed by}}|User:{{CURRENTLOGGEDUSER}}|yes}}{{#ifsysop:yes}} }} | ||
{{#if:{{#var:allowed}}| | {{#if:{{#var:allowed}}| | ||
− | {{#vardefine:@info|{{#ask:[[Workflow/{{#urldecode:{{#urlget:id}} }}]]|?Lie|?Markup|?Topic|?Description|?Locations|?Accusation|link=none|format=array}} }} | + | {{#vardefine:@info|{{#ask:[[Workflow/{{#urldecode:{{#urlget:id}} }}]]|?Lie|?Markup|?Topic|?Description|?Locations|?Accusation|?uuid|?Meeting|link=none|format=array}} }} |
Line 150: | Line 150: | ||
<wsedit target="{{#var:pid}}" template="Workflow" formfield="Markup" /> | <wsedit target="{{#var:pid}}" template="Workflow" formfield="Markup" /> | ||
<wsedit target="{{#var:pid}}" template="Workflow" formfield="Locations" /> | <wsedit target="{{#var:pid}}" template="Workflow" formfield="Locations" /> | ||
+ | <wsedit target="{{#var:pid}}" template="Workflow" formfield="Meeting" /> | ||
{{Item responsive |Cols={{#var:@cols|4-8}} | {{Item responsive |Cols={{#var:@cols|4-8}} | ||
− | |1=<h3> | + | |1=<h3>Name for case</h3> |
− | |2={{#tag:wsfield||type=text|class=form-control mt-2|name=Lie|placeholder= | + | |2={{#tag:wsfield||type=text|class=form-control mt-2|name=Lie|placeholder=Short phrase|value={{#explode:{{#var:@info}}|<PROP>|1}} }} |
}} | }} | ||
{{Item responsive |Cols={{#var:@cols|4-8}} | {{Item responsive |Cols={{#var:@cols|4-8}} | ||
− | |1=<h3>Lie | + | |1=<h3>Lie Category (optional)</h3> |
|2={{#tag:wsfield||type=text|class=form-control mt-2|name=Topic|value={{#explode:{{#var:@info}}|<PROP>|3}} }} | |2={{#tag:wsfield||type=text|class=form-control mt-2|name=Topic|value={{#explode:{{#var:@info}}|<PROP>|3}} }} | ||
}} | }} | ||
− | + | <h1>The Lie and Context</h1><!-- | |
− | |||
− | |||
− | |||
-->{{Item responsive |Cols={{#var:@cols|4-8}} | -->{{Item responsive |Cols={{#var:@cols|4-8}} | ||
|1=<h3>Accusation with Evidence</h3> | |1=<h3>Accusation with Evidence</h3> | ||
− | |2={{#tag:wsfield|{{#explode:{{#var:@info}}|<PROP>|6}}|type=textarea|class=form-control mt-2|name=Accusation}} | + | |2={{#tag:wsfield|{{#explode:{{#var:@info}}|<PROP>|6}}|placeholder=Text with links to evidence|type=textarea|class=form-control mt-2|name=Accusation}} |
}} | }} | ||
{{Item responsive |Cols={{#var:@cols|4-8}} | {{Item responsive |Cols={{#var:@cols|4-8}} | ||
− | |1=<h3>Markup <span class="red">Lie</span> and <span class="dark-blue"> | + | |1=<h3>Markup <span class="red">Lie</span> and any <span class="dark-blue">Truths</span></h3> |
|2=<wsfield type="button" class="btn btn-red btn-mark" onclick="document.execCommand('bold', false, null)">{{fa|highlighter}} Mark Lie</wsfield> | |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-mark dark-blue" onclick="document.execCommand('italic', false, null)">{{fa|highlighter}} Mark Truth</wsfield><wsfield type="button" class="btn btn-gray btn-mark " onclick="unformat()">{{fa|highlighter}} Clear mark</wsfield> | <wsfield type="button" class="btn btn-mark dark-blue" onclick="document.execCommand('italic', false, null)">{{fa|highlighter}} Mark Truth</wsfield><wsfield type="button" class="btn btn-gray btn-mark " onclick="unformat()">{{fa|highlighter}} Clear mark</wsfield> | ||
Line 179: | Line 177: | ||
{{Item responsive |Cols={{#var:@cols|4-8}} | {{Item responsive |Cols={{#var:@cols|4-8}} | ||
− | |1=<h3>Lie | + | |1=<h3>Lie location</h3> |
|2={{#arraymap:{{#explode:{{#var:@info}}|<PROP>|5}}|,|@@@|{{#tag:wsfield||type=text|class=form-control mt-2|name=Locations[]|value=@@@ }}|}} | |2={{#arraymap:{{#explode:{{#var:@info}}|<PROP>|5}}|,|@@@|{{#tag:wsfield||type=text|class=form-control mt-2|name=Locations[]|value=@@@ }}|}} | ||
Line 186: | Line 184: | ||
}} | }} | ||
− | + | ||
{{Item responsive |Cols={{#var:@cols|4-8}} | {{Item responsive |Cols={{#var:@cols|4-8}} | ||
− | |1=<h3>Evidence | + | |1=<h3>Meeting link</h3> |
− | |2=<div class="">{{#Widget:Multi upload|id={{#var:@ | + | |2=<div class="">{{#tag:wsfield||type=text|class=form-control mt-2|name=Meeting|placeholder=Skype/Zoom/...|value={{#explode:{{#var:@info}}|<PROP>|8}} }}</div> |
− | + | }} | |
+ | |||
+ | <div > | ||
+ | {{Item responsive |Cols={{#var:@cols|4-8}} | ||
+ | |1=<h3>Evidence screenshot</h3> | ||
+ | |2=<div class="case-img-wrapper"><!-- | ||
+ | -->{{#arraymap:{{#ask:[[Class::Case file]][[Case file::{{#explode:{{#var:@info}}|<PROP>|7}}]]|link=none}}|,|@@@|<span class="btn position-relative img-thumbnail m-1" data-removefile="@@@"> <span class=" position-absolute bg-white p-1">{{fa|times }}</span>[[@@@|link=|70px]]</span>|}}<!-- | ||
+ | |||
+ | -->{{#Widget:Multi upload|edit=true|id={{#explode:{{#var:@info}}|<PROP>|7}} }}</div> | ||
+ | <small class="muted">* file selction will be uploaded on submitting</small> | ||
+ | }}</div> | ||
<!--{{Item responsive |Cols={{#var:@cols|4-8}} | <!--{{Item responsive |Cols={{#var:@cols|4-8}} | ||
|1=<h3>Class suit?</h3> | |1=<h3>Class suit?</h3> |