Sjabloon:Bericht: verschil tussen versies
Uit Dorpsbelang Den Hout
Regel 34: | Regel 34: | ||
--><div><b>Aanvullende informatie:</b></div><!-- | --><div><b>Aanvullende informatie:</b></div><!-- | ||
--><div>{{#ifeq:{{#urlget:mode}}|edit|<!-- | --><div>{{#ifeq:{{#urlget:mode}}|edit|<!-- | ||
− | --><div id="links-input-wrapper">{{#arraymap:{{ | + | --><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></div>{{#tag:html|<script> |
function addLink(){ | function addLink(){ | ||
var newlinkinput = document.createElement('div'); | var newlinkinput = document.createElement('div'); | ||
Regel 44: | Regel 44: | ||
el.closest('.d-flex').remove() | el.closest('.d-flex').remove() | ||
} | } | ||
− | </script>}}|}}<!-- | + | </script>}}|{{#arraymap:{{{Links|}}}|,|@@@|{{#widget:link|type=a|text={{#explode:@@@|<nowiki> </nowiki>|1}}|href={{#explode:@@@|<nowiki> </nowiki>|0}} }} |}} }}<!-- |
--></div><!-- | --></div><!-- | ||
--><div class="grid-img"><!-- | --><div class="grid-img"><!-- |