Edit article: verschil tussen versies

Uit Auditpedia
Ga naar:navigatie, zoeken
Regel 16: Regel 16:
 
<wsedit target="{{#var:@id}}" template="Article" formfield="Portal" />
 
<wsedit target="{{#var:@id}}" template="Article" formfield="Portal" />
 
<wslabel><h2>{{int: ws-portal}}:</h2>You can add more than 1 portals, separating them with comma. (e.g. Portal/Founding fathers, Portal/Vormgeving)</wslabel>
 
<wslabel><h2>{{int: ws-portal}}:</h2>You can add more than 1 portals, separating them with comma. (e.g. Portal/Founding fathers, Portal/Vormgeving)</wslabel>
<wsfield type="textarea" editor="ve" rows="2" class="form-control" name="Portal" >{{#caprint:$desc[Article][Portal]}}</wsfield>
+
{{#arraydefine:$portals |{{#ask:[[Class::Portal]] |limit=999 |link=none |sort=Title }} }}
 +
{{#arraydefine:$portals selected |{{{Portal|}}} }}<!--
 +
-->{{#arraydiff:$portals unselected |$portals |$portals selected}}<!--
 +
--><wstoken id="portal-tokens" multiple required="required" name="Portal[]" ><wsfield type="option" value=""/>
 +
{{#arraymap:{{#arrayprint:$portals selected}} |,|__Portal__|{{#tag:wsfield |{{#show:__Portal__ |?Title}} |type=option |value=__Portal__ |selected=selected }} |}}
 +
{{#arraymap:{{#arrayprint:$portals unselected}} |,|__Portal__|{{#tag:wsfield |{{#show:__Portal__ |?Title}} |type=option |value=__Portal__}} |}}
 +
</wstoken>
  
 
<div class="text-right mt-3">
 
<div class="text-right mt-3">
 
<wsfield type="submit" class="btn btn-primary" value="{{int: ws-save}}" />
 
<wsfield type="submit" class="btn btn-primary" value="{{int: ws-save}}" />
 
</wsform>}}
 
</wsform>}}

Versie van 6 jan 2021 13:14