Bewerk bericht: verschil tussen versies
Uit Dorpsbelang Den Hout
(10 tussenliggende versies door 3 gebruikers niet weergegeven) | |||
Regel 5: | Regel 5: | ||
--><wsfield type="hidden" name="Pagename" value="{{#var:@page}}" /><!-- | --><wsfield type="hidden" name="Pagename" value="{{#var:@page}}" /><!-- | ||
-->{{fa|table}} {{#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)" > | -->{{fa|table}} {{#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)" > | ||
− | {{#arraymap:layout1, layout2|,|@@@|<option value="@@@" {{#ifeq:@@@|{{ | + | {{#arraymap:layout1, layout2|,|@@@|<option value="@@@" {{#ifeq:@@@|{{#caprint:$params[Bericht][Layout]}}|selected="selected"}}>@@@</option>|}} |
</select>}}<!-- | </select>}}<!-- | ||
-->{{fa|user}} <wsfield type="text" class="inpt" name="Auteur" value="{{#if:{{#caprint:$params[Bericht][Auteur]}}|{{#caprint:$params[Bericht][Auteur]}}|{{CURRENTLOGGEDUSER}}}}" /><!-- | -->{{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:{{#caprint:$params[Bericht][Domein]}}|{{#caprint:$params[Bericht][Domein]}}|{{SERVERNAME}}}}" placeholder="domein" /><!-- | --><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><!-- | + | --><wsfield type="button" class="btn btn-primary pull-right" onclick="veToText()" >Opslaan</wsfield><!-- |
− | --><wsfield type="submit" class="btn pull-right d-none" id="real-submit" value="save" /><!-- | + | --><wsfield type="submit" class="btn btn-primary 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 {{#caprint:$params[Bericht][Layout]}}"><!-- | --><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:{{#caprint:$params[Bericht][ | + | --><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 29: | Regel 29: | ||
--></div><!-- | --></div><!-- | ||
--><div class="grid-bericht"><!-- | --><div class="grid-bericht"><!-- | ||
− | --><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]||noparse,nowiki }}</wsfield></span> | + | --><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]||noparse,nowiki }}</wsfield></span><!-- |
− | <!-- | ||
--></div><!-- | --></div><!-- | ||
--><!-- | --><!-- | ||
--><div class="grid-img" style="min-height: 200px;"><!-- | --><div class="grid-img" style="min-height: 200px;"><!-- | ||
− | --><div class="image-wrapper">{{#vardefine:@ | + | --><div class="image-wrapper"> |
− | + | <div class="upload-group">{{#vardefine:@hubimg|{{#ask:[[Class::Bericht file]][[Page::{{#var:@page}}]]|sort=Modification date|limit=1|link=none|order=desc|format=array}} }} | |
− | + | {{#if:{{#var:@hubimg}}|[[{{#var:@hubimg}}|link=]]}}</div><br> | |
− | + | <div class="ws-image-upload" data-filetext="<nowiki>{{Bericht file|Domein=</nowiki>{{SERVERNAME}}<nowiki>|Bericht=</nowiki>{{#var:@page}}<nowiki>}}</nowiki>" ></div> | |
− | + | </div><!-- | |
− | |||
− | |||
− | |||
− | |||
− | |||
--></div><!-- | --></div><!-- | ||
--></div><!-- | --></div><!-- | ||
--></wsform></div><!-- | --></wsform></div><!-- |
Huidige versie van 27 mei 2021 om 18:08
⧼PageID must only consist of digits.⧽
Please log in first.