all atb changes
This commit is contained in:
38
app/plugins/suggestions/views/admin/edit.html
Normal file
38
app/plugins/suggestions/views/admin/edit.html
Normal file
@ -0,0 +1,38 @@
|
||||
<div class="mb-4 mt-4">
|
||||
<div class="offset-md-1 col-10 py-3 context-main-bg">
|
||||
<legend class="text-center">Edit Suggestion</legend>
|
||||
<hr>
|
||||
<form action="" method="post" class="container py-4">
|
||||
<fieldset>
|
||||
<div class="mb-3 row">
|
||||
<label for="title" class="col-lg-5 col-form-label text-end">Title</label>
|
||||
<div class="col-lg-3">
|
||||
<input type="text" class="form-control" name="title" id="title" value="{title}" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mb-3 row">
|
||||
<label for="approved" class="col-lg-5 col-form-label text-end">Approved</label>
|
||||
<div class="col-lg-3">
|
||||
<div class="form-check form-switch">
|
||||
<input class="form-check-input" type="checkbox" role="switch" id="approved" value="true" name="approved">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mb-3 row">
|
||||
<label for="suggestion" class="col-lg-5 col-form-label text-end">Suggestion:</label>
|
||||
<div class="col-lg-3">
|
||||
<textarea class="form-control" name="suggestion" maxlength="2000" rows="5" cols="50" id="suggestion">{suggestion}</textarea>
|
||||
</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">Save</button>
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
59
app/plugins/suggestions/views/admin/list.html
Normal file
59
app/plugins/suggestions/views/admin/list.html
Normal file
@ -0,0 +1,59 @@
|
||||
<div class="context-main-bg context-main p-3">
|
||||
<legend class="text-center">Suggestions</legend>
|
||||
<hr>
|
||||
{ADMIN_BREADCRUMBS}
|
||||
<form action="{ROOT_URL}admin/suggestions/delete" method="post">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 5%">ID</th>
|
||||
<th style="width: 30%">Suggestion</th>
|
||||
<th style="width: 10%">Suggested On</th>
|
||||
<th style="width: 10%">Suggested By</th>
|
||||
<th style="width: 10%">Approved</th>
|
||||
<th style="width: 10%">Approved On</th>
|
||||
<th style="width: 10%">Approved By</th>
|
||||
<th style="width: 5%"></th>
|
||||
<th style="width: 5%"></th>
|
||||
<th style="width: 5%">
|
||||
<input type="checkbox" onchange="checkAll(this)" name="check.br" value="S_[]">
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{LOOP}
|
||||
<tr>
|
||||
<td align="center">{ID}</td>
|
||||
<td>{suggestion}</td>
|
||||
<td align="center">{DTC}{suggestedOn}{/DTC}</td>
|
||||
<td align="center">{submittedBy}</td>
|
||||
<td>{approved}</td>
|
||||
<td align="center">{DTC}{approvedOn}{/DTC}</td>
|
||||
<td align="center">{approvedByName}</td>
|
||||
<td>
|
||||
<a href="{ROOT_URL}admin/suggestions/approve/{ID}" class="btn btn-sm btn-success" role="button"><i class="fa fa-fw fa-check"></i></a>
|
||||
<a href="{ROOT_URL}admin/suggestions/reject/{ID}" class="btn btn-sm btn-danger" role="button"><i class="fa fa-fw fa-close"></i></a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="{ROOT_URL}admin/suggestions/view/{ID}" class="btn btn-sm btn-primary" role="button"><i class="fa fa-fw fa-upload"></i></a>
|
||||
<a href="{ROOT_URL}admin/suggestions/delete/{ID}" class="btn btn-sm btn-danger" role="button"><i class="fa fa-fw fa-trash"></i></a>
|
||||
</td>
|
||||
<td>
|
||||
<input type="checkbox" value="{ID}" name="BR_[]">
|
||||
</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"><i class="fa fa-fw fa-trash"></i></button>
|
||||
</form>
|
||||
<br>
|
||||
<a href="{ROOT_URL}admin/suggestions/clear">clear all</a>
|
||||
</div>
|
14
app/plugins/suggestions/views/admin/view.html
Normal file
14
app/plugins/suggestions/views/admin/view.html
Normal file
@ -0,0 +1,14 @@
|
||||
<div class="context-main-bg context-main p-3">
|
||||
<legend class="text-center">Suggestion: {title}</legend>
|
||||
<hr>
|
||||
{ADMIN_BREADCRUMBS}
|
||||
<p class="blog-post-meta">{DTC date}{suggestedOn}{/DTC} by <a href="{ROOT_URL}admin/users/view/{author}">{submittedBy}</a></p>
|
||||
{suggestion}
|
||||
{ADMIN}
|
||||
<hr>
|
||||
<a href="{ROOT_URL}admin/suggestions/edit/{ID}" class="btn btn-md btn-warning" role="button"><i class="fa fa-fw fa-pencil"></i></a>
|
||||
<a href="{ROOT_URL}admin/suggestions/delete/{ID}" class="btn btn-md btn-danger" role="button"><i class="fa fa-fw fa-trash"></i></a>
|
||||
<hr>
|
||||
{/ADMIN}
|
||||
{COMMENTS}
|
||||
</div>
|
32
app/plugins/suggestions/views/create.html
Normal file
32
app/plugins/suggestions/views/create.html
Normal file
@ -0,0 +1,32 @@
|
||||
<div class="context-main-bg container py-4 mt-4">
|
||||
<h2 class="text-center mb-4">Make a suggestion</h2>
|
||||
<p class="col-lg-6 offset-md-3">
|
||||
I can't be expected to come up with all the great ideas around here. Feel free to make a suggestion here. Some suggestions will be approved for the community to comment on!
|
||||
</p>
|
||||
<form action="" method="post">
|
||||
<!-- Title -->
|
||||
<div class="my-3 row">
|
||||
<label for="title" class="col-lg-3 col-form-label text-end">Title:</label>
|
||||
<div class="col-lg-6">
|
||||
<input type="text" class="form-control" name="title" id="title" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Feedback -->
|
||||
<div class="mb-3 row">
|
||||
<label for="suggestion" class="col-lg-3 col-form-label text-end">Suggestion:</label>
|
||||
<div class="col-lg-6">
|
||||
<textarea class="form-control" name="suggestion" id="suggestion" 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-lg atb-green-bg">Submit</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
15
app/plugins/suggestions/views/edit.html
Normal file
15
app/plugins/suggestions/views/edit.html
Normal file
@ -0,0 +1,15 @@
|
||||
<form action="" method="post" class="form-horizontal">
|
||||
<div class="form-group">
|
||||
<label for="title" class="col-lg-3 control-label">Title</label>
|
||||
<div class="col-lg-3">
|
||||
<input type="text" class="form-check-input" name="title" id="title" value="{title}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group center-block">
|
||||
<div class="col-lg-4 col-lg-offset-4">
|
||||
<textarea class="form-control" name="suggestion" maxlength="2000" rows="10" cols="50" id="suggestion">{suggestion}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
<button name="submit" value="submit" type="submit" class="btn btn-lg btn-primary center-block">Save</button>
|
||||
<input type="hidden" name="token" value="{TOKEN}">
|
||||
</form>
|
26
app/plugins/suggestions/views/list.html
Normal file
26
app/plugins/suggestions/views/list.html
Normal file
@ -0,0 +1,26 @@
|
||||
<div class="col-10 offset-md-1 context-main-bg p-4 my-5">
|
||||
<legend class="text-center">Suggestions</legend>
|
||||
<hr>
|
||||
{LOOP}
|
||||
<div class="blog-post p-2">
|
||||
<h2 class="blog-post-title"><a href="{ROOT_URL}suggestions/view/{ID}" class="text-decoration-none atb-green">{title}</a></h2>
|
||||
<div class="well">
|
||||
{suggestion}
|
||||
<p class="blog-post-meta">
|
||||
Suggested on <i>{DTC date}{suggestedOn}{/DTC}</i> by <a href="{ROOT_URL}home/profile/{author}" class="text-decoration-none atb-green"><strong>{submittedBy}</strong></a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-6 offset-3 my-2">
|
||||
<hr>
|
||||
</div>
|
||||
{/LOOP}
|
||||
{ALT}
|
||||
<div class="blog-post">
|
||||
<p class="blog-post-meta py-3 text-center">No Suggestions Found.</p>
|
||||
</div>
|
||||
{/ALT}
|
||||
<div class="text-center">
|
||||
<a href="{ROOT_URL}suggestions/create" class="btn btn-lg btn-primary atb-green-bg" role="button">Make a Suggestion</a>
|
||||
</div>
|
||||
</div>
|
20
app/plugins/suggestions/views/view.html
Normal file
20
app/plugins/suggestions/views/view.html
Normal file
@ -0,0 +1,20 @@
|
||||
<div class="col-8 mx-auto p-4 rounded shadow-sm mb-5 context-main-bg mt-4">
|
||||
<div class="row">
|
||||
<div class="col-lg-12 col-sm-12 blog-main">
|
||||
<div class="blog-post">
|
||||
<h2 class="blog-post-title">{title}</h2>
|
||||
<hr>
|
||||
<p class="blog-post-meta">{DTC date}{suggestedOn}{/DTC} by <a href="{ROOT_URL}home/profile/{author}">{submittedBy}</a></p>
|
||||
{suggestion}
|
||||
{ADMIN}
|
||||
<hr>
|
||||
<a href="{ROOT_URL}admin/suggestions/edit/{ID}" class="btn btn-md btn-warning" role="button"><i class="fa fa-fw fa-pencil"></i></a>
|
||||
<a href="{ROOT_URL}admin/suggestions/delete/{ID}" class="btn btn-md btn-danger" role="button"><i class="fa fa-fw fa-trash"></i></a>
|
||||
<hr>
|
||||
{/ADMIN}
|
||||
</div><!-- /.suggestions-post -->
|
||||
{COMMENTS}
|
||||
{NEWCOMMENT}
|
||||
</div><!-- /.suggestions-main -->
|
||||
</div><!-- /.row -->
|
||||
</div>
|
Reference in New Issue
Block a user