Sjabloon:Bericht form: verschil tussen versies
Uit Dorpsbelang Den Hout
Regel 1: | Regel 1: | ||
− | <div class="main-wrapper"><wsform action="addToWiki" > | + | <div class="main-wrapper"><!-- |
− | --><div class="d-flex justify-content-end align-items-center"> | + | --><wsform action="addToWiki" ><!-- |
+ | --><wscreate mwtemplate="Bericht" mwwrite="{{FULLPAGENAME}}" /><!--{{#ifeq:{{{Domein|}}}|{{SERVERNAME}}| |{{#widget:Redirect|url=https://{{{Domein|}}}/index.php/{{FULLPAGENAME}} }} }}-->__NOTOC__ __NOTITLE__<!-- | ||
+ | --><div class="d-flex justify-content-end align-items-center"><!-- | ||
--><wsfield type="hidden" name="Pagename" value="{{FULLPAGENAME}}" /><!-- | --><wsfield type="hidden" name="Pagename" value="{{FULLPAGENAME}}" /><!-- | ||
-->Layout {{#tag:html|<select class="inpt mr-1" name="Layout" id="multi-select3" onchange="$('.bericht-grid').attr('class', 'bericht-grid '+this.value);console.log(this.value)" > | -->Layout {{#tag:html|<select class="inpt mr-1" name="Layout" id="multi-select3" onchange="$('.bericht-grid').attr('class', 'bericht-grid '+this.value);console.log(this.value)" > | ||
Regel 11: | Regel 13: | ||
--><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:{{FULLPAGENAME}}}} }}<!-- | -->{{#widget:link|type=a|class=btn flex-end|text={{fa|arrow-left}}|href={{fullurl:{{FULLPAGENAME}}}} }}<!-- | ||
− | --> | + | --></div><!-- |
− | |||
− | |||
--><div class="bericht-grid {{{Layout|}}}"><!-- | --><div class="bericht-grid {{{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:{{{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}}|,|@@@| | ||
<option value="@@@"> |}} | <option value="@@@"> |}} | ||
− | </datalist>}}</div> | + | </datalist>}}</div><!-- |
--></div><!-- | --></div><!-- | ||
--><div class="grid-datum"><!-- | --><div class="grid-datum"><!-- | ||
− | --><b> | + | --><b><wsfield type="date" class="form-control" name="Datum" value="{{#if:{{{Datum|}}}|{{#time:Y-m-d|{{{Datum|}}}}}|{{#time:Y-m-d|Now}}}}" /></b><!-- |
--></div><!-- | --></div><!-- | ||
--><div class="grid-titel"><!-- | --><div class="grid-titel"><!-- | ||
− | --><h2> | + | --><h2><wsfield type="text" class="form-control" placeholder="Titel" name="Titel" value="{{{Titel|}}}"/></h2><!-- |
--></div><!-- | --></div><!-- | ||
− | --><div class="grid-bericht"> | + | --><div class="grid-bericht"><!-- |
− | + | --><wsfield type="textarea" name="Samenvatting" class="inptext" placeholder="Samenvatting" >{{{Samenvatting|}}}</wsfield><!-- {{#widget:editor|html={{{Bericht|}}} }} --><wsfield type="textarea" class="tinyframe" name="Bericht" >{{#tool:get parameters |{{PAGEID}} |$params}}{{#caprint:$params[Bericht][Bericht]||true }} </wsfield><!-- | |
− | |||
--></div><!-- | --></div><!-- | ||
--><!-- | --><!-- | ||
--><div class="grid-img"><!-- | --><div class="grid-img"><!-- | ||
− | --><div class="image-wrapper">{{#vardefine:@img|{{#ask:[[Class::Bericht file]][[Page::{{FULLPAGENAME}}]]|link=none|limit=1}} }}{{#if:{{#var:@img}}|[[{{#var:@img}}|link=]]}} | + | --><div class="image-wrapper">{{#vardefine:@img|{{#ask:[[Class::Bericht file]][[Page::{{FULLPAGENAME}}]]|link=none|limit=1}} }}{{#if:{{#var:@img}}|[[{{#var:@img}}|link=]]}}{{#widget:File upload |
|preview=true | |preview=true | ||
|caption=false | |caption=false | ||
Regel 43: | Regel 42: | ||
|filepageparameters=Class:Bericht file;Domein:{{SERVERNAME}};Bericht:{{FULLPAGENAME}} | |filepageparameters=Class:Bericht file;Domein:{{SERVERNAME}};Bericht:{{FULLPAGENAME}} | ||
|filename={{#if:{{#var:@img}}|{{#explode:{{#explode:{{#var:@img}}|:|1}}|.|0}}|{{#time:U|now}}<FILENAME>}} | |filename={{#if:{{#var:@img}}|{{#explode:{{#explode:{{#var:@img}}|:|1}}|.|0}}|{{#time:U|now}}<FILENAME>}} | ||
− | + | }} </div><!-- | |
--></div><!-- | --></div><!-- | ||
--></div><!-- | --></div><!-- | ||
--></wsform></div><!-- | --></wsform></div><!-- |
Versie van 17 nov 2020 14:03
Please log in first.