Initial commit

This commit is contained in:
Joey Kimsey
2024-08-04 21:15:59 -04:00
parent c9d1fb983f
commit 0d469501ee
695 changed files with 70184 additions and 71 deletions

View File

@ -0,0 +1,12 @@
<h3>Notebooks</h3>
<div class="row">
<div class="col-xlg-12 col-lg-12">
{notebookList}
</div>
</div>
<h3>Notes</h3>
<div class="row">
<div class="col-xlg-12 col-lg-12">
{noteList}
</div>
</div>

View File

@ -0,0 +1 @@
<a href="{ROOT_URL}notes/byNotebook/{ID}" class="label label-{color}"><i class="glyphicon glyphicon-{icon}"></i> {title}</a>

View File

@ -0,0 +1,18 @@
<a href="#" class="label label-{notebookColor} outlined-element" data-toggle="collapse" data-target="#menu-collapse-{notebookID}">
<i class="glyphicon glyphicon-{notebookIcon}"></i> {notebookName}
<i class="fa fa-fw fa-angle-down"></i>
</a>
<ul id="menu-collapse-{notebookID}" class="collapse">
<li class="submenu">
<a href="{ROOT_URL}notes/byNotebook/{notebookID}" class="label label-{notebookColor}"><i class="glyphicon glyphicon-{notebookIcon}"></i> {notebookName}</a>
</li>
{LOOP}
<li class="submenu">
<a href="{ROOT_URL}notes/byNotebook/{ID}" class="label label-{color}"><i class="glyphicon glyphicon-{icon}"></i> {title}</a>
</li>
{/LOOP}
{ALT}
<li>
</li>
{/ALT}
</ul>

View File

@ -0,0 +1,19 @@
<nav class="navbar-inverse nav-stack navbar-pills flex-grow-1" role="navigation">
<ul class="nav navbar-nav nav-stack">
<li class="sidebar-brand">
<a href="{ROOT_URL}notes/byNotebook/{notebookID}" class="label label-{notebookColor}" data-id="all">{noteBookName}</a>
</li>
{LOOP}
<li>
<a href="{ROOT_URL}notes/byNote/{ID}" data-id="{ID}">{title}</a>
</li>
{/LOOP}
{ALT}
<li>
</li>
{/ALT}
<li class="bottom-nav active">
<a href="{ROOT_URL}notes/createNote/{notebookID}" class="text-center active"><i class="fa fa-fw fa-plus"></i></a>
</li>
</ul>
</nav>

View File

@ -0,0 +1,11 @@
<ul class="dropdown-menu">
<li><a href="{ROOT_URL}notes/byNotebook/">All</a></li>
<li role="separator" class="divider"></li>
{LOOP}
<li><a href="{ROOT_URL}notes/byNotebook/{ID}">{title}</a></li>
{/LOOP}
<li role="separator" class="divider"></li>
<li><a href="{ROOT_URL}notes/createNotebook">Create Notebook</a></li>
<li><a href="{ROOT_URL}notes/editNotebook/{notebookID}">Edit Notebook</a></li>
<li><a href="{ROOT_URL}notes/deleteNotebook/{notebookID}">Delete Notebook</a></li>
</ul>

View File

@ -0,0 +1,19 @@
<nav class="navbar-inverse nav-stack navbar-pills flex-grow-1" role="navigation">
<ul id="notebook-sidebar" class="nav navbar-nav nav-stack side-nav" style="width: 200px;">
<li class="active notebook-sidebar-brand">
<a href="{ROOT_URL}notes/byNotebook/" class="text-center">All Notes</a>
</li>
{LOOP}
<li class="outlined-element">
{menuItem}
</li>
{/LOOP}
{ALT}
<li>
</li>
{/ALT}
<li class="active">
<a href="{ROOT_URL}notes/createNotebook/" class="text-center"><i class="fa fa-fw fa-plus"></i></a>
</li>
</ul>
</nav>

View File

