Added event description will add the rest tmrw, some other minor cleanups

This commit is contained in:
johnnyq 2022-01-12 19:07:27 -05:00
parent d272214c2d
commit 37e97e14ef
3 changed files with 26 additions and 16 deletions

View File

@ -10,16 +10,6 @@
<form action="post.php" method="post" autocomplete="off">
<div class="modal-body bg-white">
<div class="form-group">
<label>Title <strong class="text-danger">*</strong></label>
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text"><i class="fa fa-fw fa-angle-right"></i></span>
</div>
<input type="text" class="form-control" name="title" placeholder="Title of the event" required autofocus>
</div>
</div>
<div class="form-group">
<label>Calendar <strong class="text-danger">*</strong></label>
<div class="input-group">
@ -49,7 +39,22 @@
</div>
<div class="form-group">
<label>Starts <strong class="text-danger">*</strong></label>
<label>Title <strong class="text-danger">*</strong></label>
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text"><i class="fa fa-fw fa-angle-right"></i></span>
</div>
<input type="text" class="form-control" name="title" placeholder="Title of the event" required autofocus>
</div>
</div>
<div class="form-group">
<label>Description</label>
<textarea class="form-control" rows="3" name="description" placeholder="Enter a description"></textarea>
</div>
<div class="form-group">
<label>Start <strong class="text-danger">*</strong></label>
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text"><i class="fa fa-fw fa-clock"></i></span>
@ -59,7 +64,7 @@
</div>
<div class="form-group">
<label>Ends <strong class="text-danger">*</strong></label>
<label>End <strong class="text-danger">*</strong></label>
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text"><i class="fa fa-fw fa-stopwatch"></i></span>

View File

@ -22,6 +22,11 @@
<input type="text" class="form-control" name="title" value="<?php echo $event_title; ?>" placeholder="Title of the event" required>
</div>
</div>
<div class="form-group">
<label>Description</label>
<textarea class="form-control" rows="3" name="description" placeholder="Enter a description"><?php echo $event_description; ?></textarea>
</div>
<div class="form-group">
<label>Calendar <strong class="text-danger">*</strong></label>
@ -48,7 +53,7 @@
</div>
<div class="form-group">
<label>Starts <strong class="text-danger">*</strong></label>
<label>Start <strong class="text-danger">*</strong></label>
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text"><i class="fa fa-fw fa-clock"></i></span>
@ -58,7 +63,7 @@
</div>
<div class="form-group">
<label>Ends <strong class="text-danger">*</strong></label>
<label>End <strong class="text-danger">*</strong></label>
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text"><i class="fa fa-fw fa-stopwatch"></i></span>

View File

@ -64,10 +64,10 @@ scratch. This page gets rid of all links and provides the needed markup only.
//Alert Feedback
if(!empty($_SESSION['alert_message'])){
if (!isset($_SESSION['alert_type'])){
$_SESSION['alert_type'] = "primary";
$_SESSION['alert_type'] = "info";
}
?>
<div class="alert alert-info alert-<?php echo $_SESSION['alert_type']; ?>" id="alert">
<div class="alert alert-<?php echo $_SESSION['alert_type']; ?>" id="alert">
<?php echo $_SESSION['alert_message']; ?>
<button class='close' data-dismiss='alert'>&times;</button>
</div>