|
|
(17 intermediate revisions by 3 users not shown) |
Line 46: |
Line 46: |
| |Locations={{{Locations|}}} | | |Locations={{{Locations|}}} |
| |Judge={{{Judge|}}} | | |Judge={{{Judge|}}} |
| + | |Meeting={{{Meeting|}}} |
| |Juror amount={{{Juror amount|}}} | | |Juror amount={{{Juror amount|}}} |
| |Jurors={{{Jurors|}}}|+sep=, | | |Jurors={{{Jurors|}}}|+sep=, |
Line 61: |
Line 62: |
| |Class title={{{Class title|}}} | | |Class title={{{Class title|}}} |
| |Change={{{Change|none}}} | | |Change={{{Change|none}}} |
| + | |Slot={{{Slot|}}} |
| + | |Slot month={{#explode:{{{Slot|}}}|-|1}} |
| + | |Slot day={{#explode:{{#explode:{{{Slot|}}}|/|0}}|-|2}} |
| + | |Slot year={{#explode:{{{Slot|}}}|-|0}} |
| |Change seen by={{{Change seen by|none}}}|+sep=, | | |Change seen by={{{Change seen by|none}}}|+sep=, |
| |Settled seen by={{{Settled seen by|none}}}|+sep=, | | |Settled seen by={{{Settled seen by|none}}}|+sep=, |
Line 100: |
Line 105: |
| |2={{{Stage|}}} | | |2={{{Stage|}}} |
| }} | | }} |
− | {{#if:{{{Juror amount|}}}| | + | |
| + | {{#if:{{{Judge|}}}| |
| {{Item responsive |Cols={{#var:@cols|4-8}} | | {{Item responsive |Cols={{#var:@cols|4-8}} |
− | |1=<b>Number of Jurors needed</b> | + | |1=<b>Judge</b> |
− | |2={{{Juror amount|}}} | + | |2={{{Judge|}}} |
| }} | | }} |
| + | | |
| + | {{Item responsive |Cols={{#var:@cols|4-8}} |
| + | |1=<b>Invited judge</b> |
| + | |2=<wsform action="addToWiki"> |
| + | {{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Random judge}} |
| + | {{#arraydefine:$judges|{{#ask: [[User group::icol-user]][[Class::Member]][[Role::Judge]] |limit=9999|link=none|format=plainlist}} }} |
| + | {{#arraydefine:$judges-selected|{{{Random judge|}}} }} |
| + | <wstoken id="tokener52" name="Random judge" multiple="multiple" placeholder="Type a minimal of 3 characters" class="form-control" > |
| + | {{#arraymap:{{#arrayprint:$judges}}|,|__JUDGE__|{{#tag:wsfield|{{PAGENAME:__JUDGE__}}|type=option|value=__JUDGE__|selected={{#if:{{#arraysearch:$judges-selected|__JUDGE__}}|selected}} }}|}} |
| + | </wstoken> |
| + | <wsfield type="submit" class="btn btn-green" value="Save" /></wsform>}} |
| }} | | }} |
− | {{#if:{{{Juror amount|}}}|
| |
| {{Item responsive |Cols={{#var:@cols|4-8}} | | {{Item responsive |Cols={{#var:@cols|4-8}} |
− | |1=<b>Number of Jurors accepted invite</b> | + | |1=<b>Number of Jurors needed</b> |
− | |2={{#arraysize:@jurrors}} | + | |2=<wsform action="addToWiki">{{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Juror amount}}<wsfield type="number" name="Juror amount" value="{{{Juror amount|}}}" /><wsfield type="submit" value="Save" /></wsform> |
| }} | | }} |
− | }}
| + | |
− | {{#if:{{{Random judge|}}}|
| |
| {{Item responsive |Cols={{#var:@cols|4-8}} | | {{Item responsive |Cols={{#var:@cols|4-8}} |
− | |1=<b>Invited judge</b> | + | |1=<b>Number of Jurors accepted invite</b> |
− | |2={{#ifeq:{{{Random judge|}}}|done||{{{Random judge|}}}<!-- | + | |2={{#arraydefine:@jurrors|{{{Jurors|}}} }}{{#arraysize:@jurrors}} |
− | -->{{#vardefine:@user|{{PAGENAME:{{{Random judge|}}} }} }}<!--
| |
− | -->{{#if:{{#show:User:{{#var:@user}}|?User right}}|{{#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 again}}
| |
− | |action=mail|style=display: inline;}}|{{#tag:wsfield||type=submit|style=padding-right:24px;|value=No e-mail|disabled=disabled}} }}<!--
| |
− | -->}}
| |
− | }} }}<!-- ./ if judge isnt 'done' -->{{#if:{{{Judge|}}}|
| |
− | {{Item responsive |Cols={{#var:@cols|4-8}}
| |
− | |1=<b>Judge</b>
| |
− | |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><!--
| |
− | --><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=Stage|value={{#ifeq:{{{Stage|}}}|In progress|In progress|Needs jurors}} }}-->
| |
− | <!--{{#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=[[User group::icol-user]][[Class::Member]][[Role::Judge]]&limit=99999&returntext=Pagename" placeholder="Type a minimal of 3 characters" class="form-control" >
| |
− | </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}}
| |
− | |1=<b>Judge</b>
| |
− | |2=<wsform action="mail">
| |
− | {{#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=Judge }} -->
| |
− | | |
− | <wstoken id="tokener3" name="Random judge" json="/extensions/WSForm/WSForm.api.php?action=handleExternalRequest&script=semantic_ask&query=[[User group::icol-user]][[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>}}
| |
| }} | | }} |
| | | |
− | {{#if:{{{Jurors|}}}|
| |
| {{Item responsive |Cols={{#var:@cols|4-8}} | | {{Item responsive |Cols={{#var:@cols|4-8}} |
| |1=<b>Accepted Jurors</b> | | |1=<b>Accepted Jurors</b> |
Line 156: |
Line 140: |
| {{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=<wsform action="addToWiki"> |
− | --><div class="active tab-pane" id="juror-info-tab">{{#arraymap:{{{Random juror|}}}|,|@@@|{{#ifeq:@@@|done||@@@}}{{#vardefine:@user|{{PAGENAME:@@@ }} }}<!--
| + | {{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Random juror }} |
− | -->{{#if:{{#show:User:{{#var:@user}}|?User right}}|{{#tag:wsform|
| + | {{#arraydefine:$jurors|{{#ask: [[User group::icol-user]][[Class::Member]][[Role::Juror]] |limit=9999|link=none|format=plainlist}} }} |
− | {{#tag:wsemail||parselast=true|template=Template:Role invite}}
| + | {{#arraydefine:$jurors-selected|{{{Random juror|}}} }} |
− | {{#tag:wsfield||type=hidden|name=User|value={{#var:@user}} }}
| + | <wstoken id="tokener2" name="Random juror[]" multiple="multiple" placeholder="Type a minimal of 3 characters" class="form-control" > |
− | {{#tag:wsfield||type=hidden|name=Workflow|value={{PAGENAME}} }}
| + | {{#arraymap:{{#arrayprint:$jurors}}|,|__JUROR__|{{#tag:wsfield|{{PAGENAME:__JUROR__}}|type=option|value=__JUROR__|selected={{#if:{{#arraysearch:$jurors-selected|__JUROR__}}|selected}} }}|}} |
− | {{#tag:wsfield||type=submit|style=padding-right:24px;|value=Notify}}
| + | </wstoken><wsfield type="submit" class="btn btn-green" value="Save" /></wsform>}} |
− | |action=mail|style=display: inline;}}|{{#tag:wsfield||type=submit|style=padding-right:24px;|value=No e-mail|disabled=disabled}} }}|<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=Stage|value=In progress }}-->
| |
− | <!--{{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Jurors }}-->
| |
− | {{#arraydefine:@members |{{{Random juror|}}} }} | |
− | <wstoken id="tokener" name="Random juror[]" json="/extensions/WSForm/WSForm.api.php?action=handleExternalRequest&script=semantic_ask&query=[[User group::icol-user]][[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}} }}|}} }} | |
− | </wstoken> | |
| | | |
− | <wsfield type="submit" class="btn btn-green" value="Invite" /></wsform></div></div>
| |
− |
| |
− | }}|{{Item responsive |Cols={{#var:@cols|4-8}}
| |
− | |1=<b>Invited Jurors</b>
| |
− | |2=<div class="mt-4 mb-4 tab-content"><!--
| |
− | --><div class="active tab-pane" id="juror-info-tab">{{#arraymap:{{{Random juror|}}}|,|@@@|{{#ifeq:@@@|done||@@@}}<!--
| |
− | -->{{#vardefine:@user|{{PAGENAME:@@@ }} }}<!--
| |
− | -->{{#if:{{#show:User:{{#var:@user}}|?User right}}|{{#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=Stage|value=In progress }}-->
| |
− | <!--{{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Jurors }}-->
| |
− | {{#arraydefine:@members |{{{Random juror|}}} }}
| |
− | <wstoken id="tokener2" name="Random juror[]" json="/extensions/WSForm/WSForm.api.php?action=handleExternalRequest&script=semantic_ask&query=[[User group::icol-user]][[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}} }}|}} }}
| |
− | </wstoken><wsfield type="submit" class="btn btn-green" value="Invite" /></wsform></div></div>}}
| |
− | }}
| |
| | | |
| | | |