__PACKAGE__->run_before('check_auth');
-my %allowed_modules = map { $_ => "bin/mozilla/$_.pl" } qw(is ir ar ap);
+my %allowed_modules = map { $_ => "bin/mozilla/$_.pl" } qw(is ir ar ap gl);
#
# actions
use SL::DBUtils qw(selectrow_query);
require "bin/mozilla/common.pl";
-require "bin/mozilla/drafts.pl";
require "bin/mozilla/reportgenerator.pl";
# this is for our long dates
my $form = $main::form;
my %myconfig = %main::myconfig;
- return $main::lxdebug->leave_sub() if (load_draft_maybe());
-
$form->{title} = "Add";
$form->{callback} = "gl.pl?action=add" unless $form->{callback};
post_transaction();
- $form->{callback} = build_std_url("action=add&DONT_LOAD_DRAFT=1", "show_details");
+ $form->{callback} = build_std_url("action=add", "show_details");
$form->redirect($form->{callback});
$main::lxdebug->leave_sub();
[% L.submit_tag('action', LxERP.t8('Follow-Up'), onclick='follow_up_window()') %]
[%- ELSE %]
- [%- IF draft_id %]
- <p>[% L.checkbox_tag('remove_draft', checked=remove_draft, label=LxERP.t8('Remove Draft')) %]</p>
- [%- END %]
-
[% L.submit_tag('action', LxERP.t8('Update'), id='update_button') %]
[% L.submit_tag('action', LxERP.t8('Post')) %]
- [% L.submit_tag('action', LxERP.t8('Save Draft')) %]
+ [% L.button_tag('kivi.Draft.popup("gl", "unknown", "' _ draft_id _ '", "' _ draft_description _ '")', LxERP.t8('Drafts')) %]
[% L.hidden_tag('draft_id', draft_id) %]
[% L.hidden_tag('draft_description', draft_description) %]
[%- END %]
</script>
<script type="text/javascript" src="js/show_form_details.js"></script>
<script type="text/javascript" src="js/follow_up.js"></script>
+<script type="text/javascript" src="js/kivi.Draft.js"></script>
<form method=post name="gl" action=gl.pl>