Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision ed667cac

Von Sven Schöling vor mehr als 8 Jahren hinzugefügt

  • ID ed667cac4097e2f2e62c7dd440eb0977da53b339
  • Vorgänger 635df4bc
  • Nachfolger adbc100a

Drafts: gl auch eingebunden

Unterschiede anzeigen:

SL/Controller/Draft.pm
19 19

  
20 20
__PACKAGE__->run_before('check_auth');
21 21

  
22
my %allowed_modules = map { $_ => "bin/mozilla/$_.pl" } qw(is ir ar ap);
22
my %allowed_modules = map { $_ => "bin/mozilla/$_.pl" } qw(is ir ar ap gl);
23 23

  
24 24
#
25 25
# actions
bin/mozilla/gl.pl
45 45
use SL::DBUtils qw(selectrow_query);
46 46

  
47 47
require "bin/mozilla/common.pl";
48
require "bin/mozilla/drafts.pl";
49 48
require "bin/mozilla/reportgenerator.pl";
50 49

  
51 50
# this is for our long dates
......
84 83
  my $form     = $main::form;
85 84
  my %myconfig = %main::myconfig;
86 85

  
87
  return $main::lxdebug->leave_sub() if (load_draft_maybe());
88

  
89 86
  $form->{title} = "Add";
90 87

  
91 88
  $form->{callback} = "gl.pl?action=add" unless $form->{callback};
......
1160 1157

  
1161 1158
  post_transaction();
1162 1159

  
1163
  $form->{callback} = build_std_url("action=add&DONT_LOAD_DRAFT=1", "show_details");
1160
  $form->{callback} = build_std_url("action=add", "show_details");
1164 1161
  $form->redirect($form->{callback});
1165 1162

  
1166 1163
  $main::lxdebug->leave_sub();
templates/webpages/gl/form_footer.html
35 35
  [% L.submit_tag('action', LxERP.t8('Follow-Up'), onclick='follow_up_window()') %]
36 36
[%- ELSE %]
37 37

  
38
 [%- IF draft_id %]
39
      <p>[% L.checkbox_tag('remove_draft', checked=remove_draft, label=LxERP.t8('Remove Draft')) %]</p>
40
 [%- END %]
41

  
42 38
      [% L.submit_tag('action', LxERP.t8('Update'), id='update_button') %]
43 39
      [% L.submit_tag('action', LxERP.t8('Post')) %]
44
      [% L.submit_tag('action', LxERP.t8('Save Draft')) %]
40
      [% L.button_tag('kivi.Draft.popup("gl", "unknown", "' _ draft_id _ '", "' _ draft_description _ '")', LxERP.t8('Drafts')) %]
45 41
      [% L.hidden_tag('draft_id', draft_id) %]
46 42
      [% L.hidden_tag('draft_description', draft_description) %]
47 43
[%- END %]
templates/webpages/gl/form_header.html
34 34
  </script>
35 35
  <script type="text/javascript" src="js/show_form_details.js"></script>
36 36
<script type="text/javascript" src="js/follow_up.js"></script>
37
<script type="text/javascript" src="js/kivi.Draft.js"></script>
37 38

  
38 39
<form method=post name="gl" action=gl.pl>
39 40

  

Auch abrufbar als: Unified diff