|
|
(105 tussenliggende versies door 2 gebruikers niet weergegeven) |
Regel 1: |
Regel 1: |
− | <div class="main-wrapper">{{#ifeq:{{#urlget:mode}}|edit|{{#tag:html|<form>}} }}<!--{{#ifeq:{{{Domein|}}}|{{SERVERNAME}}| |{{#widget:Redirect|url=https://{{{Domein|}}}/index.php/{{FULLPAGENAME}} }} }}-->__NOTOC__ __NOTITLE__<!-- | + | <noinclude>{{Managed |
− | --><div class="d-flex justify-content-end align-items-center">{{#ifeq:{{#urlget:mode}}|edit|<!--
| + | |Version=1.0 |
− | --><wsfield type="hidden" name="Pagename" value="{{FULLPAGENAME}}" /><!--
| + | |Version notes=1.0 - First managed version |
− | --><!--
| + | |Short description= |
− | -->Layout {{#tag:html|<select name="Layout" id="multi-select3" onchange="$('.bericht-grid').attr('class', 'bericht-grid '+this.value);console.log(this.value)" >
| + | }} |
− | {{#arraymap:layout1, layout2|,|@@@|<option value="@@@">@@@</option>|}}
| + | |
− | </select>}} Auteur <wsfield type="text" name="Auteur" value="{{#if:{{{Auteur|}}}|{{{Auteur|}}}|{{CURRENTLOGGEDUSER}}}}" /><!--
| + | This is the "Bericht" template. It should be called in the following format: |
− | --><wsfield type="hidden" name="Prefix" value="{{#explode:{{FULLPAGENAME}}|/|0}}" /><wsfield type="hidden" name="Domein" value="{{#if:{{{Domein|}}}|{{{Domein|}}}|{{SERVERNAME}}}}" placeholder="domein" /><wsfield type="button" class="btn pull-right" onclick="document.querySelector('textarea').value = document.querySelector('.__editor').innerHTML;uploadFiles()" >Opslaan</wsfield><wsfield type="button" class="btn pull-right d-none" onclick="postBericht(this, 'Bericht')" id="real-submit" >Opslaan</wsfield>{{#widget:link|type=a|class=btn flex-end|text={{fa|arrow-left}}|href={{fullurl:{{FULLPAGENAME}}}} }}|{{#widget:link|type=a|class=btn float-right|text={{fa|edit}}|href={{fullurl:{{FULLPAGENAME}}|mode=edit}} }} }}</div><!--
| + | |
− | --><div class="bericht-grid {{{Type|}}}"><!--
| + | <pre> |
− | --><div class="grid-tags"><!--
| + | {{Bericht |
− | -->{{#ifeq:{{#urlget:mode}}|edit|<div class="multi-select-wrapper" >{{#arraydefine:@tags|{{#ask:[[Class::Bericht]]|?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>
| + | |Domein= |
− | <datalist id="tags">
| + | |Datum= |
− | {{#arraymap:{{#arrayprint:@tags}}|,|@@@|
| + | |Show date= |
− | <option value="@@@"> |}}
| + | |Bericht= |
− | </datalist>}}</div>|<h1 class="mt-0 pt-0 mr-4 pr-4">{{uc:{{{tags|}}} }}</h1> }}<!--
| + | |Titel= |
− | --></div><!--
| + | |Samenvatting= |
− | --><div class="grid-datum"><!--
| + | |Auteur= |
− | --><b>{{#ifeq:{{#urlget:mode}}|edit|<wsfield type="date" class="form-control" name="Datum" value="{{#if:{{{Datum|}}}|{{#time:Y-m-d|{{{Datum|}}}}}|{{#time:Y-m-d|Now}}}}" />|{{{Datum|}}} }}</b><!--
| + | |Layout= |
− | --></div><!--
| + | |Image= |
− | --><div class="grid-titel"><!--
| + | |tags= |
− | --><h2>{{#ifeq:{{#urlget:mode}}|edit|<wsfield type="text" class="form-control" name="Titel" value="{{{Titel|}}}"/>|{{{Titel|}}} }}</h2><!--
| + | }} |
− | --></div><!--
| + | </pre> |
− | --><div class="grid-bericht"><!--
| + | </noinclude><includeonly>{{#set:Class=Bericht |
− | -->{{#ifeq:{{#urlget:mode}}|edit|{{#widget:editor|html={{{Bericht|}}} }}<wsfield type="textarea" class=" d-none" name="Bericht" ></wsfield>|{{{Bericht|}}} }}<!--
| |
− | --></div><!--
| |
− | --><div class="grid-lijst"><!--
| |
− | --><div><b>Aanvullende informatie:</b></div><!--
| |
− | -->{{#ifeq:{{#urlget:mode}}|edit| |<ul>{{#ask:[[Class::Bericht file]][[Page::{{FULLPAGENAME}}]]|?Caption|?Type|link=none|format=complexarray|name=@images }}{{#camap:@images|@@@|{{#switch:@@@[Type][fulltext]|Pdf=<li class="red">{{#widget:link|type=a|text={{#if:@@@[Caption]|@@@[Caption]|@@@[catitle]}}|target=blank|href={{filepath:{{#replace:@@@[catitle]|Bestand:|}} }} |class=red}}</li>}} |}} </ul>}}<!--
| |
− | --></div><!--
| |
− | --><div class="grid-img"><!--
| |
− | --><div class="image-wrapper">{{#if:{{{Image|}}}|[[{{{Image|}}}|link=]]}}{{#ifeq:{{#urlget:mode}}|edit|{{#widget:File upload
| |
− | |preview=true | |
− | |caption=false | |
− | |type=png | |
− | |drop=true | |
− | |button=<div class="btn btn-primary">{{fa|upload}}</div> | |
− | |filepagetemplate=file for bericht
| |
− | |filepageparameters=Class:Bericht file;Domein:{{SERVERNAME}};Page:{{FULLPAGENAME}}
| |
− | |filename={{#time:U|now}}<FILENAME>
| |
− | }} }}</div><!--
| |
− | --></div><!--
| |
− | --></div><!--
| |
− | -->{{#ifeq:{{#urlget:mode}}|edit|{{#tag:html|</form>}} }}</div>{{#set:Class=Bericht
| |
| |Domein={{{Domein|}}} | | |Domein={{{Domein|}}} |
| |Datum={{{Datum|}}} | | |Datum={{{Datum|}}} |
| + | |Show date={{{Show date|}}} |
| |Bericht={{{Bericht|}}} | | |Bericht={{{Bericht|}}} |
| |Titel={{{Titel|}}} | | |Titel={{{Titel|}}} |
| |Samenvatting={{{Samenvatting|}}} | | |Samenvatting={{{Samenvatting|}}} |
| |Persoon={{{Auteur|}}} | | |Persoon={{{Auteur|}}} |
| + | |Layout={{{Layout|}}} |
| |Image={{{Image|}}} | | |Image={{{Image|}}} |
− | |Tags={{{tags|}}}|sep=, | + | |Tags={{{tags|}}}|+sep=, |
− | }}<!-- | + | }}{{DISPLAYTITLE:{{{Titel|}}} }} |
| + | __NOTITLE__ |
| + | </includeonly> |