fiddling with index.html

This commit is contained in:
admin 2026-02-25 17:00:49 -08:00
parent 36e7ff478a
commit e55def10ae
2 changed files with 9 additions and 7 deletions

2
app.py
View File

@ -103,7 +103,7 @@ def index():
memory_file,
mimetype='application/zip',
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}")

View File

@ -2,22 +2,24 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Scripture Reference Tool</title>
<title>Scripture Slide Generator for Foothill</title>
</head>
<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">
<label for="scripture_reference">Scripture Reference:</label><br>
<input type="text" id="scripture_reference" name="scripture_reference" value="{{ reference }}"><br><br>
<label for="version">Version:</label><br>
<select id="version" name="version">
<option value="NRSV" {% if version == 'NRSV' %}selected{% endif %}>NRSV</option>
<option value="NIV" {% if version == 'NIV' %}selected{% endif %}>NIV</option>
<option value="NLT" {% if version == 'NLT' %}selected{% endif %}>NLT</option>
<option value="NRSV" {% if version == 'NRSV' %}selected{% endif %}>New Revised Standard (NRSV)</option>
<option value="NIV" {% if version == 'NIV' %}selected{% endif %}>New International (NIV)</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>
<button type="submit">Fetch Verse</button>
<button type="submit">Download Slide Zip File</button>
</form>
{% if verse_html %}