Overview
Comment:Do not make file input required
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | stable
Files: files | file ages | folders
SHA3-256: c87a0b7849d7c5b338ee8d3a6eb35059d374c53a523d9a9fedd9a6aa4c2fb6f5
User & Date: bohwaz on 2021-11-09 02:07:34
Other Links: manifest | tags
Context
2021-11-09
02:38
Fix: refresh session when doing a reset check-in: b13f374190 user: bohwaz tags: trunk, stable
02:07
Do not make file input required check-in: c87a0b7849 user: bohwaz tags: trunk, stable
02:00
Implement multiple file upload and file preview when uploading documents and web page attachments check-in: 55a454584b user: bohwaz tags: trunk, stable
Changes

Modified src/templates/common/files/upload.tpl from [2d8db81606] to [548d099046].

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{include file="admin/_head.tpl" title="Envoi de fichier"}

{form_errors}

<form method="post" action="{$self_url}" enctype="multipart/form-data" data-focus="1">
	<fieldset>
		<legend>Téléverser des fichiers</legend>
		<dl>
			{input type="file" name="file[]" multiple=true required="required" label="Fichiers à envoyer" data-enhanced=1}
		</dl>
		<p class="submit">
			{csrf_field key=$csrf_key}
			{button type="submit" name="upload" label="Envoyer" shape="upload" class="main"}
		</p>
	</fieldset>
</form>

{include file="admin/_foot.tpl"}








|









1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{include file="admin/_head.tpl" title="Envoi de fichier"}

{form_errors}

<form method="post" action="{$self_url}" enctype="multipart/form-data" data-focus="1">
	<fieldset>
		<legend>Téléverser des fichiers</legend>
		<dl>
			{input type="file" name="file[]" multiple=true label="Fichiers à envoyer" data-enhanced=1}
		</dl>
		<p class="submit">
			{csrf_field key=$csrf_key}
			{button type="submit" name="upload" label="Envoyer" shape="upload" class="main"}
		</p>
	</fieldset>
</form>

{include file="admin/_foot.tpl"}

Modified src/templates/web/_attach.tpl from [c8c86d7821] to [dbe6b7661f].

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{include file="admin/_head.tpl" title="Inclure un fichier"}

{form_errors}

<form method="post" enctype="multipart/form-data" action="{$self_url}" id="f_upload">
	<fieldset>
		<legend>Téléverser des fichiers</legend>
		<dl>
			{input type="file" name="file[]" multiple=true required=true label="Fichiers à envoyer" data-enhanced=1}
		</dl>
		<p class="submit">
			{csrf_field key=$csrf_key}
			{button type="submit" name="upload" label="Envoyer" shape="upload" class="main"}
		</p>
	</fieldset>
</form>








|







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{include file="admin/_head.tpl" title="Inclure un fichier"}

{form_errors}

<form method="post" enctype="multipart/form-data" action="{$self_url}" id="f_upload">
	<fieldset>
		<legend>Téléverser des fichiers</legend>
		<dl>
			{input type="file" name="file[]" multiple=true label="Fichiers à envoyer" data-enhanced=1}
		</dl>
		<p class="submit">
			{csrf_field key=$csrf_key}
			{button type="submit" name="upload" label="Envoyer" shape="upload" class="main"}
		</p>
	</fieldset>
</form>