Templates

This commit is contained in:
2024-05-13 21:07:38 -04:00
parent 3374ec2691
commit 4b0d327ab4
10 changed files with 509 additions and 0 deletions

View File

@ -0,0 +1,52 @@
<!DOCTYPE html>
<html>
<head>
<title>Reference Editor</title>
</head>
<body>
<select id='references' onchange='retrieveReference(this)'>
<option value=''>-- Select Reference --</option>
<optgroup id='creeds' label='Creeds'>
{% for c in creeds %}
<option type='creed'>{{ c }}</option>
{% endfor %}
</optgroup>
<optgroup id='belgic' label='Belgic Confession'>
{% for c in belgic %}
<option type='bc'>{{ c }}</option>
{% endfor %}
</optgroup>
<optgroup id='heidelberg' label='Heidelberg Catechism'>
{% for c in heidelberg %}
<option type='hc'>{{ c }}</option>
{% endfor %}
</optgroup>
<optgroup id='dort' label='Canons of Dort'>
{% for c in dort %}
<option type='cd'>{{ c }}</option>
{% endfor %}
</optgroup>
<optgroup id='wcf' label='Westminster Confession of Faith'>
{% for c in wcf %}
<option type='wcf'>{{ c }}</option>
{% endfor %}
</optgroup>
<optgroup id='wsc' label='Westminster Short Catechism'>
{% for c in wsc %}
<option type='wsc'>{{ c }}</option>
{% endfor %}
</optgroup>
<optgroup id='wlc' label='Westminster Larger Catechism'>
{% for c in wlc %}
<option type='wlc'>{{ c }}</option>
{% endfor %}
</optgroup>
</select>
<button id='save' name='save' onclick='saveReference()'>Save</button>
<a href='/index.php/home'>Back</a><br />
<textarea id='reference' name='reference' rows=45 cols=100></textarea>
<script src='/js/script.js'></script>
</body>
</html>

View File

@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<title>Series Editor</title>
</head>
<body>
<select id='series' onchange='retrieveSeries()'>
<option value='0'>-- Series --</option>
{% for s in series %}
<option value='{{ s.id }}'>{{ s.name }}</option>
{% endfor %}
</select>&nbsp;&nbsp;
<input type='text' name='series_name' id='series_name' />&nbsp;&nbsp;
<input type='button' name='save' value='Save' onclick='saveSeries()' />&nbsp;&nbsp;
<a href='/index.php/'>Back</a>
<script src='/js/script.js'></script>
</body>
</html>

View File

@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<title>Speaker Editor</title>
</head>
<body>
<select name='speaker_id' id='speaker_id' onchange='retrieveSpeaker()'>
<option value='0'>-- Speaker --</option>
{% for s in speakers %}
<option value='{{ s.id }}'>{{ s.name }}</option>
{% endfor %}
</select>&nbsp;&nbsp;
<input type='text' name='speaker_name' id='speaker_name' />&nbsp;&nbsp;
<input type='button' name='save' value='Save' onclick='saveSpeaker()' />&nbsp;&nbsp;
<a href='/index.php/'>Back</a>
<script src='/js/script.js'></script>
</body>
</html>

View File

@ -0,0 +1,25 @@
<!DOCTYPE html>
<html>
<head>
<title>Template Editor</title>
</head>
<body>
<form>
<select id='template_id' name='template_id' onchange="retrieveTemplate('template_id','template_value')">
<option value='0'>-- Templates --</option>
{% for t in app.user.templates %}
<option value='{{ t.id }}'>{{ t.name }}</option>
{% endfor %}
</select>&nbsp;&nbsp;
<input type='text' name='name' id='template_name' />&nbsp;&nbsp;
<input type='button' name='submit' value='Save' onclick='saveTemplate()' />&nbsp;&nbsp;
<a href='/index.php/home'>Back</a>
<br />
<textarea id='template_value' name='template' wrap='hard' cols=100 rows=45></textarea>
</form>
<script src='/js/script.js'></script>
</body>
</html>