2024-05-13 21:07:38 -04:00
|
|
|
{% extends 'base.html.twig' %}
|
|
|
|
|
|
|
|
{% block title %}Sermon Notes{% endblock %}
|
|
|
|
|
|
|
|
{% block stylesheets %}
|
|
|
|
<link href="/theme/assets/css/main.css" rel="stylesheet" />
|
2024-05-15 22:36:50 -04:00
|
|
|
<link href='/theme/assets/css/jquery-ui.theme.css' rel='stylesheet' />
|
|
|
|
<link href='/theme/assets/css/jquery-ui.structure.css' rel='stylesheet' />
|
2024-05-13 21:07:38 -04:00
|
|
|
<link href='/css/style.css' rel='stylesheet' />
|
2024-05-29 00:37:12 -04:00
|
|
|
<link href='//cdn.datatables.net/2.0.8/css/dataTables.dataTables.min.css' rel='stylesheet' />
|
2024-06-23 22:41:33 -04:00
|
|
|
<style>
|
|
|
|
#notes,
|
|
|
|
#notePreview {
|
|
|
|
font-size: {{ meta.noteTextSize }}pt;
|
|
|
|
}
|
|
|
|
</style>
|
2024-05-13 21:07:38 -04:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block javascripts %}
|
|
|
|
<script src="/theme/assets/js/jquery.min.js"></script>
|
2024-05-15 22:36:50 -04:00
|
|
|
<script src='/theme/assets/js/jquery-ui.js'></script>
|
2024-05-13 21:07:38 -04:00
|
|
|
<script src="/theme/assets/js/browser.min.js"></script>
|
|
|
|
<script src="/theme/assets/js/breakpoints.min.js"></script>
|
|
|
|
<script src="/theme/assets/js/util.js"></script>
|
|
|
|
<script src="/theme/assets/js/main.js"></script>
|
2024-05-29 00:37:12 -04:00
|
|
|
<script src='//momentjs.com/downloads/moment-with-locales.js'></script>
|
|
|
|
<script src="//cdnjs.cloudflare.com/ajax/libs/markdown-it/13.0.2/markdown-it.min.js" integrity="sha512-ohlWmsCxOu0bph1om5eDL0jm/83eH09fvqLDhiEdiqfDeJbEvz4FSbeY0gLJSVJwQAp0laRhTXbUQG+ZUuifUQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
|
|
|
<script src='//cdn.datatables.net/2.0.8/js/dataTables.min.js'></script>
|
2024-06-23 22:41:33 -04:00
|
|
|
<script>
|
|
|
|
let saveInterval = ({{ meta.saveInterval }} * 1000);
|
|
|
|
let saveTimeout = ({{ meta.saveTimeout }} * 1000);
|
|
|
|
const SAVE_FAILURE_LIMIT = {{ meta.saveFailureCount }};
|
|
|
|
let saveFailureCount = {{ meta.saveFailureCount }};
|
|
|
|
</script>
|
2024-05-29 00:37:12 -04:00
|
|
|
<script src='/js/script.js'></script>
|
2024-05-13 21:07:38 -04:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block body %}
|
|
|
|
<div id='wrapper'>
|
|
|
|
<div id='main'>
|
2024-05-22 19:42:50 -04:00
|
|
|
<div class='inner'>
|
2024-05-13 21:07:38 -04:00
|
|
|
<section class='ref-tab'>
|
|
|
|
<ul id='ref-list'>
|
|
|
|
</ul>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<section class='ref'>
|
2024-05-22 19:42:50 -04:00
|
|
|
<h2>Reference</h2>
|
2024-05-13 21:07:38 -04:00
|
|
|
<div style='display:inline-block'>
|
|
|
|
<button onclick='increaseFont()'><i class='fa fa-plus'></i></button>
|
2024-05-23 17:42:58 -04:00
|
|
|
<button onclick='decreaseFont()'><i class='fa fa-minus'></i></button>
|
2024-05-26 22:33:41 -04:00
|
|
|
<button id='openRefBtn' class='button' onclick='openRef(false)'><i class='fa fa-book'></i></button>
|
2024-05-13 21:07:38 -04:00
|
|
|
</div>
|
2024-05-22 19:42:50 -04:00
|
|
|
<div id="ref" style='font-size:12pt;'></div>
|
2024-05-13 21:07:38 -04:00
|
|
|
<div id='note-list'>
|
2024-05-29 00:37:12 -04:00
|
|
|
<table id='note-table' data-order='[[ 3, "desc" ]]'>
|
2024-05-13 21:07:38 -04:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Title</th>
|
|
|
|
<th>Speaker</th>
|
|
|
|
<th>Passage</th>
|
|
|
|
<th>Date</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<section class="notes">
|
|
|
|
<div id='note-header-left'>
|
|
|
|
<h2>Notes</h2>
|
2024-06-23 22:41:33 -04:00
|
|
|
<i id='save-check' class='fa fa-save'></i>
|
2024-05-13 21:07:38 -04:00
|
|
|
</div>
|
|
|
|
<div id='note-header-right'>
|
2024-06-23 22:41:33 -04:00
|
|
|
<select id='template' onchange="retrieveTemplate('template','notes')" style='width:200px;'>
|
2024-05-13 21:07:38 -04:00
|
|
|
<option value=0>-- Template --</option>
|
|
|
|
{% for t in app.user.templates %}
|
|
|
|
<option value="{{ t.id }}">{{ t.name }}</option>
|
|
|
|
{% endfor %}
|
|
|
|
</select>
|
2024-05-22 19:42:50 -04:00
|
|
|
<button id="previewBtn" class='button' onclick='previewNote()'>
|
|
|
|
<i class='fa fa-eye'></i>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<button id='show-hide-btn' class='button' onclick='toggleFields()'>
|
|
|
|
<i class='fa fa-table'></i>
|
|
|
|
</button>
|
2024-05-13 21:07:38 -04:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id='fields-container'>
|
2024-05-16 18:50:24 -04:00
|
|
|
<input type="hidden" id="noteId" value="" />
|
2024-05-13 21:07:38 -04:00
|
|
|
<input type="text" id="noteTitle" placeholder="Title..." />
|
2024-05-26 22:33:41 -04:00
|
|
|
<input type='text' id='noteDate' placeholder='Date...' onchange='textDirty=true;saved=false;' />
|
|
|
|
<input type='text' id='passage' placeholder='Passage...' onchange='saved=false;textDirty=true;' />
|
|
|
|
<br />
|
|
|
|
<input type='text' id='recording' name='recording' placeholder='Recording link...' />
|
2024-05-13 21:07:38 -04:00
|
|
|
<input type='text' id='newSpeaker' placeholder='Name...' onkeyup='saveSpeaker(event)' style='display:none;' />
|
|
|
|
<select id="speaker" onchange='newSpeaker()'>
|
|
|
|
<option value=0>-- Speaker --</option>
|
|
|
|
<option value='new'>New Speaker</option>
|
|
|
|
{% for s in app.user.speakers %}
|
|
|
|
<option value='{{ s.id }}'>{{ s.name }}</option>
|
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
<input type='text' id='newSeries' placeholder='Series...' onkeyup='saveSeries(event)' style='display:none;' />
|
|
|
|
<select id="series" onchange='newSeries()'>
|
|
|
|
<option value=0>-- Series --</option>
|
|
|
|
<option value='new'>New Series</option>
|
|
|
|
{% for s in app.user.series %}
|
|
|
|
<option value='{{ s.id }}'>{{ s.name }}</option>
|
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<textarea id="notes" wrap="hard"></textarea>
|
|
|
|
<div id='notePreview'></div>
|
|
|
|
</section>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% include('default/sidebar.html.twig') %}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="refQuery">
|
|
|
|
<select id='referenceType' onchange='retrieveBooks()'>
|
|
|
|
<option>-- Select --</option>
|
|
|
|
<option value='bible'>Bible</option>
|
2024-05-23 20:46:06 -04:00
|
|
|
<option value='creed'>Various Creed</option>
|
|
|
|
<option value='bc'>Belgic Confession</option>
|
|
|
|
<option value='hc'>Heidelberg Catechism</option>
|
2024-05-13 21:07:38 -04:00
|
|
|
<option value='cd'>Canons of Dort</option>
|
2024-05-23 20:46:06 -04:00
|
|
|
<option value='wcf'>Westminster Confession of Faith</option>
|
|
|
|
<option value='wsc'>Westminster Shorter Catechism</option>
|
|
|
|
<option value='wlc'>Westminster Larger Catechism</option>
|
2024-05-26 22:33:41 -04:00
|
|
|
<option value='lbc'>London Baptist Confession</option>
|
2024-06-09 20:17:20 -04:00
|
|
|
<option value='39a'>Thirty-Nine Articles</option>
|
|
|
|
<option value='1hc'>First Helvetic Confession</option>
|
|
|
|
<option value='2hc'>Second Helvetic Confession</option>
|
|
|
|
<option value='sd'>Savoy Declaration</option>
|
|
|
|
<option value='agc'>Augsburg Confession</option>
|
2024-05-13 21:07:38 -04:00
|
|
|
</select>
|
2024-05-22 19:42:50 -04:00
|
|
|
<select id='referenceBook' onchange='filterBooks()'>
|
|
|
|
</select>
|
|
|
|
<span id='chapter-range' style='color:white;'></span>
|
|
|
|
<input type="text" id="referenceSearch" placeholder="Search" onkeyup='filterVerse()'>
|
|
|
|
<span id='verse-range' style='color:white;'></span>
|
|
|
|
<br />
|
2024-05-23 17:42:58 -04:00
|
|
|
<button id="searchBtn" onclick="queryRef()">Search</button>
|
|
|
|
<button id='closeSearch' onclick='closeRef()'>Close</button>
|
2024-05-13 21:07:38 -04:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id='passage-popup'>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|