PHP Classes

File: app/Views/Profileimage/edit.php

Recommend this page to a friend!
  Classes of Faris AL-Otabi   Task App   app/Views/Profileimage/edit.php   Download  
File: app/Views/Profileimage/edit.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Task App
Create and manage tasks to be done
Author: By
Last change:
Date: 1 month ago
Size: 1,053 bytes
 

Contents

Class file image Download
<?= $this->extend("base"); ?>

<?= $this->section("title"); ?>Update My Profile Image<?= $this->endSection(); ?>

<?= $this->section("content"); ?>

<h1 class="title">Update My Profile Image</h1>

<?php if (session()->has('errors')) : ?>
<ul>
        <?php foreach (session('errors') as $error) : ?>
<li><?= $error; ?></li>
        <?php endforeach; ?>
</ul>
<?php endif; ?>

<?= form_open_multipart("/profileimage/update"); ?>

<div class="file">
    <label class="file-label">
        <input class="file-input" type="file" name="image">
        <span class="file-cta">
            <span class="file-icon">
                <i class="fas fa-upload"></i>
            </span>
            <span class="file-label">
                Choose a file?
            </span>
        </span>
    </label>
</div>

<div class="field mt-4">
    <button class="button is-primary" type="submit">Save</button>
    <a class="button is-danger" href="<?= site_url("/profile/show"); ?>">Cancle</a>
</div>

<?= form_close() ?>

<?= $this->endSection(); ?>