SproutCMS

This is the code documentation for the SproutCMS project

source of /modules/Welcome/views/super_op_form.php

  1. <?php
  2. /*
  3.  * kate: tab-width 4; indent-width 4; space-indent on; word-wrap off; word-wrap-column 120;
  4.  * :tabSize=4:indentSize=4:noTabs=true:wrap=false:maxLineLen=120:mode=php:
  5.  *
  6.  * Copyright (C) 2016 Karmabunny Pty Ltd.
  7.  *
  8.  * This file is a part of SproutCMS.
  9.  *
  10.  * SproutCMS is free software: you can redistribute it and/or modify it under the terms
  11.  * of the GNU General Public License as published by the Free Software Foundation, either
  12.  * version 2 of the License, or (at your option) any later version.
  13.  *
  14.  * For more information, visit <http://getsproutcms.com>.
  15.  */
  16.  
  17. use Sprout\Helpers\Form;
  18. ?>
  19.  
  20.  
  21. <style>
  22. .login-box {
  23. max-width: 900px;
  24. margin: 2em auto;
  25. padding-top: 0;
  26. }
  27. </style>
  28.  
  29.  
  30. <form action="welcome/super_op_action" method="post">
  31.  
  32. <?php
  33. Form::nextFieldDetails('Username', true, 'Must be a single word, only letters and numbers allowed');
  34. echo Form::text('username');
  35. ?>
  36.  
  37. <div style="background: #eee; padding: 15px; margin: 40px 0 15px 0;">
  38. <b>Password complexity requirements:</b>
  39. <br>
  40. 16 characters
  41. &nbsp; <i>OR</i> &nbsp;
  42. 8 characters with at least 1 uppercase, 1 lowercase, and 1 number
  43. </div>
  44.  
  45. <div class="clear-group">
  46. <div class="col col--one-half">
  47. <?php
  48. Form::nextFieldDetails('Enter new password', true);
  49. echo Form::password('password1', ['autocomplete' => 'off']);
  50. ?>
  51. </div>
  52. <div class="col col--one-half">
  53. <?php
  54. Form::nextFieldDetails('Enter it again', true);
  55. echo Form::password('password2', ['autocomplete' => 'off']);
  56. ?>
  57. </div>
  58. </div>
  59.  
  60.  
  61. <div>
  62. <a href="welcome/checklist" class="button button-grey">Back</a>
  63. <button type="submit" class="button right button-green icon-before icon-save">Generate config</button>
  64. </div>
  65. </form>
  66.