fiddling with index.html
This commit is contained in:
parent
36e7ff478a
commit
e55def10ae
2
app.py
2
app.py
@ -103,7 +103,7 @@ def index():
|
|||||||
memory_file,
|
memory_file,
|
||||||
mimetype='application/zip',
|
mimetype='application/zip',
|
||||||
as_attachment=True,
|
as_attachment=True,
|
||||||
download_name='{}.zip'.format(filenameref) # Use download_name for modern Flask versions
|
download_name='{}-{}.zip'.format(filenameref,version) # Use download_name for modern Flask versions
|
||||||
)
|
)
|
||||||
|
|
||||||
print(f"Reference: {reference}, Version: {version}, Text: {verse_text}, Error: {error}")
|
print(f"Reference: {reference}, Version: {version}, Text: {verse_text}, Error: {error}")
|
||||||
|
|||||||
@ -2,22 +2,24 @@
|
|||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>Scripture Reference Tool</title>
|
<title>Scripture Slide Generator for Foothill</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>Scripture Reference Tool</h1>
|
<h1>Scripture Slide Generator for Foothill</h1>
|
||||||
|
<h3>Enter scripture reference and version, then press the download button. A zip file with slides in it will be downloaded. Unzip the file and drop the folder into the ProPresenter play list.</h3>
|
||||||
<form method="post">
|
<form method="post">
|
||||||
<label for="scripture_reference">Scripture Reference:</label><br>
|
<label for="scripture_reference">Scripture Reference:</label><br>
|
||||||
<input type="text" id="scripture_reference" name="scripture_reference" value="{{ reference }}"><br><br>
|
<input type="text" id="scripture_reference" name="scripture_reference" value="{{ reference }}"><br><br>
|
||||||
|
|
||||||
<label for="version">Version:</label><br>
|
<label for="version">Version:</label><br>
|
||||||
<select id="version" name="version">
|
<select id="version" name="version">
|
||||||
<option value="NRSV" {% if version == 'NRSV' %}selected{% endif %}>NRSV</option>
|
<option value="NRSV" {% if version == 'NRSV' %}selected{% endif %}>New Revised Standard (NRSV)</option>
|
||||||
<option value="NIV" {% if version == 'NIV' %}selected{% endif %}>NIV</option>
|
<option value="NIV" {% if version == 'NIV' %}selected{% endif %}>New International (NIV)</option>
|
||||||
<option value="NLT" {% if version == 'NLT' %}selected{% endif %}>NLT</option>
|
<option value="MSG" {% if version == 'MSG' %}selected{% endif %}>The Message (MSG)</option>
|
||||||
|
<option value="NLT" {% if version == 'NLT' %}selected{% endif %}>New Living (NLT)</option>
|
||||||
</select><br><br>
|
</select><br><br>
|
||||||
|
|
||||||
<button type="submit">Fetch Verse</button>
|
<button type="submit">Download Slide Zip File</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
{% if verse_html %}
|
{% if verse_html %}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user