@ -0,0 +1,10 @@
<ul class="nav nav-tabs">
<li><a href="{ROOT_URL}notes/byNotebook/{notebookID}">All Notes</a></li>
<li><a href="{ROOT_URL}notes/editNotebook/{notebookID}">Notebook</a></li>
<li class="pull-right dropdown">
<button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Notebooks <span class="caret"></span>
</button>
{notebookDropdown}
</li>
</ul>

View File

@ -0,0 +1,41 @@
<legend>Create Notebook</legend>
<form action="" method="post" class="form-horizontal">
<input type="hidden" name="token" value="{TOKEN}">
<div class="form-group">
<label for="notebookID" class="col-lg-3 control-label">Parent Notebook</label>
<div class="col-lg-3">
{notebookSelect}
</div>
</div>
<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-control" name="title" id="title">
</div>
</div>
<div class="form-group">
<label for="description" class="col-lg-3 control-label">Description</label>
<div class="col-lg-3">
<textarea class="form-control" name="description" maxlength="2000" rows="10" cols="50" id="description"></textarea>
</div>
</div>
<div class="form-group">
<label for="color" class="col-lg-3 control-label">Color</label>
<div class="col-lg-3 select-container" id="colorContainer">
{colorSelect}
</div>
</div>
<div class="form-group">
<label for="dropdown" class="col-lg-3 control-label">Icon</label>
<div class="dropdow col-lg-3">
{iconSelect}
</div>
<input type="hidden" id="iconValue" name="icon" value="">
</div>
<div class="form-group">
<label for="submit" class="col-lg-3 control-label"></label>
<div class="col-lg-3">
<button name="submit" value="submit" type="submit" class="btn btn-lg btn-primary center-block ">Submit</button>
</div>
</div>
</form>

View File

@ -0,0 +1,39 @@
<form action="" method="post" class="form-horizontal">
<input type="hidden" name="token" value="{TOKEN}">
<div class="form-group" style="margin-top: 20px;">
<label for="notebookID" class="col-lg-3 control-label">Parent Notebook</label>
<div class="col-lg-3">
{notebookSelect}
</div>
</div>
<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-control" name="title" id="title" value="{title}">
</div>
</div>
<div class="form-group">
<label for="description" class="col-lg-3 control-label">Description</label>
<div class="col-lg-3">
<textarea class="form-control" name="description" maxlength="2000" rows="10" cols="50" id="description">{description}</textarea>
</div>
</div>
<div class="form-group">
<label for="color" class="col-lg-3 control-label">Color</label>
<div class="col-lg-3 select-container" id="colorContainer">
{colorSelect}
</div>
</div>
<div class="form-group">
<label for="dropdown" class="col-lg-3 control-label">Icon</label>
<div class="dropdow col-lg-3">
{iconSelect}
</div>
</div>
<div class="form-group">
<label for="submit" class="col-lg-3 control-label"></label>
<div class="col-lg-3">
<button name="submit" value="submit" type="submit" class="btn btn-lg btn-primary center-block ">Submit</button>
</div>
</div>
</form>

View File

@ -0,0 +1,35 @@
<div class="row" style="margin-top: 30px; margin-bottom: 50px;">
<form action="" method="post">
<table class="table table-striped">
<thead>
<tr>
<th style="width: 55%">Title</th>
<th style="width: 30%">Description</th>
<th style="width: 5%"></th>
<th style="width: 5%"></th>
<th style="width: 5%"></th>
</tr>
</thead>
<tbody>
{LOOP}
<tr>
<td><a href='{ROOT_URL}notes/byNotebook/{ID}'>{title}</a></td>
<td>{description}</td>
<td><a href="{ROOT_URL}notes/byNotebook/{ID}" class="btn btn-sm btn-primary" role="button"><i class="glyphicon glyphicon-open"></i></a></td>
<td><a href="{ROOT_URL}notes/editNotebook/{ID}" class="btn btn-sm btn-warning" role="button"><i class="glyphicon glyphicon-edit"></i></a></td>
<td><a href="{ROOT_URL}notes/deleteNotebook/{ID}" class="btn btn-sm btn-danger" role="button"><i class="glyphicon glyphicon-trash"></i></a></td>
</tr>
{/LOOP}
{ALT}
<tr>
<td colspan="7">
No Notebooks
</td>
</tr>
{/ALT}
</tbody>
</table>
<a href="{ROOT_URL}notes/createNotebook" class="btn btn-sm btn-primary" role="button">New Notebook</a>
</form>
</div>

