redesign image editor

- remove zoom
- separate setting public/private from edit form
- prevent assigning image without it has been published
- prevent publishing image without licence
- show buttons depending on license state
- reload view on state change
- gray out not-selected images
This commit is contained in:
Milan
2019-10-05 14:21:33 +02:00
parent f0be286f47
commit edb2aa29d7
8 changed files with 204 additions and 133 deletions

View File

@@ -229,6 +229,13 @@ sub show_image {
# print STDERR
$template_params->{loc} = localization::get( $config, { user => $params->{presets}->{user}, file => 'image' } );
my $label_key = 'label_assign_to_'.$params->{target};
$template_params->{label_assign_to_by_label} = $template_params->{loc}->{$label_key};
$label_key = 'label_warn_not_public_'.$params->{target};
$template_params->{label_warn_not_public_by_label} = $template_params->{loc}->{$label_key};
$template_params = uac::set_template_permissions( $permissions, $template_params );
$template_params->{no_results} = 1 if scalar @$results == 0;