Get success message working after save

This commit is contained in:
2024-11-22 15:09:21 +00:00
parent b9b939223b
commit edb245df07
2 changed files with 25 additions and 20 deletions

View File

@@ -16,26 +16,26 @@
<h1><%=$title%></h1>
% if ( stash('modul') ) {
% if ( stash('modul')) {
%= $c->render_to_string(inline => stash('modul') );
% }
%if ($$${prefix}_data->{first}) {
%if ($c->stash('first')) {
<br><p>
%=$c->render_to_string(inline =>$c->l($$${prefix}_data->{first}))
%=$c->render_to_string(inline =>$c->l($c->stash('first')))
</p>
%} elsif ($$${prefix}_data->{success}) {
%} elsif ($c->stash('success')) {
<div class='sme-border'>
<h2> Operation Status Report</h2><p>
%= $c->l($$${prefix}_data->{success});
<h2><%=$c->l('Status Report') %></h2><p>
%= $c->l($c->stash('success'));
</p>
</div>
%} elsif ($$${prefix}_data->{error}) {
%} elsif ($c->stash('error')) {
<div class='sme-error'>
<h2> Operation Status Report - error</h2><p>
%= $c->l($$${prefix}_data->{error});
<h2><%=$c->l('Error Status Report') %></h2><p>
%= $c->l($c->stash('error'));
</p>
</div>
%}