PHP Classes

File: app/Views/templates/user/edit.php

Recommend this page to a friend!
  Classes of Rodrigo Faustino   PHP MVC App   app/Views/templates/user/edit.php   Download  
File: app/Views/templates/user/edit.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP MVC App
MVC based application for the Web and as an API
Author: By
Last change:
Date: 12 days ago
Size: 871 bytes
 

Contents

Class file image Download
<div class="container">
<h1>Editar Usuário</h1>

<?php if ($error = \App\Core\Flash::get($_ENV['FLASH_MESSAGE_KEY'])): ?>
<?php foreach ($flash as $type => $message): ?>
<div class="<?php echo $h($type); ?>">
        <?php echo $h($message); ?>
</div>
    <?php endforeach; ?>
<?php
endif; ?>

<form action="/user/update/<?php echo $h($user->getUuid()); ?>" method="POST">
    <label for="name">Nome:</label>
    <input type="text" id="name" name="name" value="<?php echo $h($user->getName()); ?>" required>
    <br>
    <label for="email">E-mail:</label>
    <input type="email" id="email" name="email" value="<?php echo $h($user->getEmail()); ?>" required>
    <br>
    <label for="password">Senha:</label>
    <input type="password" id="password" name="password">
    <br>
    <button type="submit">Atualizar</button>
</form>
<a href="/">Voltar</a>
</div>