32 lines
1.0 KiB
PHP
32 lines
1.0 KiB
PHP
|
|
<?= $this->extend('layouts/form.php') ?>
|
||
|
|
|
||
|
|
<?= $this->section('content') ?>
|
||
|
|
<?php
|
||
|
|
$listname = '';
|
||
|
|
if(isset($lists)) {
|
||
|
|
$listname = $lists[0]['listname'];
|
||
|
|
}
|
||
|
|
?>
|
||
|
|
<div class="form-body">
|
||
|
|
<h3 class="card-title">List Editor <button class="btn btn-danger fa fa-x float-end" onclick="window.close()"></button> </h3>
|
||
|
|
<hr>
|
||
|
|
<?php
|
||
|
|
if(isset($validation)) {
|
||
|
|
?>
|
||
|
|
<div class='alert alert-danger alert-dismissible'>
|
||
|
|
<?= $validation->listErrors(); ?>
|
||
|
|
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"> <span aria-hidden="true"></span> </button>
|
||
|
|
</div>
|
||
|
|
<?php
|
||
|
|
}
|
||
|
|
?>
|
||
|
|
<form method='POST' id='myForm'>
|
||
|
|
<input type='hidden' name='listid' value='<?=$listid;?>'/>
|
||
|
|
<div class='row mb-3'>
|
||
|
|
<div class='col-2'>List Name</div>
|
||
|
|
<div class='col-10'><input type='text' class='form-control form-control-sm' name='listname' value='<?=$listname;?>'></div>
|
||
|
|
</div>
|
||
|
|
<button type="submit" class="btn btn-success text-white float-start"> <i class="fa fa-check"></i> Submit</button>
|
||
|
|
</form>
|
||
|
|
</div>
|
||
|
|
<?= $this->endSection() ?>
|