Refactor schedule resume button in TempWebServer to simplify form structure

This commit is contained in:
Aaron 2025-11-05 22:54:25 -05:00
parent db34c25bb4
commit 20910d5fda

View File

@ -669,12 +669,9 @@ class TempWebServer:
header = """ header = """
<div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px;"> <div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px;">
<h3 style="color: #34495e; margin: 0;"> Edit Schedules</h3> <h3 style="color: #34495e; margin: 0;"> Edit Schedules</h3>
<form method="POST" action="/schedule" style="margin: 0;"> <button type="submit" name="resume_schedule" value="true" style="padding: 10px 20px; background: linear-gradient(135deg, #2ecc71, #27ae60); color: white; border: none; border-radius: 8px; font-weight: bold; cursor: pointer; box-shadow: 0 2px 4px rgba(0,0,0,0.2); transition: transform 0.2s;">
<input type="hidden" name="resume_schedule" value="true"> Resume Schedule
<button type="submit" style="padding: 10px 20px; background: linear-gradient(135deg, #2ecc71, #27ae60); color: white; border: none; border-radius: 8px; font-weight: bold; cursor: pointer; box-shadow: 0 2px 4px rgba(0,0,0,0.2); transition: transform 0.2s;"> </button>
Resume Schedule
</button>
</form>
</div> </div>
""" """
else: else: