Bring back multiple photo uploads by explaining the effects of setting a title or alt description when uploading multiple items.

This commit is contained in:
nobody 2022-04-30 13:18:41 -07:00
parent 1acaf94793
commit a90b0c9021
2 changed files with 5 additions and 3 deletions

View file

@ -735,8 +735,10 @@ class Photos extends Controller
'$nickname' => App::$data['channel']['channel_address'],
'$newalbum_label' => t('Enter an album name'),
'$newalbum_placeholder' => t('or select an existing album (doubleclick)'),
'$caption' => array('description', t('Please briefly describe this photo for vision-impaired viewers')),
'title' => ['title', t('Title (optional)')],
'$caption' => [ 'description', t('Please briefly describe this photo for vision-impaired viewers'), '',
t('If uploading multiple photos this description will be added to every photo.') ],
'title' => ['title', t('Title (optional)'), '',
t('If uploading multiple photos this title/caption will be added to every photo.') ],
'$albums' => $albums['albums'],
'$selname' => $selname,
'$permissions' => t('Permissions'),

View file

@ -1,5 +1,5 @@
<div id="photo-upload-form">
<input id="invisible-photos-file-upload" type="file" name="files" style="visibility:hidden;position:absolute;top:-50;left:-50;width:0;height:0;" data-nickname='{{$nickname}}' >
<input id="invisible-photos-file-upload" type="file" name="files" style="visibility:hidden;position:absolute;top:-50;left:-50;width:0;height:0;" data-nickname='{{$nickname}}' multiple >
<div class="section-content-tools-wrapper">
<form action="#" enctype="multipart/form-data" method="post" name="photos-upload-form" id="photos-upload-form" class="acl-form" data-form_id="photos-upload-form" data-allow_cid='{{$allow_cid}}' data-allow_gid='{{$allow_gid}}' data-deny_cid='{{$deny_cid}}' data-deny_gid='{{$deny_gid}}'>
<input type="hidden" id="photos-upload-source" name="source" value="photos" />