SproutCMS

This is the code documentation for the SproutCMS project

source of /sprout/views/dbtools/qr_form.php

  1. <?php
  2. use Sprout\Helpers\Enc;
  3. use Sprout\Helpers\Form;
  4.  
  5. Form::setData($_GET);
  6. ?>
  7.  
  8. <form action="" method="get" class="field-group-wrap -clearfix">
  9.  
  10. <div class="field-group-item col col--one-half">
  11. <?php
  12. Form::nextFieldDetails('String', true);
  13. echo Form::text('payload');
  14. ?>
  15. </div>
  16.  
  17. <div class="field-group-item col col--one-half" style="margin-top: 2em;">
  18. <button class="button icon-after icon-send" type="submit">Update</button>
  19. </div>
  20.  
  21. </form>
  22.  
  23. <?php if (!empty($img)): ?>
  24. <img src="<?= Enc::html($img); ?>" alt="">
  25. <?php endif; ?>
  26.