Difference between revisions of "Template:Workflow"
From cm2.liecourt.com
(Fill database) |
|||
Line 114: | Line 114: | ||
{{Item responsive |Cols={{#var:@cols|4-8}} | {{Item responsive |Cols={{#var:@cols|4-8}} | ||
|1=<b>Invited judge</b> | |1=<b>Invited judge</b> | ||
− | |2={{{Random judge|}}} | + | |2={{{Random judge|}}}<!-- |
− | }} | + | -->{{#vardefine:@user|{{PAGENAME:{{{Random judge|}}} }} }}<!-- |
− | }} | + | -->{{#if:{{#show:User:{{#var:@user}}|?Email}}|{{#tag:wsform| |
− | + | {{#tag:wsemail||parselast=true|template=Template:Role invite}} | |
− | {{#if:{{{Judge|}}}| | + | {{#tag:wsfield||type=hidden|name=User|value={{#var:@user}} }} |
+ | {{#tag:wsfield||type=hidden|name=Workflow|value={{PAGENAME}} }} | ||
+ | {{#tag:wsfield||type=submit|style=padding-right:24px;|value=Notify again}} | ||
+ | |action=mail|style=display: inline;}}|{{#tag:wsfield||type=submit|style=padding-right:24px;|value=No e-mail|disabled=disabled}} }}<!-- | ||
+ | -->}} | ||
+ | }}{{#if:{{{Judge|}}}| | ||
{{Item responsive |Cols={{#var:@cols|4-8}} | {{Item responsive |Cols={{#var:@cols|4-8}} | ||
|1=<b>Judge</b> | |1=<b>Judge</b> | ||
|2=<div class="mt-4 mb-4 tab-content"><!-- | |2=<div class="mt-4 mb-4 tab-content"><!-- | ||
− | --><div class="active tab-pane" id="info-tab">{{{Judge|}}} {{#widget:link|datatoggle=pill|href=#form-tab|text=Change|type=a|class=btn btn-green | + | --><div class="active tab-pane" id="info-tab">{{{Judge|}}} {{#widget:link|datatoggle=pill|href=#form-tab|text=Change|type=a|class=btn btn-green }}</div><!-- |
− | --><div class="tab-pane" id="form-tab"> <wsform action=" | + | --><div class="tab-pane" id="form-tab"> <wsform action="mail"> |
{{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Random judge}} | {{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Random judge}} | ||
<!--{{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Stage|value={{#ifeq:{{{Stage|}}}|In progress|In progress|Needs jurors}} }}--> | <!--{{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Stage|value={{#ifeq:{{{Stage|}}}|In progress|In progress|Needs jurors}} }}--> | ||
<!--{{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Judge }}--> | <!--{{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Judge }}--> | ||
− | |||
− | |||
<wstoken id="tokener3" name="Random judge" json="/extensions/WSForm/WSForm.api.php?action=handleExternalRequest&script=semantic_ask&query=[[Class::Member]][[Role::Judge]]&limit=99999&returntext=Pagename" placeholder="Type a minimal of 3 characters" class="form-control" > | <wstoken id="tokener3" name="Random judge" json="/extensions/WSForm/WSForm.api.php?action=handleExternalRequest&script=semantic_ask&query=[[Class::Member]][[Role::Judge]]&limit=99999&returntext=Pagename" placeholder="Type a minimal of 3 characters" class="form-control" > | ||
− | </wstoken><wsfield type="submit" class="btn btn-green" value="Invite" /></wsform></div></div> | + | </wstoken> |
+ | <wsemail parselast="true" template="Template:Role invite" ></wsemail> | ||
+ | <wsfield type="submit" class="btn btn-green" value="Invite" /></wsform></div></div> | ||
}}|{{Item responsive |Cols={{#var:@cols|4-8}} | }}|{{Item responsive |Cols={{#var:@cols|4-8}} | ||
|1=<b>Judge</b> | |1=<b>Judge</b> | ||
− | |2=<wsform action=" | + | |2=<wsform action="mail"> |
{{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Random judge}} | {{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Random judge}} | ||
<!-- {{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Stage|value={{#ifeq:{{{Stage|}}}|In progress|In progress|Judge accepted}} }} --> | <!-- {{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Stage|value={{#ifeq:{{{Stage|}}}|In progress|In progress|Judge accepted}} }} --> | ||
<!-- {{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Judge }} --> | <!-- {{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Judge }} --> | ||
− | + | ||
− | |||
<wstoken id="tokener3" name="Random judge" json="/extensions/WSForm/WSForm.api.php?action=handleExternalRequest&script=semantic_ask&query=[[Class::Member]][[Role::Judge]]&limit=99999&returntext=Pagename" placeholder="Type a minimal of 3 characters" class="form-control" > | <wstoken id="tokener3" name="Random judge" json="/extensions/WSForm/WSForm.api.php?action=handleExternalRequest&script=semantic_ask&query=[[Class::Member]][[Role::Judge]]&limit=99999&returntext=Pagename" placeholder="Type a minimal of 3 characters" class="form-control" > | ||
</wstoken><wsfield type="submit" class="btn btn-green" value="Invite" /></wsform>}} | </wstoken><wsfield type="submit" class="btn btn-green" value="Invite" /></wsform>}} | ||
Line 152: | Line 156: | ||
|1=<b>Invited Jurors</b> | |1=<b>Invited Jurors</b> | ||
|2=<div class="mt-4 mb-4 tab-content"><!-- | |2=<div class="mt-4 mb-4 tab-content"><!-- | ||
− | --><div class="active tab-pane" id="juror-info-tab">{{#arraymap:{{{Random juror|}}}|,|@@@|{{#ifeq:@@@|done||@@@}}|,}} {{#widget:link|datatoggle=pill|href=#juror-form-tab|text=Change|type=a|class=btn btn-green | + | --><div class="active tab-pane" id="juror-info-tab">{{#arraymap:{{{Random juror|}}}|,|@@@|{{#ifeq:@@@|done||@@@}}|,}} {{#widget:link|datatoggle=pill|href=#juror-form-tab|text=Change|type=a|class=btn btn-green}}</div><!-- |
− | --><div class="tab-pane" id="juror-form-tab"> <wsform action=" | + | --><div class="tab-pane" id="juror-form-tab"> <wsform action="mail"> |
{{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Random juror}} | {{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Random juror}} | ||
<!--{{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Stage|value=In progress }}--> | <!--{{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Stage|value=In progress }}--> | ||
Line 160: | Line 164: | ||
<wstoken id="tokener" name="Random juror[]" json="/extensions/WSForm/WSForm.api.php?action=handleExternalRequest&script=semantic_ask&query=[[Class::Member]][[Role::Juror]]&limit=99999&returntext=Pagename" placeholder="Type a minimal of 3 characters" class="form-control" multiple="multiple"> | <wstoken id="tokener" name="Random juror[]" json="/extensions/WSForm/WSForm.api.php?action=handleExternalRequest&script=semantic_ask&query=[[Class::Member]][[Role::Juror]]&limit=99999&returntext=Pagename" placeholder="Type a minimal of 3 characters" class="form-control" multiple="multiple"> | ||
{{#if:{{#var:@members}} |{{#arraymap:{{#arrayprint:@members|,|@@@|{{#ifeq:@@@|done||{{#tag:wsfield |{{#show:@@@ |?Pagename |default=@@@ }} |type=option |value=@@@ |selected=selected}} }}|}} }} | {{#if:{{#var:@members}} |{{#arraymap:{{#arrayprint:@members|,|@@@|{{#ifeq:@@@|done||{{#tag:wsfield |{{#show:@@@ |?Pagename |default=@@@ }} |type=option |value=@@@ |selected=selected}} }}|}} }} | ||
− | </wstoken><wsfield type="submit" class="btn btn-green" value="Invite" /></wsform></div></div> | + | </wstoken> |
+ | |||
+ | <wsfield type="submit" class="btn btn-green" value="Invite" /></wsform></div></div> | ||
}}|{{Item responsive |Cols={{#var:@cols|4-8}} | }}|{{Item responsive |Cols={{#var:@cols|4-8}} | ||
|1=<b>Invited Jurors</b> | |1=<b>Invited Jurors</b> | ||
|2=<div class="mt-4 mb-4 tab-content"><!-- | |2=<div class="mt-4 mb-4 tab-content"><!-- | ||
− | --><div class="active tab-pane" id="juror-info-tab">{{#arraymap:{{{Random juror|}}}|,|@@@|{{#ifeq:@@@|done||@@@}}| | + | --><div class="active tab-pane" id="juror-info-tab">{{#arraymap:{{{Random juror|}}}|,|@@@|{{#ifeq:@@@|done||@@@}}<!-- |
− | --><div class="tab-pane" id="juror-form-tab"><wsform action=" | + | -->{{#vardefine:@user|{{PAGENAME:@@@ }} }}<!-- |
+ | -->{{#if:{{#show:User:{{#var:@user}}|?Email}}|{{#tag:wsform| | ||
+ | {{#tag:wsemail||parselast=true|template=Template:Role invite}} | ||
+ | {{#tag:wsfield||type=hidden|name=User|value={{#var:@user}} }} | ||
+ | {{#tag:wsfield||type=hidden|name=Workflow|value={{PAGENAME}} }} | ||
+ | {{#tag:wsfield||type=submit|style=padding-right:24px;|value=Notify}} | ||
+ | |action=mail|style=display: inline;}}|{{#tag:wsfield||type=submit|style=padding-right:24px;|value=No e-mail|disabled=disabled}} }}<!-- | ||
+ | |||
+ | -->|<br>}}<br>{{#widget:link|datatoggle=pill|href=#juror-form-tab|text=Change|type=a|class=btn btn-green}}</div><!-- | ||
+ | --><div class="tab-pane" id="juror-form-tab"><wsform action="mail"> | ||
{{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Random juror }} | {{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Random juror }} | ||
<!--{{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Stage|value=In progress }}--> | <!--{{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Stage|value=In progress }}--> |
Revision as of 15:47, 26 May 2020
This is the Workflow template. It should be called in the following format:
{{Workflow |Case ID= |Type= |Stage= |Filed by= |Lie= |Topic= |Description= |Lies= |Facts= |Locations= |Judge= |Juror amount= |Jurors= |Suit date= |Plaintiff verdict= |Reason for judge decline= |Random judge= |Random juror= |Declined judge= |Declined juror= }}