wip
This commit is contained in:
16
app/plugins/wip/views/admin/create.html
Normal file
16
app/plugins/wip/views/admin/create.html
Normal file
@ -0,0 +1,16 @@
|
||||
<h2>Create Project</h2>
|
||||
<form action="#" method="POST">
|
||||
<label for="title">Title:</label><br>
|
||||
<input type="text" id="title" name="title" required><br><br>
|
||||
|
||||
<label for="progress">Progress:</label><br>
|
||||
<input type="text" id="progress" name="progress" required><br><br>
|
||||
|
||||
<label for="startDate">Start Month/Year:</label><br>
|
||||
<input type="month" id="startDate" name="startDate" 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>
|
16
app/plugins/wip/views/admin/edit.html
Normal file
16
app/plugins/wip/views/admin/edit.html
Normal file
@ -0,0 +1,16 @@
|
||||
<h2>Edit Project</h2>
|
||||
<form action="#" method="POST">
|
||||
<label for="title">Title:</label><br>
|
||||
<input type="text" id="title" name="title" value="{title}" required><br><br>
|
||||
|
||||
<label for="progress">Progress:</label><br>
|
||||
<input type="text" id="progress" name="progress" value="{progress}" required><br><br>
|
||||
|
||||
<label for="startDate">Start Month/Year:</label><br>
|
||||
<input type="month" id="startDate" name="startDate" value="{startDate}" 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>
|
41
app/plugins/wip/views/admin/list.html
Normal file
41
app/plugins/wip/views/admin/list.html
Normal file
@ -0,0 +1,41 @@
|
||||
<legend>Works in Progress</legend>
|
||||
{PAGINATION}
|
||||
<form action="{ROOT_URL}admin/wip/delete" method="post">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 30%">Title</th>
|
||||
<th style="width: 20%">Progress</th>
|
||||
<th style="width: 20%">Start Date</th>
|
||||
<th style="width: 10%"></th>
|
||||
<th style="width: 10%"></th>
|
||||
<th style="width: 10%">
|
||||
<INPUT type="checkbox" onchange="checkAll(this)" name="check.b" value="P_[]"/>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{LOOP}
|
||||
<tr>
|
||||
<td><a href="{ROOT_URL}admin/wip/view/{ID}">{title}</a></td>
|
||||
<td>{progress}</td>
|
||||
<td>{startDate}</td>
|
||||
<td><a href="{ROOT_URL}admin/wip/edit/{ID}" class="btn btn-sm btn-warning" role="button"><i class="glyphicon glyphicon-edit"></i></a></td>
|
||||
<td><a href="{ROOT_URL}admin/wip/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="P_[]">
|
||||
</td>
|
||||
</tr>
|
||||
{/LOOP}
|
||||
{ALT}
|
||||
<tr>
|
||||
<td colspan="7">
|
||||
No results to show.
|
||||
</td>
|
||||
</tr>
|
||||
{/ALT}
|
||||
</tbody>
|
||||
</table>
|
||||
<a href="{ROOT_URL}admin/wip/create" class="btn btn-sm btn-primary" role="button">Create</a>
|
||||
<button name="submit" value="submit" type="submit" class="btn btn-sm btn-danger">Delete</button>
|
||||
</form>
|
8
app/plugins/wip/views/admin/view.html
Normal file
8
app/plugins/wip/views/admin/view.html
Normal file
@ -0,0 +1,8 @@
|
||||
<legend>WIP</legend>
|
||||
<div class="wip-project">
|
||||
<h3 class="wip-project-title">{name}</h3>
|
||||
<p><b>{position}</b> from <i>{prettyStart}</i> to <i>{prettyEnd}</i></p>
|
||||
<div class="well">
|
||||
{details}
|
||||
</div>
|
||||
</div>
|
Reference in New Issue
Block a user