30 lines
1.4 KiB
Django/Jinja
30 lines
1.4 KiB
Django/Jinja
|
|
<!-- edit_scheduled_action.html.j2 -->
|
|
{% extends 'base.html.j2' %}
|
|
|
|
{% block title %}Edit Scheduled Action{% endblock %}
|
|
|
|
{% block content %}
|
|
<h1>Edit Scheduled Action for "{{ media.title or media.filename }}"</h1>
|
|
|
|
<form method="POST">
|
|
<input type="hidden" name="csrf_token" value="{{ request.session.get_csrf_token() }}">
|
|
|
|
<label for="action_type">Action Type:</label>
|
|
<select name="action_type" required>
|
|
<option value="set_public" {% if scheduled_action.action_type == 'set_public' %}selected{% endif %}>Set Public</option>
|
|
<option value="set_private" {% if scheduled_action.action_type == 'set_private' %}selected{% endif %}>Set Private</option>
|
|
<option value="set_unlisted" {% if scheduled_action.action_type == 'set_unlisted' %}selected{% endif %}>Set Unlisted</option>
|
|
<option value="delete" {% if scheduled_action.action_type == 'delete' %}selected{% endif %}>Delete</option>
|
|
</select><br><br>
|
|
|
|
<label for="scheduled_date">Scheduled Date & Time:</label>
|
|
<input type="datetime-local" name="scheduled_date"
|
|
value="{{ scheduled_action.scheduled_date.strftime('%Y-%m-%dT%H:%M') }}"
|
|
required><br><br>
|
|
|
|
<button type="submit">Update Scheduled Action</button>
|
|
</form>
|
|
|
|
<p><a href="{{ request.route_url('view_media_details', namespace_short_id=namespace.short_id, media_short_id=media.short_id) }}">Back to Media Details</a></p>
|
|
{% endblock %}
|