{# Python simple Raspberry-Pi camera module web interface Copyright (C) 2020 Luiz Eduardo Amaral This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . #} {% extends "layout.jinja" %} {% import "macros.jinja" as macros %} {% block head %} {% endblock %} {% block content %}
{{ macros.title() }}
{{ macros.button( action="/shutdown", method="GET", parameters={}, class="btn btn-warning tarvos-font-h1", text="Shutdown", text_class="h6", icon="/static/bootstrap/bootstrap-icons.svg#power", icon_size="20")}}
{{ macros.button( action="/picture?download=false", method="POST", parameters={}, class="btn btn-primary tarvos-font-h1", text="Picture", text_class="h3", icon="/static/bootstrap/bootstrap-icons.svg#camera", icon_size="36")}}
{% for item in files %} {% endfor %}
Files
{{item[1]}} {{ macros.button( action="/picture", parameters={"index": item[0]|string, "download": "true"}, class="btn btn-light py-0 mr-2", icon="/static/bootstrap/bootstrap-icons.svg#download", icon_size="16" ) }} {{ macros.jsButton( onsubmit="delIdx="+item[0]|string+";openModal('deleteIndexModal');", class="btn btn-danger py-0", icon="/static/bootstrap/bootstrap-icons.svg#trash", icon_size="16" ) }}
{{ macros.button( action="/downloadAll", class="btn btn-secondary mt-2", text="Download All", text_class="h6", icon="/static/bootstrap/bootstrap-icons.svg#download", icon_size="16") }} {{ macros.jsButton( onsubmit="openModal('deleteAllModal');", class="btn btn-danger mt-2", text="Delete All", text_class="h6", icon="/static/bootstrap/bootstrap-icons.svg#trash", icon_size="16") }}
{% endblock %} {% block after %} {% endblock %} {% block footer %} {{ macros.footer() }} {% endblock %}