Sjabloon:Domein form: verschil tussen versies
Uit Dorpsbelang Den Hout
Regel 5: | Regel 5: | ||
-->|}}<wsfield type="button" class="btn" onclick="document.querySelectorAll('#domein-form input:not([type=file]), #domein-form textarea').forEach(function(e){e.value = ' ';e.removeAttribute('disabled')})" >{{fa|plus}}</wsfield></div><!-- | -->|}}<wsfield type="button" class="btn" onclick="document.querySelectorAll('#domein-form input:not([type=file]), #domein-form textarea').forEach(function(e){e.value = ' ';e.removeAttribute('disabled')})" >{{fa|plus}}</wsfield></div><!-- | ||
--></div><!-- | --></div><!-- | ||
− | --><wsform id="domein-form">{{#ask:[[Class::Domein]][[Domein::{{SERVERNAME}}]]|?Titel|?Subtitel|?Email|?Intro|?Color|?Links|link=none|format=complexarray|name=@domeininfo}}<div class="row bg-gray mt-4 pt-4 mb-4 pb-4"><!-- | + | --><wsform id="domein-form"><wscreate mwwrite="{{#replace:{{SERVERNAME}}|.|-}}" mwtemplate="Domein" />{{#ask:[[Class::Domein]][[Domein::{{SERVERNAME}}]]|?Titel|?Subtitel|?Email|?Intro|?Color|?Links|link=none|format=complexarray|name=@domeininfo}}<div class="row bg-gray mt-4 pt-4 mb-4 pb-4"><!-- |
--><div class="main-wrapper"><!-- | --><div class="main-wrapper"><!-- | ||
--><!-- | --><!-- | ||
Regel 31: | Regel 31: | ||
--><div id="links-input-wrapper">{{#arraymap:{{#caprint:@domeininfo[0][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 id="links-input-wrapper">{{#arraymap:{{#caprint:@domeininfo[0][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><!-- | --></div><!-- | ||
− | --></div><div class="main-wrapper mt-4"><wsfield type=" | + | --></div><div class="main-wrapper mt-4"><wsfield type="submit" class="btn pull-right " value="Opslaan" /></div></wsform><!-- |
-->{{#tag:html|<script> | -->{{#tag:html|<script> | ||
document.getElementById('change-color').addEventListener('input', function(e){ | document.getElementById('change-color').addEventListener('input', function(e){ |
Versie van 15 mrt 2021 18:15
Domeinen
Please log in first.