wip
This commit is contained in:
19
app/plugins/portfolio/views/admin/create.html
Normal file
19
app/plugins/portfolio/views/admin/create.html
Normal file
@ -0,0 +1,19 @@
|
||||
<h2>Add Portfolio Link</h2>
|
||||
<form action="#" method="POST">
|
||||
<label for="section">Section Name:</label><br>
|
||||
<input type="text" id="section" name="section" required><br><br>
|
||||
|
||||
<label for="title">Title:</label><br>
|
||||
<input type="text" id="title" name="title" required><br><br>
|
||||
|
||||
<label for="image">Image:</label><br>
|
||||
<input type="text" id="image" name="image" required><br><br>
|
||||
|
||||
<label for="url">URL:</label><br>
|
||||
<input type="text" id="url" name="url" required><br><br>
|
||||
|
||||
<label for="description">Description:</label><br>
|
||||
<textarea id="description" name="description" rows="20" cols="50" required></textarea><br><br>
|
||||
|
||||
<input type="submit" name="submit" value="Submit">
|
||||
</form>
|
19
app/plugins/portfolio/views/admin/edit.html
Normal file
19
app/plugins/portfolio/views/admin/edit.html
Normal file
@ -0,0 +1,19 @@
|
||||
<h2>Edit Portfolio Link</h2>
|
||||
<form action="#" method="POST">
|
||||
<label for="section">Section Name:</label><br>
|
||||
<input type="text" id="section" name="section" value="{section}" required><br><br>
|
||||
|
||||
<label for="title">Title:</label><br>
|
||||
<input type="text" id="title" name="title" value="{title}" required><br><br>
|
||||
|
||||
<label for="image">Image:</label><br>
|
||||
<input type="text" id="image" name="image" value="{image}" required><br><br>
|
||||
|
||||
<label for="url">URL:</label><br>
|
||||
<input type="text" id="url" name="url" value="{url}" required><br><br>
|
||||
|
||||
<label for="description">Description</label><br>
|
||||
<textarea id="description" name="description" rows="20" cols="50" required>{description}</textarea><br><br>
|
||||
|
||||
<input type="submit" name="submit" value="Submit">
|
||||
</form>
|
44
app/plugins/portfolio/views/admin/list.html
Normal file
44
app/plugins/portfolio/views/admin/list.html
Normal file
@ -0,0 +1,44 @@
|
||||
<div class="context-main-bg context-main p-3">
|
||||
<legend class="text-center">Portfolio Links</legend>
|
||||
<hr>
|
||||
{ADMIN_BREADCRUMBS}
|
||||
<form action="{ROOT_URL}admin/portfolio/delete" method="post">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 30%">title</th>
|
||||
<th style="width: 30%">section</th>
|
||||
<th style="width: 25%">url</th>
|
||||
<th style="width: 5%"></th>
|
||||
<th style="width: 5%"></th>
|
||||
<th style="width: 5%">
|
||||
<INPUT type="checkbox" onchange="checkAll(this)" name="check.b" value="P_[]"/>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{LOOP}
|
||||
<tr>
|
||||
<td><a href="{ROOT_URL}admin/portfolio/view/{ID}" class="text-decoration-none">{title}</a></td>
|
||||
<td>{section}</td>
|
||||
<td>{url}</td>
|
||||
<td><a href="{ROOT_URL}admin/portfolio/edit/{ID}" class="btn btn-sm btn-warning" role="button"><i class="fa fa-fw fa-pencil"></i></a></td>
|
||||
<td><a href="{ROOT_URL}admin/portfolio/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="P_[]">
|
||||
</td>
|
||||
</tr>
|
||||
{/LOOP}
|
||||
{ALT}
|
||||
<tr>
|
||||
<td colspan="7">
|
||||
No results to show.
|
||||
</td>
|
||||
</tr>
|
||||
{/ALT}
|
||||
</tbody>
|
||||
</table>
|
||||
<a href="{ROOT_URL}admin/portfolio/create" class="btn btn-sm btn-primary" role="button">Create</a>
|
||||
<button name="submit" value="submit" type="submit" class="btn btn-sm btn-danger"><i class="fa fa-fw fa-trash"></i></button>
|
||||
</form>
|
||||
</div>
|
16
app/plugins/portfolio/views/admin/view.html
Normal file
16
app/plugins/portfolio/views/admin/view.html
Normal file
@ -0,0 +1,16 @@
|
||||
|
||||
<legend>Portfolio Link</legend>
|
||||
<hr>
|
||||
<div class="media portfolio-link">
|
||||
<div class="media-left">
|
||||
<a href="#">
|
||||
<img class="media-object" src="{image}" alt="{title} preview">
|
||||
</a>
|
||||
</div>
|
||||
<div class="media-body">
|
||||
<h4 class="media-heading"><a href="{url}">{title}</a></h4>
|
||||
{description}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
30
app/plugins/portfolio/views/portfolio.html
Normal file
30
app/plugins/portfolio/views/portfolio.html
Normal file
@ -0,0 +1,30 @@
|
||||
<div class="col-12 col-md-10 col-lg-8 offset-lg-2 offset-md-1 offset-0 mb-3 mb-lg-5 mt-2 mt-lg-4">
|
||||
<div class="p-2 p-lg-4 mb-lg-4 m-2 rounded-3 context-main context-main-bg">
|
||||
<h2 class="text-center">Portfolio</h2>
|
||||
<hr>
|
||||
{LOOP}
|
||||
<div class="card context-main context-third-bg py-2 my-2">
|
||||
<div class="row g-0 p-lg-2">
|
||||
<div class="col-md-4 ps-2 d-flex justify-content-center align-items-center">
|
||||
<a href="{url}">
|
||||
<img class="img-fluid rounded" src="{image}" alt="{title} preview">
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">{title}</h4>
|
||||
<p class="card-text">
|
||||
{description}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/LOOP}
|
||||
{ALT}
|
||||
<div class="card context-main context-main-bg">
|
||||
<p>None Found</p>
|
||||
</div>
|
||||
{/ALT}
|
||||
</div>
|
||||
</div>
|
Reference in New Issue
Block a user