issue #1019 photo upload redesign

* Hide album selection after creation
* Correctly center the welcome box
* Better alignment for select files info
* Remove summary for select files info, always display details
* Fix dynamic margins in album popin
* Simplify show/hide blocks when no album available
* Make file selection button secondary when files added to queue
This commit is contained in:
Yann Le Boudec
2019-05-28 14:43:21 +02:00
committed by Pierrick Le Gall
parent f5f555e1f2
commit 038a42dd46
6 changed files with 72 additions and 52 deletions
@@ -150,6 +150,15 @@ SELECT category_id
// existing album
$template->assign('selected_category', $selected_category);
// how many existing albums?
$query = '
SELECT
COUNT(*)
FROM '.CATEGORIES_TABLE.'
;';
list($nb_albums) = pwg_db_fetch_row(pwg_query($query));
// $nb_albums = 0;
$template->assign('NB_ALBUMS', $nb_albums);
// image level options
$selected_level = isset($_POST['level']) ? $_POST['level'] : 0;