diff options
author | Zarino Zappia <mail@zarino.co.uk> | 2015-04-27 13:13:27 +0100 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2015-10-06 09:09:25 +0100 |
commit | 1dfe20e45f1031449bfa2a85595e09d34fbc74ad (patch) | |
tree | d14ac787a0fa492da63ad79685ffaadf954371b0 /perllib/FixMyStreet | |
parent | 91da8077bad2de594297c13c507cc5001c036531 (diff) |
[Zurich] UI improvements for DM/SDM report edit admin
- Styling for "Updated!" message
The message shown on form submission no longer pushes both columns
down, and disappears after 5 seconds.
- Make "time spent" labels inline to save space
- Simplify display of report admin category dropdown
- Change order of report admin inputs for Division Managers
See mysociety/FixMyStreet-Commercial#690
Diffstat (limited to 'perllib/FixMyStreet')
-rw-r--r-- | perllib/FixMyStreet/Cobrand/Zurich.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Zurich.pm b/perllib/FixMyStreet/Cobrand/Zurich.pm index 0e75d71b9..075e9dd9c 100644 --- a/perllib/FixMyStreet/Cobrand/Zurich.pm +++ b/perllib/FixMyStreet/Cobrand/Zurich.pm @@ -751,8 +751,7 @@ sub admin_report_edit { $problem->lastupdate( \'current_timestamp' ); $problem->update; - $c->stash->{status_message} = - '<p><em>' . _('Updated!') . '</em></p>'; + $c->stash->{status_message} = '<p class="message-updated">' . _('Updated!') . '</p>'; # do this here otherwise lastupdate and confirmed times # do not display correctly (reloads problem from database, including @@ -777,7 +776,7 @@ sub admin_report_edit { if ( $redirect and $type eq 'dm' ) { # only redirect for DM - $c->stash->{status_message} ||= '<p><em>' . _('Updated!') . '</em></p>'; + $c->stash->{status_message} ||= '<p class="message-updated">' . _('Updated!') . '</p>'; $c->go('index'); } @@ -847,7 +846,7 @@ sub admin_report_edit { # Make sure the problem's time_spent is updated $self->update_admin_log($c, $problem); - $c->stash->{status_message} = '<p><em>' . _('Updated!') . '</em></p>'; + $c->stash->{status_message} = '<p class="message-updated">' . _('Updated!') . '</p>'; # If they clicked the no more updates button, we're done. if ($c->get_param('no_more_updates')) { @@ -957,6 +956,7 @@ sub stash_states { @states = grep { $_->{$state} } @states; } $c->stash->{states} = \@states; + $c->stash->{states_trans} = { map { $_->{state} => $_->{trans} } @states }; # [% states_trans.${problem.state} %] # stash details about the public response $c->stash->{default_public_response} = "\nFreundliche Grüsse\n\nIhre Stadt Zürich\n"; |