Sjabloon:Domein form: verschil tussen versies

Uit Dorpsbelang Den Hout
Ga naar:navigatie, zoeken
Regel 29: Regel 29:
 
-->{{#Widget:Multi upload}}</div><!--  
 
-->{{#Widget:Multi upload}}</div><!--  
 
   --><div><b>Links</b></div><!--   
 
   --><div><b>Links</b></div><!--   
--><div class="links-input-wrapper"><wsfield type="text" name="Links" class="form-control" /></div><wsfield type="button" class="btn pull-right"   >{{fa|plus}}</wsfield><!--  
+
--><div id="links-input-wrapper"><wsfield type="text" name="Links[]" class="form-control" /></div><wsfield type="button" class="btn pull-right" onclick="addLink" >{{fa|plus}}</wsfield><!--  
 
  --></div><!--  
 
  --></div><!--  
 
--></div><div class="main-wrapper mt-4"><wsfield type="button" class="btn pull-right"  >Opslaan</wsfield></div></wsform><!--  
 
--></div><div class="main-wrapper mt-4"><wsfield type="button" class="btn pull-right"  >Opslaan</wsfield></div></wsform><!--  
Regel 37: Regel 37:
 
      
 
      
 
})
 
})
 
+
function addLink(){
 +
  var newlinkinput = document.createElement('input');
 +
  newlinkinput.name = "Links[]";
 +
  newlinkinput.type = "text"
 +
  newlinkinput.classList.add("form-control");
 +
document.getElementById('links-input-wrapper').appendChild(newlinkinput)
 +
}
 
</script>}}
 
</script>}}

Versie van 18 aug 2020 13:09

Domeinen
{{#arraymap:Voedbal-denhout.nl, Stichting-htb.nl, scoutingdenhout.nl|,|@@@|
@@@
|}}