Sjabloon:Bericht form: verschil tussen versies

Uit Dorpsbelang Den Hout
Ga naar:navigatie, zoeken
 
(24 tussenliggende versies door dezelfde gebruiker niet weergegeven)
Regel 4: Regel 4:
 
--><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="{{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)" >
+
  -->{{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:@@@|{{{Layout|}}}|selected="selected"}}>@@@</option>|}}
 
   {{#arraymap:layout1, layout2|,|@@@|<option value="@@@" {{#ifeq:@@@|{{{Layout|}}}|selected="selected"}}>@@@</option>|}}
 
   </select>}}<!--  
 
   </select>}}<!--  
Regel 10: Regel 10:
 
  --><wsfield type="hidden"  name="Prefix" value="{{#explode:{{FULLPAGENAME}}|/|0}}"  /><!--  
 
  --><wsfield type="hidden"  name="Prefix" value="{{#explode:{{FULLPAGENAME}}|/|0}}"  /><!--  
 
  --><wsfield type="hidden" name="Domein" value="{{#if:{{{Domein|}}}|{{{Domein|}}}|{{SERVERNAME}}}}" placeholder="domein"  /><!--  
 
  --><wsfield type="hidden" name="Domein" value="{{#if:{{{Domein|}}}|{{{Domein|}}}|{{SERVERNAME}}}}" placeholder="domein"  /><!--  
  --><wsfield type="button" class="btn pull-right" onclick="uploadFiles()" >Opslaan</wsfield><!--  
+
  --><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:{{FULLPAGENAME}}}} }}<!--  
 
  -->{{#widget:link|type=a|class=btn flex-end|text={{fa|arrow-left}}|href={{fullurl:{{FULLPAGENAME}}}} }}<!--  
Regel 23: Regel 23:
 
  --></div><!--
 
  --></div><!--
 
  --><div class="grid-datum"><!--  
 
  --><div class="grid-datum"><!--  
   --><b><wsfield type="date" class="form-control" name="Datum" value="{{#if:{{{Datum|}}}|{{#time:Y-m-d|{{{Datum|}}}}}|{{#time:Y-m-d|Now}}}}" /></b><wsfield type="button" onclick="toggleDateField(this)" >{{fa|close}}</wsfield><wsfield type="hidden" name="Show date" /><!--  
+
   --><b><wsfield type="date" class="form-control {{#ifeq:{{{Show date|}}}|false|disabled}}" name="Datum" value="{{#if:{{{Datum|}}}|{{#time:Y-m-d|{{{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:{{{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="{{{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">{{#tool:get parameters |{{PAGEID}} |$params}}<!-- class="toolbarOnTop"
  --><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><!--  
+
  --><wsfield type="textarea"  name="Samenvatting"  class="inptext" placeholder="Samenvatting" >{{{Samenvatting|}}}</wsfield><span class="ve-area-wrapper"><wsfield name="Bericht" type="textarea">{{#caprint:$params[Bericht][Bericht]||true }}</wsfield></span>
 +
<!--  
 
  --></div><!--
 
  --></div><!--
 
  --><!--  
 
  --><!--  
  --><div class="grid-img"><!--  
+
  --><div class="grid-img" style="min-height: 200px;"><!--  
 
   --><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
 
   --><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
Regel 42: Regel 43:
 
|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><!--  
+
}}{{#if:{{#var:@img}}|<wsfield type="button" onclick="removeFile(this, '{{#var:@img}}')" class="btn remove-img" >{{fa|times}}</wsfield> }} </div><!--  
 
  --></div><!--
 
  --></div><!--
 
--></div><!--  
 
--></div><!--  
 
--></wsform></div><!--
 
--></wsform></div><!--

Huidige versie van 8 dec 2020 om 22:38