Category: html

Display a switch by a flag

I need to display a switch if a flag in my database is setted to a positive value. <div class=”form-group m-form__group row vertical-padding10″> <label class=”col-form-label col-lg-2 col-sm-12″>Switch</label> <input id=”switch” name=”switch” data-switch=”true” data-size=”small” data-on-color=”success” type=”checkbox” checked> </div> How can I execute…

How to change qr code filename while downloading the file using html.twig and javascript

I have a qr-code button. On click, qr-code is generated and dialog to save the image format pops-up. In which the filename always comes as “qrcode.png”. I have to dynamically change the filename to the name of the files from…