Bootstrap 5 updates continued

This commit is contained in:
Joey Kimsey
2024-12-14 06:15:47 -05:00
parent 41426fda4e
commit de6d608857
44 changed files with 439 additions and 389 deletions

View File

@ -0,0 +1,42 @@
<legend>Contact Forms</legend>
{PAGINATION}
<form action="{ROOT_URL}admin/contact/delete" method="post">
<table class="table table-striped">
<thead>
<tr>
<th style="width: 5%">ID</th>
<th style="width: 25%">Time</th>
<th style="width: 55%">Feedback</th>
<th style="width: 5%"></th>
<th style="width: 5%"></th>
<th style="width: 5%">
<INPUT type="checkbox" onchange="checkAll(this)" name="check.f" value="F_[]"/>
</th>
</tr>
</thead>
<tbody>
{LOOP}
<tr>
<td>{ID}</td>
<td>{DTC}{time}{/DTC}</td>
<td>{feedback}</td>
<td><a href="{ROOT_URL}admin/contact/view/{ID}" class="btn btn-sm btn-primary"><i class="fa fa-fw fa-upload"></i></a></td>
<td><a href="{ROOT_URL}admin/contact/delete/{ID}" class="btn btn-sm btn-danger"><i class="fa fa-fw fa-trash"></i></a></td>
<td>
<input type="checkbox" value="{ID}" name="F_[]">
</td>
</tr>
{/LOOP}
{ALT}
<tr>
<td align="center" colspan="6">
No results to show.
</td>
</tr>
{/ALT}
</tbody>
</table>
<button name="submit" value="submit" type="submit" class="btn btn-sm btn-danger">Delete</button>
</form>
<br />
<a href="{ROOT_URL}admin/contact/clear">clear all</a>

View File

@ -0,0 +1,56 @@
<div class="container">
<div class="row">
<div class="col-sm-12 col-md-6 col-lg-6 col-sm-offset-0 col-md-offset-3 col-lg-offset-3 top-pad" >
<div class="card">
<div class="card-header bg-dark">
<h3 class="card-title">Contact</h3>
</div>
<div class="card-body">
<div class="row">
<div class=" col-md-12 col-lg-12 ">
<table class="table table-user-primary">
<tbody>
<tr>
<td align="left" width="200">ID:</td>
<td align="right">{ID}</td>
</tr>
<tr>
<td>Time submitted:</td>
<td align="right">{DTC}{time}{/DTC}</td>
</tr>
<tr>
<td>IP:</td>
<td align="right">{ip}</td>
</tr>
<tr>
<td>Email:</td>
<td align="right">{email}</td>
</tr>
<tr>
<td>Name</td>
<td align="right">{name}</td>
</tr>
<tr>
<td align="center" colspan="2">Feedback</td>
</tr>
<tr>
<td colspan="2">{feedback}</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="card-footer">
{ADMIN}
<form action="{ROOT_URL}admin/contact/delete" method="post">
<INPUT type="hidden" name="F_" value="{ID}"/>
<input type="hidden" name="token" value="{TOKEN}" />
<button name="submit" value="submit" type="submit" class="btn btn-sm btn-danger"><i class="fa fa-fw fa-times"></i></button>
</form>
{/ADMIN}
</div>
</div>
</div>
</div>
</div>

View File

@ -0,0 +1,45 @@
<div class="context-main-bg container py-4 my-4">
<h2 class="text-center mb-4">Contact Us</h2>
<div class="col-lg-6 offset-md-3">
<p>
Here at <strong>{SITENAME}</strong>, we highly value your feedback. We constantly strive to provide our users with the highest level of quality in everything we do.
</p>
<p>
If you would like to provide any suggestions or comments on our service, we ask that you please fill out the quick form below and let us know what's on your mind.
</p>
</div>
<form action="" method="post">
<!-- Name -->
<div class="mb-3 row">
<label for="name" class="col-lg-3 col-form-label text-end">Name:</label>
<div class="col-lg-6">
<input type="text" class="form-control" name="name" id="name" required>
</div>
</div>
<!-- Email (Optional) -->
<div class="mb-3 row">
<label for="contactEmail" class="col-lg-3 col-form-label text-end">E-mail: (optional)</label>
<div class="col-lg-6">
<input type="email" class="form-control" name="contactEmail" id="contactEmail">
</div>
</div>
<!-- Feedback -->
<div class="mb-3 row">
<label for="entry" class="col-lg-3 col-form-label text-end">Feedback:</label>
<div class="col-lg-6">
<textarea class="form-control" name="entry" id="entry" rows="6" maxlength="2000" required></textarea>
<small class="form-text text-muted">Max: 2000 characters</small>
</div>
</div>
<!-- Hidden Token -->
<input type="hidden" name="token" value="{TOKEN}">
<!-- Submit Button -->
<div class="text-center">
<button type="submit" name="submit" value="submit" class="btn btn-primary btn-lg">Submit</button>
</div>
</form>
</div>

View File

@ -0,0 +1,27 @@
<form action="" method="post" class="form-horizontal">
<legend>Feedback</legend>
<p>Here at {SITENAME} we highly value your feedback. We constantly strive to provide our users with the highest level of quality in everything we do.</p>
<p>If you would like to provide any suggestions or comments on our service, we ask that you please fill out the quick form below and let us know what's on your mind.</p>
<fieldset>
<div class="form-group">
<label for="name" class="col-lg-1 control-label">Name:</label>
<div class="col-lg-2">
<input class="form-control" type="text" name="name" id="name">
</div>
</div>
<div class="form-group">
<label for="feedbackEmail" class="col-lg-1 control-label">E-mail: (optional)</label>
<div class="col-lg-2">
<input class="form-control" type="text" name="feedbackEmail" id="feedbackEmail">
</div>
</div>
<div class="form-group">
<label for="entry" class="col-lg-3 control-label">Feedback:<br> (max:2000 characters)</label>
<div class="col-lg-6">
<textarea class="form-control" name="entry" maxlength="2000" rows="10" cols="50" id="entry"></textarea>
</div>
</div>
</fieldset>
<input type="hidden" name="token" value="{TOKEN}">
<button name="submit" value="submit" type="submit" class="btn btn-lg btn-primary center-block">Submit</button><br>
</form>