Sjabloon:Bericht: verschil tussen versies

Uit Dorpsbelang Den Hout
Ga naar:navigatie, zoeken
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__<!--
+
<div class="main-wrapper">{{#ifeq:{{#urlget:mode}}|edit|{{#tag:html|<form>}}<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">{{#ifeq:{{#urlget:mode}}|edit|<!--  
 
--><div class="d-flex justify-content-end align-items-center">{{#ifeq:{{#urlget:mode}}|edit|<!--  
 
--><wsfield type="hidden"  name="Pagename" value="{{FULLPAGENAME}}"  /><!--  
 
--><wsfield type="hidden"  name="Pagename" value="{{FULLPAGENAME}}"  /><!--  
Regel 8: Regel 8:
 
  --><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="document.querySelector('textarea').value = document.querySelector('.__editor').innerHTML;uploadFiles()" >Opslaan</wsfield><!--  
+
  --><wsfield type="button" class="btn pull-right" onclick="uploadFiles()" >Opslaan</wsfield><!--  
  --><wsfield type="button" class="btn pull-right d-none" onclick="postBericht(this, 'Bericht')" id="real-submit" >Opslaan</wsfield><!--  
+
  --><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 32: Regel 32:
 
   {{{Bericht|}}} }}<!--  
 
   {{{Bericht|}}} }}<!--  
 
  --></div><!--
 
  --></div><!--
  --><div class="grid-lijst"><!--
+
  --><!--  
  --><div><b>Aanvullende informatie:</b></div><!--
 
--><div>{{#ifeq:{{#urlget:mode}}|edit|<!-- 
 
--><div id="links-input-wrapper">{{#arraymap:{{{Links|}}}|,|@@@|<div class="d-flex">{{#tag:wsfield||type=text|name=Links[]|class=form-control mb-4|value=@@@}}{{#tag:wsfield|{{fa|times}}|type=button|class=btn mb-4|onclick=removeLink(this)}}</div>|}}</div><wsfield type="button" class="btn pull-right"  onclick="addLink()" >{{fa|plus}}</wsfield>{{#tag:html|<script>
 
function addLink(){
 
  var newlinkinput = document.createElement('div');
 
  newlinkinput.classList.add("d-flex");
 
  newlinkinput.innerHTML = '<input type="text" name="Links[]" class="form-control mb-4" ><button class="btn mb-4" onclick="removeLink(this)" type="button"><i class="fa fa-times"></i></button>';
 
document.getElementById('links-input-wrapper').appendChild(newlinkinput)
 
}
 
function removeLink(el){
 
  el.closest('.d-flex').remove()
 
}
 
</script>}}|{{#arraymap:{{{Links|}}}|,|@@@|{{#widget:link|type=a|text={{#explode:@@@|<nowiki> </nowiki>|1}}|href={{#explode:@@@|<nowiki> </nowiki>|0}}|class=red d-block}} |}} }}<!--
 
--></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=]]}}{{#ifeq:{{#urlget:mode}}|edit|{{#widget:File upload

Versie van 12 nov 2020 10:03