Sjabloon:Bericht: verschil tussen versies

Uit Dorpsbelang Den Hout
Ga naar:navigatie, zoeken
Regel 1: Regel 1:
<div class="main-wrapper"><wsform action="addToWiki" >{{#ifeq:{{#urlget:mode}}|edit|<wscreate mwtemplate="Bericht" mwwrite="{{FULLPAGENAME}}" />}}<!--{{#ifeq:{{{Domein|}}}|{{SERVERNAME}}| |{{#widget:Redirect|url=https://{{{Domein|}}}/index.php/{{FULLPAGENAME}} }} }}-->__NOTOC__ __NOTITLE__<!--
+
{{#ifeq:{{#urlget:mode}}|edit|<!--  
--><div class="d-flex justify-content-end align-items-center">{{#ifeq:{{#urlget:mode}}|edit|<!--
+
-->{{Bericht forn
--><wsfield type="hidden"  name="Pagename" value="{{FULLPAGENAME}}"  /><!--
+
|Domein={{{Domein|}}}
-->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)" >
+
|Datum={{{Datum|}}}
  {{#arraymap:layout1, layout2|,|@@@|<option value="@@@" {{#ifeq:@@@|{{{Layout|}}}|selected="selected"}}>@@@</option>|}}
+
|Bericht={{{Bericht|}}}
  </select>}}<!--
+
|Titel={{{Titel|}}}
--> Auteur <wsfield type="text" class="inpt" name="Auteur" value="{{#if:{{{Auteur|}}}|{{{Auteur|}}}|{{CURRENTLOGGEDUSER}}}}" /><!--
+
|Samenvatting={{{Samenvatting|}}}
--><wsfield type="hidden"  name="Prefix" value="{{#explode:{{FULLPAGENAME}}|/|0}}"  /><!--
+
|Persoon={{{Auteur|}}}
--><wsfield type="hidden" name="Domein" value="{{#if:{{{Domein|}}}|{{{Domein|}}}|{{SERVERNAME}}}}" placeholder="domein"  /><!--
+
|Image={{{Image|}}}
--><wsfield type="button" class="btn pull-right" onclick="uploadFiles()" >Opslaan</wsfield><!--
+
|Tags={{{tags|}}}
--><wsfield type="submit" class="btn pull-right d-none" id="real-submit" value="save" /><!--
+
|Layout={{{Layout|}}}
-->{{#widget:link|type=a|class=btn flex-end|text={{fa|arrow-left}}|href={{fullurl:{{FULLPAGENAME}}}} }}<!--  
+
}}<!--  
 
  -->|<!--  
 
  -->|<!--  
 +
--><div class="main-wrapper"><!--{{#ifeq:{{{Domein|}}}|{{SERVERNAME}}| |{{#widget:Redirect|url=https://{{{Domein|}}}/index.php/{{FULLPAGENAME}} }} }}-->__NOTOC__ __NOTITLE__<!--
 +
--><div class="d-flex justify-content-end align-items-center">
 
  -->{{#widget:link|type=a|class=btn float-right|text={{fa|edit}}|href={{fullurl:{{FULLPAGENAME}}|mode=edit}} }}<!--  
 
  -->{{#widget:link|type=a|class=btn float-right|text={{fa|edit}}|href={{fullurl:{{FULLPAGENAME}}|mode=edit}} }}<!--  
  --> }}</div><!--  
+
  --></div><!--  
 
  --><div class="bericht-grid {{{Layout|}}}"><!--  
 
  --><div class="bericht-grid {{{Layout|}}}"><!--  
 
  --><div class="grid-tags"><!--  
 
  --><div class="grid-tags"><!--  
     -->{{#ifeq:{{#urlget:mode}}|edit|<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>
+
     --><h1 class="mt-0 pt-0 mr-4 pr-4">{{uc:{{{tags|}}} }}</h1><!--  
  <datalist id="tags">
 
    {{#arraymap:{{#arrayprint:@tags}}|,|@@@|
 
    <option value="@@@">  |}}
 
    </datalist>}}</div>|<h1 class="mt-0 pt-0 mr-4 pr-4">{{uc:{{{tags|}}} }}</h1> }}<!--  
 
 
  --></div><!--
 
  --></div><!--
 
  --><div class="grid-datum"><!--  
 
  --><div class="grid-datum"><!--  
   --><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><!--  
+
   --><b>{{{Datum|}}}</b><!--  
 
  --></div><!--
 
  --></div><!--
 
  --><div class="grid-titel"><!--  
 
  --><div class="grid-titel"><!--  
   --><h2>{{#ifeq:{{#urlget:mode}}|edit|<wsfield type="text" class="form-control" placeholder="Titel" name="Titel" value="{{{Titel|}}}"/>|{{{Titel|}}} }}</h2><!--  
+
   --><h2>{{{Titel|}}}</h2><!--  
 
  --></div><!--
 
  --></div><!--
 
  --><div class="grid-bericht">
 
  --><div class="grid-bericht">
{{#ifeq:{{#urlget:mode}}|edit|<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>|
+
{{{Bericht|}}}<!--  
{{{Bericht|}}} }}<!--  
 
 
  --></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=]]}}{{#ifeq:{{#urlget:mode}}|edit|{{#widget:File upload
+
   --><div class="image-wrapper">{{#vardefine:@img|{{#ask:[[Class::Bericht file]][[Page::{{FULLPAGENAME}}]]|link=none|limit=1}} }}{{#if:{{#var:@img}}|[[{{#var:@img}}|link=]]}}</div><!--  
|preview=true
 
|caption=false
 
|type=png
 
|drop=true
 
|button=<div class="btn">{{fa|upload}}</div>
 
|filepagetemplate=Bericht file
 
|filepageparameters=Class:Bericht file;Domein:{{SERVERNAME}};Bericht:{{FULLPAGENAME}}
 
|filename={{#if:{{#var:@img}}|{{#explode:{{#explode:{{#var:@img}}|:|1}}|.|0}}|{{#time:U|now}}<FILENAME>}}
 
}} }}</div><!--  
 
 
  --></div><!--
 
  --></div><!--
 
--></div><!--  
 
--></div><!--  
--></wsform></div>{{#set:Class=Bericht
+
--></div>{{#set:Class=Bericht
 
|Domein={{{Domein|}}}
 
|Domein={{{Domein|}}}
 
|Datum={{{Datum|}}}
 
|Datum={{{Datum|}}}
Regel 55: Regel 43:
 
|Image={{{Image|}}}
 
|Image={{{Image|}}}
 
|Tags={{{tags|}}}|sep=,
 
|Tags={{{tags|}}}|sep=,
 +
}}
 
}}<!--
 
}}<!--

Versie van 17 nov 2020 13:59

-->