| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- <?php
- /**
- * Registration view.
- *
- * Contains the view layout and some code to present the data.
- *
- * @author Iñigo Valentin <i@inigovalentin.com>
- * @license https://www.gnu.org/licenses/gpl-3.0.en.html GNU General Public License V3
- * @package SWDB
- * @category View
- * @property Register_Page $page The page model.
- * @var Register_Page $page The page model.
- */
- ?>
- <!DOCTYPE html>
- <html lang='en'>
- <head>
- <?=$page->generate_head()?>
- </head>
- <body>
- <header>
- <?php
- include __DIR__ . "/inc/header_app.php";
- ?>
- </header>
- <aside>
- </aside>
- <main>
- <section class='content'>
- <h2>
- Create an account
- </h2>
- <article>
- <!-- TODO: Action via JS, and fallback in controller -->
- <form method='POST' action='/action/register/'>
- <table>
- <tr>
- <td class='label'>
- <label for='uname'>
- Username
- </label>
- </td>
- <td class='input'>
- <input type='text' name='uname' id='uname' required/>
- </td>
- </tr>
- <tr>
- <td class='label'>
- <label for='uname'>
- e-mail
- </label>
- </td>
- <td class='input'>
- <input type='text' name='mail' id='mail' required/>
- </td>
- </tr>
- <tr>
- <td class='label'>
- <label for='password'>
- Password
- </label>
- </td>
- <td class='input'>
- <input type='password' name='password' id='password' required/>
- </td>
- </tr>
- <tr>
- <td class='label'>
- <label for='password'>
- Repeat password
- </label>
- </td>
- <td class='input'>
- <input type='password' name='password_repeat' id='password_repeat' required/>
- </td>
- </tr>
- <tr>
- <td class='submit' colspan='2'>
- <input type='submit' value='Create'/>
- </td>
- </tr>
- </table>
- </form>
- </article>
- </section>
- </main>
- <?php
- include __DIR__ . "/inc/footer.php";
- ?>
- </body>
- </html>
|