</fieldset>
[% END %]
+[% IF ( save_successful ) %]
+[% UNLESS ( errors ) %]
+</br>
+<div id="report_updated">
+ <div class="dialog message">
+ <p>Your report "[% reportname %]" has been saved</p>
+ </div>
+</div>
+[% END %]
+[% END %]
+
[% IF ( editsql ) %]
<form action="/cgi-bin/koha/reports/guided_reports.pl" method="post" class="validated">
<input type="hidden" name="phase" value="Update SQL" />
[% END %]
-[% IF ( save_successful ) %]
-[% UNLESS ( errors ) %]
-<h2>Your report has been saved</h2>
-<h4>[% reportname %]</h4>
-<ul>
- [% IF ( id ) %]
- <li><a href="/cgi-bin/koha/reports/guided_reports.pl?reports=[% id %]&phase=Run%20this%20report">Run this report</a></li>
- [% END %]
- <li>Access this report from the: <a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Use%20saved">Saved reports page</a></li>
- <li>Schedule this report to run using the: <a href="/cgi-bin/koha/tools/scheduler.pl">Scheduler tool</a></li>
- <li>Return to: <a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Use%20saved">Guided reports</a></li>
-</ul>
-[% END %]
-[% END %]
-
[% IF ( errors ) %]
<form action="/cgi-bin/koha/reports/guided_reports.pl" method="post">
<div class="dialog alert">
$('#limitselect').submit();
});
+ $(document).click(function() {
+ $('#report_updated').hide();
+ });
+
$(".goback").on("click",function(e){
e.preventDefault();
window.history.back();
}
}
$template->param(
- 'saved1' => 1,
- 'savedreports' => $reports,
- 'usecache' => $usecache,
- 'groups_with_subgroups'=> groups_with_subgroups($group, $subgroup),
- filters => $filter,
- has_obsolete_reports => $has_obsolete_reports,
+ 'saved1' => 1,
+ 'savedreports' => $reports,
+ 'usecache' => $usecache,
+ 'groups_with_subgroups' => groups_with_subgroups( $group, $subgroup ),
+ filters => $filter,
+ has_obsolete_reports => $has_obsolete_reports,
);
}
'save_successful' => 1,
'reportname' => $reportname,
'id' => $id,
+ 'editsql' => 1,
+ 'sql' => $sql,
+ 'groups_with_subgroups' => groups_with_subgroups($group, $subgroup),
+ 'notes' => $notes,
+ 'cache_expiry' => $cache_expiry,
+ 'public' => $public,
+ 'usecache' => $usecache,
);
logaction( "REPORTS", "MODIFY", $id, "$reportname | $sql" ) if C4::Context->preference("ReportsLog");
}
'save_successful' => 1,
'reportname' => $name,
'id' => $id,
+ 'editsql' => 1,
+ 'sql' => $sql,
+ 'groups_with_subgroups' => groups_with_subgroups($group, $subgroup),
+ 'notes' => $notes,
+ 'cache_expiry' => $cache_expiry,
+ 'public' => $public,
+ 'usecache' => $usecache,
);
}
}