OmarElGabry/miniPHP

View on GitHub
app/views/posts/commentUpdateForm.php

Summary

Maintainability
A
0 mins
Test Coverage
    
    
    <span class="chat-img pull-left">
        <img src="<?= PUBLIC_ROOT . "img/profile_pictures/" . $comment["profile_picture"]; ?>" alt="User Picture" class="img-circle profile-pic-sm">
    </span>
    
    <div class="chat-body clearfix">
        <div class="header">
            <strong class="primary-font"><?= $comment["user_name"]; ?></strong>
            <small class="text-muted"><i class="fa fa-clock-o fa-fw"></i><?= $this->timestamp($comment["date"]) ?></small>
        </div>
        <form action="#" id="<?= "form-update-comment-" . Encryption::encryptId($comment["id"]); ?>" method="post">
            <div class="form-group">
                <textarea dir="auto" rows="3" maxlength="300" name="content" class="form-control" required 
                        placeholder="Write your Comment"> <?= $this->encodeHTML($comment["content"]); ?></textarea>
                <p class="help-block"><em>The maximum number of characters allowed is <strong>300</strong></em></p>
            </div>
            <div class="form-group form-actions text-right">
                <button type='button' name='cancel' value='cancel' class="btn btn-sm btn-default"><i class="fa fa-times"></i> Cancel</button>
                <button type='submit' name='edit' value='edit' class="btn btn-sm btn-primary"><i class="fa fa-pencil"></i> Edit</button>
            </div>
        </form>
    </div>