demo/config.ru in qrcode_pix_ruby-0.3.4 vs demo/config.ru in qrcode_pix_ruby-0.4.0

- old
+ new

@@ -8,10 +8,11 @@ data_uri = '' pix = QrcodePixRuby::Payload.new unless qrcode_data.empty? pix.pix_key = qrcode_data['pix_key'] unless qrcode_data['pix_key'].nil? + pix.url = qrcode_data['url'] unless qrcode_data['url'].nil? pix.description = qrcode_data['description'] unless qrcode_data['description'].nil? pix.merchant_name = qrcode_data['merchant_name'] unless qrcode_data['merchant_name'].nil? pix.merchant_city = qrcode_data['merchant_city'] unless qrcode_data['merchant_city'].nil? pix.transaction_id = qrcode_data['transaction_id'] unless qrcode_data['transaction_id'].nil? pix.amount = qrcode_data['amount'] unless qrcode_data['amount'].nil? @@ -61,13 +62,17 @@ <br> <br> <form action='https://qrcode-pix-ruby.herokuapp.com' method='post'> <div class='mb-3'> <label for='pix_key'>Pix key</label> - <input required type='text' class='form-control' id='pix_key' value='#{qrcode_data["pix_key"]}' name='pix_key'> + <input type='text' class='form-control' id='pix_key' value='#{qrcode_data["pix_key"]}' name='pix_key'> </div> <div class='mb-3'> + <label for='url'>URL</label> + <input type='text' class='form-control' id='url' value='#{qrcode_data["url"]}' name='url'> + </div> + <div class='mb-3'> <label for='description'>Description</label> <input required type='text' class='form-control' id='description' value='#{qrcode_data["description"]}' name='description'> </div> <div class='mb-3'> <label for='merchant_name'>Merchant name</label> @@ -97,11 +102,11 @@ <option value='BR' selected>Brazil</option> </select> </div> <div class='mb-3'> <label for='postal_code'>Postal code</label> - <input required type='text' class='form-control' id='postal_code' value='#{qrcode_data["postal_code"]}' name='postal_code'> + <input type='text' class='form-control' id='postal_code' value='#{qrcode_data["postal_code"]}' name='postal_code'> </div> <div class='mb-3'> <label for='repeatable'>Repeatable?</label> <select required id='repeatable' name='repeatable' class='form-select'> <option selected></option> @@ -125,11 +130,10 @@ </div> </div> </div> <script> new ClipboardJS('.btn-clipboard'); - - Array.from(document.querySelectorAll('[data-bs-toggle="tooltip"]')).forEach(function (tooltipTriggerEl) { + Array.from(document.querySelectorAll('[data-bs-toggle="tooltip"]')).forEach(function(tooltipTriggerEl) { new bootstrap.Tooltip(tooltipTriggerEl); }); </script> </body> </html>