Bewerk bericht: verschil tussen versies
Uit Dorpsbelang Den Hout
Regel 1: | Regel 1: | ||
− | <div class="main-wrapper">{{#vardefine:@page|{{#urldecode:{{#urlget:page}} }} }}{{#vardefine:@pageid|{{PAGEID:{{#var:@page}} }} }}<!-- | + | <div class="main-wrapper">{{#vardefine:@page|{{#urldecode:{{#urlget:page}} }} }}{{#vardefine:@pageid|{{PAGEID:{{#var:@page}} }} }}{{#tool:get parameters |{{#var:@pageid}} |$params}}<!-- |
--><wsform action="addToWiki" ><!-- | --><wsform action="addToWiki" ><!-- | ||
− | --><wscreate mwtemplate="Bericht" mwwrite="{{#var:@page}}" /><!--{{#ifeq:{{ | + | --><wscreate mwtemplate="Bericht" mwwrite="{{#var:@page}}" /><!--{{#ifeq:{{#caprint:$params[Bericht][Domein]}}|{{SERVERNAME}}| |{{#widget:Redirect|url=https://{{{Domein|}}}/index.php/{{FULLPAGENAME}} }} }}-->__NOTOC__ __NOTITLE__<!-- |
--><div class="d-flex justify-content-end align-items-center"><!-- | --><div class="d-flex justify-content-end align-items-center"><!-- | ||
--><wsfield type="hidden" name="Pagename" value="{{#var:@page}}" /><!-- | --><wsfield type="hidden" name="Pagename" value="{{#var:@page}}" /><!-- | ||
Regel 7: | Regel 7: | ||
{{#arraymap:layout1, layout2|,|@@@|<option value="@@@" {{#ifeq:@@@|{{{Layout|}}}|selected="selected"}}>@@@</option>|}} | {{#arraymap:layout1, layout2|,|@@@|<option value="@@@" {{#ifeq:@@@|{{{Layout|}}}|selected="selected"}}>@@@</option>|}} | ||
</select>}}<!-- | </select>}}<!-- | ||
− | -->{{fa|user}} <wsfield type="text" class="inpt" name="Auteur" value="{{#if:{{ | + | -->{{fa|user}} <wsfield type="text" class="inpt" name="Auteur" value="{{#if:{{#caprint:$params[Bericht][Auteur]}}|{{#caprint:$params[Bericht][Auteur]}}|{{CURRENTLOGGEDUSER}}}}" /><!-- |
--><wsfield type="hidden" name="Prefix" value="{{#explode:{{#var:@page}}|/|0}}" /><!-- | --><wsfield type="hidden" name="Prefix" value="{{#explode:{{#var:@page}}|/|0}}" /><!-- | ||
− | --><wsfield type="hidden" name="Domein" value="{{#if:{{ | + | --><wsfield type="hidden" name="Domein" value="{{#if:{{#caprint:$params[Bericht][Domein]}}|{{#caprint:$params[Bericht][Domein]}}|{{SERVERNAME}}}}" placeholder="domein" /><!-- |
--><wsfield type="button" class="btn pull-right" onclick="veToText()" >Opslaan</wsfield><!-- uploadFiles() | --><wsfield type="button" class="btn pull-right" onclick="veToText()" >Opslaan</wsfield><!-- uploadFiles() | ||
--><wsfield type="submit" class="btn pull-right d-none" id="real-submit" value="save" /><!-- | --><wsfield type="submit" class="btn pull-right d-none" id="real-submit" value="save" /><!-- | ||
-->{{#widget:link|type=a|class=btn flex-end|text={{fa|arrow-left}}|href={{fullurl:{{#var:@page}}}} }}<!-- | -->{{#widget:link|type=a|class=btn flex-end|text={{fa|arrow-left}}|href={{fullurl:{{#var:@page}}}} }}<!-- | ||
--></div><!-- | --></div><!-- | ||
− | --><div class="bericht-grid {{ | + | --><div class="bericht-grid {{#caprint:$params[Bericht][Layout]}}"><!-- |
--><div class="grid-tags"><!-- | --><div class="grid-tags"><!-- | ||
− | --><div class="multi-select-wrapper" >{{#arraydefine:@tags|{{#ask:[[Class::Bericht]][[Domein::{{SERVERNAME}}]]|?Tags|format=array|mainlabel=-}} }}{{#arrayunique:@tags}}<span class="out">{{#arraymap:{{ | + | --><div class="multi-select-wrapper" >{{#arraydefine:@tags|{{#ask:[[Class::Bericht]][[Domein::{{SERVERNAME}}]]|?Tags|format=array|mainlabel=-}} }}{{#arrayunique:@tags}}<span class="out">{{#arraymap:{{#caprint:$params[Bericht][Tags]}}|,|@@@|{{#tag:wsfield|@@@{{#tag:wsfield||type=hidden|name=tags[]|value=@@@}}|type=button|class=botn|onclick=this.remove()}}|}}</span>{{#tag:html|<input list="tags" name="browser" id="multi-select2" multiple> |
<datalist id="tags"> | <datalist id="tags"> | ||
{{#arraymap:{{#arrayprint:@tags}}|,|@@@| | {{#arraymap:{{#arrayprint:@tags}}|,|@@@| | ||
Regel 23: | Regel 23: | ||
--></div><!-- | --></div><!-- | ||
--><div class="grid-datum"><!-- | --><div class="grid-datum"><!-- | ||
− | --><b><wsfield type="date" class="form-control {{#ifeq:{{ | + | --><b><wsfield type="date" class="form-control {{#ifeq:{{#caprint:$params[Bericht][Show date]}}|false|disabled}}" name="Datum" value="{{#if:{{{Datum|}}}|{{#time:Y-m-d|{{#caprint:$params[Bericht][Datum]}}}}|{{#time:Y-m-d|Now}}}}" /></b><wsfield type="button" onclick="toggleDateField(this)" class="btn">{{fa|clock}}</wsfield><wsfield type="hidden" name="Show date" value="{{#ifeq:{{#caprint:$params[Bericht][Show date]}}|false|false}}"/><!-- |
--></div><!-- | --></div><!-- | ||
--><div class="grid-titel"><!-- | --><div class="grid-titel"><!-- | ||
− | --><h2><wsfield type="text" class="form-control" placeholder="Titel" name="Titel" value="{{ | + | --><h2><wsfield type="text" class="form-control" placeholder="Titel" name="Titel" value="{{#caprint:$params[Bericht][Titel]}}"/></h2><!-- |
--></div><!-- | --></div><!-- | ||
− | --><div class="grid-bericht"> | + | --><div class="grid-bericht"><!-- |
− | --><wsfield type="textarea" name="Samenvatting" class="inptext" placeholder="Samenvatting" >{{ | + | --><wsfield type="textarea" name="Samenvatting" class="inptext" placeholder="Samenvatting" >{{#caprint:$params[Bericht][Samenvatting]}}</wsfield><span class="ve-area-wrapper"><wsfield name="Bericht" type="textarea" class="toolbarOnTop">{{#caprint:$params[Bericht][Bericht]||true }}</wsfield></span> |
<!-- | <!-- | ||
--></div><!-- | --></div><!-- |
Versie van 8 dec 2020 23:00
⧼PageID must only consist of digits.⧽
Please log in first.