Browse Source

Added some html templates to the git repository.

pull/41/head
jrtechs 6 years ago
parent
commit
cce4be2633
4 changed files with 132 additions and 0 deletions
  1. +66
    -0
      templates/admin/adminDownloads.html
  2. +0
    -0
      templates/admin/adminHome.html
  3. +66
    -0
      templates/admin/adminMain.html
  4. +0
    -0
      templates/admin/adminPosts.html

+ 66
- 0
templates/admin/adminDownloads.html View File

@ -0,0 +1,66 @@
<div class="row">
<!-- Add Download -->
<div class="col-md-6">
<div class="blogPost">
<h1 class="text-center">Add Download</h1>
<form action="/admin" method ="post" class="p-2">
<div class="form-group">
<input class="form-control" type="text" name="add_download_name" required>
<label>Download Name</label>
</div>
<div class="form-group">
<input class="form-control" type="text" name="add_download_file" required>
<label>File name</label>
</div>
<div class="text-center">
<input type="submit" name="add_download" value="Add Download"
class="btn btn-lg btn-secondary"/>
</div>
</form>
</div>
<br>
</div>
<!-- Downloads -->
<div class="col-md-6">
<div class='blogPost'>
<h1 class="text-center">Downloads</h1>
<div class="">
<table class="table table-striped">
<thead class="thead-dark">
<tr>
<td>Download Name</td>
<td>File</td>
<td>Download Count</td>
<td>Delete</td>
</tr>
</thead>
<tbody>
{for download in downloads}
<tr>
<td>
{download.name}
</td>
<td>
{download.file}
</td>
<td>
{download.download_count}
</td>
<td>
<form action="/admin/downloads" method ="post" >
<input type="submit" name="submit" value="Delete" class="btn btn-secondary"/>
<input type='hidden' name='delete_download' value='{download_id}' />
</form>
</td>
</tr>
{/for}
</tbody>
</table>
</div>
</div>
</div>
</div>

+ 0
- 0
templates/admin/adminHome.html View File


+ 66
- 0
templates/admin/adminMain.html View File

@ -0,0 +1,66 @@
{header}
<div class="container">
{if loggedIn}
{>adminPage}
in the system
{else}
{if goodLoginAttempt}
<meta http-equiv="refresh" content="0">
{/if}
<div class="row">
{if banned}
<div class="align-content-center">
<br>
<h1>Yikes</h1>
<br>
<img src="/includes/img/404.jpg" alt="Page not found meme" width="70%" />
<br><br><br><br>
</div>
{else}
<div class="col-md-8">
<div class="blogPost">
<div class="text-center">
<h2>Login</h2>
</div>
<form action="/admin/" method ="post" class="p-2">
<div class="form-group">
<label for="username1">User Name</label>
<input class="form-control" type="text" id="username1" name="username" placeholder="Enter username" required>
</div>
<div class="form-group">
<label for="password1">Password</label>
<input class="form-control" type="password" name="password" id="password1" placeholder="Password" required>
</div>
<div class="text-center">
<button class="btn btn-lg btn-secondary">Login</button>
</div>
<br>
</form>
{if invalid}
<p>
Invalid login attempt.
</p>
{/if}
<!--
/\_/\ ___
= o_o =_______ \ \
__^ __( \.__) )
(@)<_____>__(_____)____/
-->
</div>
<br /><br />
</div>
{/if}
</div>
{/if}
</div>
{footer}

+ 0
- 0
templates/admin/adminPosts.html View File


Loading…
Cancel
Save