cycles/period/templates/cycle/update.html

35 lines
1.2 KiB
HTML
Raw Normal View History

2022-04-23 18:22:44 +00:00
{% extends 'base.html' %}
{% block content %}
<div class="container-fluid">
<div class="table-responsive">
<div class="table-wrapper">
<div class="table-title">
<div class="row">
<div class="col-sm-6">
{% block header %}
<h2>{% block title %}Edit Cycle{% endblock %}</h2>
{% endblock %}
</div>
<div class="col-sm-6">
<a class="btn btn-primary" href="{{ url_for('cycles.create') }}">New Cycle</a>
</div>
</div>
</div>
2022-04-23 18:22:44 +00:00
<form method="post">
<label for="start_time">Start Time</label>
<input name="start_time" id="title" value="{{ request.form['start_time'] or cycle['start_time'][:10] }}" required type="date">
<br>
2022-04-23 18:22:44 +00:00
<label for="end_time">End Time</label>
<input name="end_time" id="end_time" value="{{ request.form['end_time'] or cycle['end_time'][:10] if cycle['end_time'] is not none }}" type="date">
<input type="submit" value="Save">
</form>
2022-04-27 12:41:18 +00:00
<form action="{{ url_for('cycles.delete', id=cycle['id']) }}" method="post">
<input class="danger" type="submit" value="Delete" onclick="return confirm('Are you sure you want to delete this cycle?');">
</form>
2022-04-23 18:22:44 +00:00
{% endblock %}