Add some helpers

This commit is contained in:
Thomas 2024-05-10 17:39:43 +02:00
parent cd6fad2e3b
commit 86230adb87
2 changed files with 10 additions and 4 deletions

View file

@ -179,7 +179,7 @@
<!-- The file upload form used as target for the file upload widget -->
<form
id="fileupload"
action="https://{{ instance }}/api/v1/media"
action="https://{{ instance }}/api/v2/media"
method="POST"
enctype="multipart/form-data"
>
@ -274,13 +274,17 @@
</td>
<td>
{% if (!o.options.autoUpload && o.options.edit && o.options.loadImageFileTypes.test(file.type)) { %}
<button class="btn btn-success edit" data-index="{%=i%}" disabled>
<button class="btn btn-success edit" data-index="{%=i%}" disabled
data-toggle="tooltip" data-placement="top" title="{% endverbatim %}{{ 'page.schedule.form.edit_media'|trans }} {% verbatim %}"
>
<i class="glyphicon glyphicon-edit"></i>
<span>{% endverbatim %}{{ 'common.edit'|trans }} {% verbatim %}</span>
</button>
{% } %}
{% if (!i && !o.options.autoUpload) { %}
<button class="btn btn-primary start" disabled>
<button class="btn btn-primary start" disabled
data-toggle="tooltip" data-placement="top" title="{% endverbatim %}{{ 'page.schedule.form.upload_media'|trans }} {% verbatim %}"
>
<i class="glyphicon glyphicon-upload"></i>
<span> {% endverbatim %} {{ 'common.start'|trans }} {% verbatim %} </span>
</button>

View file

@ -72,3 +72,5 @@ page:
poll_item: Poll choice
add_poll_item: Add a choice
remove_poll_item: Remove this choice
edit_media: Edit locally the media
upload_media: Upload this media first, then you will be able to add a description.