View File

@ -0,0 +1,32 @@
<legend>Create Note</legend>
<form action="" method="post" class="form-horizontal">
<input type="hidden" name="token" value="{TOKEN}">
<div class="col-lg-4">
<label for="notebookID" class="col-lg-3 control-label">Notebook</label>
{notebookSelect}
</div>
<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-control" name="title" id="title">
</div>
</div>
<div class="form-group">
<label for="note" class="col-lg-3 control-label">Note</label>
<div class="col-lg-3">
<textarea class="form-control" name="note" maxlength="5000" rows="10" cols="50" id="note"></textarea>
</div>
</div>
<div class="form-group">
<label for="color" class="col-lg-3 control-label">Color</label>
<div class="col-lg-3 select-container" id="colorContainer">
{colorSelect}
</div>
</div>
<div class="form-group">
<label for="submit" class="col-lg-3 control-label"></label>
<div class="col-lg-3">
<button name="submit" value="submit" type="submit" class="btn btn-lg btn-primary center-block ">Submit</button>
</div>
</div>
</form>

View File

@ -0,0 +1,29 @@
<legend>Edit Note</legend>
<form action="" method="post" class="form-horizontal">
<input type="hidden" name="token" value="{TOKEN}">
<input type="hidden" name="noteID" id="noteID" value="{noteID}">
<div class="form-group">
<div class="col-lg-4">
<label for="title" class="control-label">Title</label>
<input type="text" class="form-control" name="title" id="title" value="{title}">
</div>
<div class="col-lg-4">
<label for="color" class="col-lg-3 control-label">Color</label>
<div class="select-container" id="colorContainer">
{colorSelect}
</div>
</div>
<div class="col-lg-4">
<label for="notebookID" class="col-lg-3 control-label">Notebook</label>
{notebookSelect}
</div>
<div class="col-lg-12">
<label for="color" class="control-label">Note</label>
<textarea class="form-control" name="note" maxlength="5000" rows="25" cols="50" id="note">{note}</textarea>
</div>
<div class="col-lg-12">
<label for="submit" class="control-label"></label>
<button name="submit" value="submit" type="submit" class="btn btn-lg btn-primary center-block ">Submit</button>
</div>
</div>
</form>

View File

@ -0,0 +1,35 @@
<div class="row" style="margin-top: 30px; margin-bottom: 50px;">
<form action="" method="post">
<table class="table table-striped">
<thead>
<tr>
<th style="width: 20%">Title</th>
<th style="width: 60%">Note</th>
<th style="width: 20%">Created</th>
<th style="width: 5%"></th>
<th style="width: 5%"></th>
</tr>
</thead>
<tbody>
{LOOP}
<tr>
<td>{title}</td>
<td>{contentSummaryNoLink}</td>
<td>{DTC}{createdAt}{/DTC}</td>
<td><a href="{ROOT_URL}notes/duplicateNote/{ID}" class="btn btn-sm btn-primary" role="button"><i class="glyphicon glyphicon-copy"></i></a></td>
<td><a href="{ROOT_URL}notes/editNote/{ID}" class="btn btn-sm btn-warning" role="button"><i class="glyphicon glyphicon-edit"></i></a></td>
<td><a href="{ROOT_URL}notes/deleteNote/{ID}" class="btn btn-sm btn-danger" role="button"><i class="glyphicon glyphicon-trash"></i></a></td>
</tr>
{/LOOP}
{ALT}
<tr>
<td colspan="7">
No Notes
</td>
</tr>
{/ALT}
</tbody>
</table>
<a href="{ROOT_URL}notes/createNote/{notebookID}" class="btn btn-sm btn-primary" role="button">New Note</a>
</form>
</div>