Difference between revisions of "Edit case"

From cm2.liecourt.com
(Fill database)
(Fill database)
 
(9 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"  />
  
  
Line 163: Line 164:
 
}}  
 
}}  
  
{{Item responsive |Cols={{#var:@cols|4-8}}
+
<h1>The Lie and Context</h1><!--  
|1=<h3>The Lie and Context</h3>
 
|2={{#tag:wsfield|{{#explode:{{#var:@info}}|<PROP>|4}}|placeholder=The Lie and Context|type=textarea|class=form-control mt-2|name=Description}}
 
}}<!--  
 
 
  -->{{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>
Line 186: Line 184:
 
}}
 
}}
  
<div class="d-none">
+
 
 +
{{Item responsive |Cols={{#var:@cols|4-8}}
 +
|1=<h3>Meeting link</h3>
 +
|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}}
 
{{Item responsive |Cols={{#var:@cols|4-8}}
 
|1=<h3>Evidence screenshot</h3>  
 
|1=<h3>Evidence screenshot</h3>  
|2=<div class="">{{#Widget:Multi upload|id={{#var:@id}} }}</div>
+
|2=<div class="case-img-wrapper"><!--
  }}</div>
+
-->{{#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>

Latest revision as of 10:08, 25 August 2022