-
Adrian Hartarto Pramudita authoredabccf79e
Forked from
IF3110 / TugasBesar2_2017
13 commits ahead of the upstream repository.
EditProfile.view.php 1.76 KiB
<?php
namespace MotaRaido\Menu\Profile;
if (!defined('MOTAFW'))
{
echo 'This file can only be called via the main index.php file, and not directly';
exit();
}
?>
<?php echo $this->header; ?>
<div class="edit-profile-container">
<form action='/editprofile/<?php echo $this->user; ?>/finish' method='post' onsubmit="return editProfileValidation();" enctype="multipart/form-data" name="editprofile-form">
<h1 class="edit-profile-header">Edit Profile Information</h1>
<img id="profile-pic" src="<?php echo $this->image; ?>" alt="">
<div class="img-chooser">
<p>Update profile picture</p>
<input type="file" name="image" accept="image/jpeg, image/png">
</div>
<div class="edit-profile-btm">
<div class="form-editprofile">
<label for="your-name">Your Name</label>
<input class="ep-textarea" type="text" name="your-name" value="<?php echo $this->name; ?>">
</div>
<div class="form-editprofile">
<label for="phone-number">Phone</label>
<input class="ep-textarea" type="text" name="phone-number" value="<?php echo $this->phone; ?>">
</div>
<div class="button-form">
<div>
Status driver
</div>
<label class="switch">
<input type="checkbox" name="is-driver" <?php echo $this->isDriver; ?>>
<span class="slider round"></span>
</label>
</div>
<a href='/profile/<?php echo $this->user; ?>'><input class="cancel-button" value="Back"></a>
<input class="accept-button" id="save-profile" type="submit" value="Save">
</div>
</form>
</div>