Initial commit
This commit is contained in:
22
app/plugins/suggestions/views/admin/edit.html
Normal file
22
app/plugins/suggestions/views/admin/edit.html
Normal file
@ -0,0 +1,22 @@
|
||||
<form action="" method="post" class="form-horizontal">
|
||||
<div class="form-group">
|
||||
<div class="col-lg-4 col-lg-offset-4">
|
||||
<label for="title" class="col-lg-3 control-label">Title</label>
|
||||
<input type="text" class="form-check-input" name="title" id="title" value="{title}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-lg-4 col-lg-offset-4">
|
||||
<label for="suggestion">Suggestion</label>
|
||||
<textarea class="form-control" name="suggestion" maxlength="2000" rows="10" cols="50" id="suggestion">{suggestion}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-lg-4 col-lg-offset-4">
|
||||
<input class="" type="checkbox" name="approved" id="approved" value="true" {CHECKED:approved=true}>
|
||||
<label for="approved">Approved (Publicly available)?</label>
|
||||
</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>
|
56
app/plugins/suggestions/views/admin/list.html
Normal file
56
app/plugins/suggestions/views/admin/list.html
Normal file
@ -0,0 +1,56 @@
|
||||
<legend>Suggestions</legend>
|
||||
{PAGINATION}
|
||||
<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="glyphicon glyphicon-ok"></i></a>
|
||||
<a href="{ROOT_URL}admin/suggestions/reject/{ID}" class="btn btn-sm btn-danger" role="button"><i class="glyphicon glyphicon-remove"></i></a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="{ROOT_URL}admin/suggestions/view/{ID}" class="btn btn-sm btn-primary" role="button"><i class="glyphicon glyphicon-open"></i></a>
|
||||
<a href="{ROOT_URL}admin/suggestions/delete/{ID}" class="btn btn-sm btn-danger" role="button"><i class="glyphicon glyphicon-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">Delete</button>
|
||||
</form>
|
||||
<br />
|
||||
<a href="{ROOT_URL}admin/suggestions/clear">clear all</a>
|
17
app/plugins/suggestions/views/admin/view.html
Normal file
17
app/plugins/suggestions/views/admin/view.html
Normal file
@ -0,0 +1,17 @@
|
||||
<div class="row">
|
||||
<div class="col-lg-12 col-sm-12 blog-main">
|
||||
<div class="blog-post">
|
||||
<h2 class="blog-post-title">Suggestion</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/delete/{ID}" class="btn btn-md btn-danger" role="button">Delete</a>
|
||||
<a href="{ROOT_URL}admin/suggestions/edit/{ID}" class="btn btn-md btn-warning" role="button">Edit</a>
|
||||
<hr>
|
||||
{/ADMIN}
|
||||
</div><!-- /.suggestions-post -->
|
||||
{COMMENTS}
|
||||
</div><!-- /.suggestions-main -->
|
||||
</div><!-- /.row -->
|
16
app/plugins/suggestions/views/create.html
Normal file
16
app/plugins/suggestions/views/create.html
Normal file
@ -0,0 +1,16 @@
|
||||
<form action="" method="post" class="form-horizontal">
|
||||
<legend>Submit a Suggestion</legend>
|
||||
<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-8 col-lg-offset-2">
|
||||
<textarea class="form-control" name="suggestion" maxlength="2000" rows="4" cols="50" id="suggestion"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<button name="submit" value="submit" type="submit" class="btn btn-lg btn-primary center-block">Submit</button>
|
||||
<input type="hidden" name="token" value="{TOKEN}">
|
||||
</form>
|
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>
|
19
app/plugins/suggestions/views/list.html
Normal file
19
app/plugins/suggestions/views/list.html
Normal file
@ -0,0 +1,19 @@
|
||||
<legend>Suggestions</legend>
|
||||
{PAGINATION}
|
||||
{LOOP}
|
||||
<div class="blog-post">
|
||||
<h2 class="blog-post-title"><a href="{ROOT_URL}suggestions/view/{ID}">{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}"><strong>{submittedBy}</strong></a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
{/LOOP}
|
||||
{ALT}
|
||||
<div class="blog-post">
|
||||
<p class="blog-post-meta">No Suggestions Found.</p>
|
||||
</div>
|
||||
{/ALT}
|
||||
<a href="{ROOT_URL}suggestions/create" class="btn btn-sm btn-primary" role="button">Create</a>
|
18
app/plugins/suggestions/views/view.html
Normal file
18
app/plugins/suggestions/views/view.html
Normal file
@ -0,0 +1,18 @@
|
||||
<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/delete/{ID}" class="btn btn-md btn-danger" role="button">Delete</a>
|
||||
<a href="{ROOT_URL}admin/suggestions/edit/{ID}" class="btn btn-md btn-warning" role="button">Edit</a>
|
||||
<hr>
|
||||
{/ADMIN}
|
||||
</div><!-- /.suggestions-post -->
|
||||
{COMMENTS}
|
||||
{NEWCOMMENT}
|
||||
</div><!-- /.suggestions-main -->
|
||||
</div><!-- /.row -->
|
Reference in New Issue
Block a user