Commit 05d47e85 authored by Serge S. Koval's avatar Serge S. Koval

Formatting changes

parent 5ad1fd96
...@@ -21,3 +21,4 @@ examples/file/files ...@@ -21,3 +21,4 @@ examples/file/files
examples/forms/files examples/forms/files
.DS_Store .DS_Store
.idea/ .idea/
*.sqlite
...@@ -107,7 +107,10 @@ ...@@ -107,7 +107,10 @@
{%- endif -%} {%- endif -%}
{%- if admin_view.can_delete -%} {%- if admin_view.can_delete -%}
<form class="icon" method="POST" action="{{ url_for('.delete_view', id=get_pk_value(row), url=return_url) }}"> <form class="icon" method="POST" action="{{ url_for('.delete_view', id=get_pk_value(row), url=return_url) }}">
<button onclick="return confirm('{{ _gettext('You sure you want to delete this item?') }}');"> {% if csrf_token %}
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
{% endif %}
<button onclick="return confirm('{{ _gettext('You sure you want to delete this item?') }}');">
<i class="icon-trash"></i> <i class="icon-trash"></i>
</button> </button>
</form> </form>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment