Update views

This commit is contained in:
Alice Gaudon 2020-11-22 15:19:58 +01:00
parent 456b3a3170
commit f605474182
6 changed files with 11 additions and 11 deletions

View File

@ -8,7 +8,7 @@
<div class="container">
<section class="panel">
<h2>Details</h2>
<p class="center">Powered by wms-core</p>
<p class="center">Powered by swaf</p>
</section>
</div>
{% endblock %}

View File

@ -119,7 +119,7 @@
<section class="panel">
<h2>Auth tokens</h2>
<form action="{{ route('generate-token') }}" method="POST">
{{ macros.csrf(getCSRFToken) }}
{{ macros.csrf(getCsrfToken) }}
<button type="submit"><i data-feather="plus"></i> Generate a new token</button>
</form>
@ -156,4 +156,4 @@
{% endfor %}
</tbody>
</table>
</section>
</section>

View File

@ -43,7 +43,7 @@
Pending deletion
{% else %}
<form action="{{ route('delete-file-frontend', file.slug) }}" method="post">
{{ macros.csrf(getCSRFToken) }}
{{ macros.csrf(getCsrfToken) }}
<button class="button danger"><i data-feather="trash"></i> Delete</button>
</form>
{% endif %}
@ -53,4 +53,4 @@
</tbody>
</table>
</section>
{% endblock %}
{% endblock %}

View File

@ -24,7 +24,7 @@
{{ macros.field(_locals, 'text', 'slug', '', 'Custom url slug', 'Example: beautiful_image.jpg sets url to https://'+default_domain+'/beautiful_image.jpg', validation_attributes='disabled') }}
{{ macros.field(_locals, 'checkbox', 'autogen_url', '', 'Generate url automatically', null, validation_attributes='checked') }}
{{ macros.csrf(getCSRFToken) }}
{{ macros.csrf(getCsrfToken) }}
<button type="submit"><i data-feather="upload"></i> Upload</button>
</form>
@ -53,4 +53,4 @@
</div>
{% include 'desktop-utility.njk' %}
{% endblock %}
{% endblock %}

View File

@ -29,7 +29,7 @@
<form action="{{ route('logout') }}?{{ querystring.stringify({redirect_uri: '/'}) }}" method="POST">
<button><i data-feather="log-out"></i> <span class="tip">Logout</span></button>
{{ macros.csrf(getCSRFToken) }}
{{ macros.csrf(getCsrfToken) }}
</form>
</li>
{% else %}
@ -56,4 +56,4 @@
</main>
{% endblock %}
{% block footer %}{{ app.name }} v{{ app_version }} - all rights reserved.{% endblock %}
{% block footer %}{{ app.name }} v{{ app_version }} - all rights reserved.{% endblock %}

View File

@ -20,7 +20,7 @@
{{ macros.field(_locals, 'text', 'slug', '', 'Custom url slug', 'Example: bear sets url to https://'+default_domain+'/bear', validation_attributes='disabled') }}
{{ macros.field(_locals, 'checkbox', 'autogen_url', '', 'Generate url automatically', null, validation_attributes='checked') }}
{{ macros.csrf(getCSRFToken) }}
{{ macros.csrf(getCsrfToken) }}
<button type="submit"><i data-feather="link"></i> Shrink URL</button>
</form>
@ -37,4 +37,4 @@
</div>
{% include 'desktop-utility.njk' %}
{% endblock %}
{% endblock %}