Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision b8a90763

Von Moritz Bunkus vor mehr als 10 Jahren hinzugefügt

  • ID b8a9076330788981d439d15791d83711057855de
  • Vorgänger b2e51e71
  • Nachfolger aaa2cd92

Pflichtenheftzeitschätzung: neuer Menüeintrag "Speichern und geöffnet lassen"

Unterschiede anzeigen:

SL/Controller/RequirementSpec.pm
149 149

  
150 150
  $self->requirement_spec(SL::DB::RequirementSpec->new(id => $self->requirement_spec->id)->load);
151 151

  
152
  my $html = $self->render('requirement_spec/_show_time_and_cost_estimate', { output => 0 });
153
  $self->js->replaceWith('#time_cost_estimate', $html)
154
           ->remove('#time_cost_estimate_form_container');
152
  my $html = $self->render('requirement_spec/_show_time_and_cost_estimate', { output => 0 }, initially_hidden => !!$::form->{keep_open});
153
  $self->js->replaceWith('#time_cost_estimate', $html);
154

  
155
  return $self->js->render($self) if $::form->{keep_open};
156

  
157
  $self->js->remove('#time_cost_estimate_form_container');
155 158

  
156 159
  if ($self->visible_section) {
157 160
    $html = $self->render('requirement_spec_item/_section', { output => 0 }, requirement_spec_item => $self->visible_section);
js/locale/de.js
45 45
"Requirement spec template actions":"Pflichtenheftvorlagen-Aktionen",
46 46
"Revert to version":"Auf Version zurücksetzen",
47 47
"Save":"Speichern",
48
"Save and keep open":"Speichern und geöffnet lassen",
48 49
"Section/Function block actions":"Abschnitts-/Funktionsblockaktionen",
49 50
"Select template to paste":"Einzufügende Vorlage auswählen",
50 51
"Text block actions":"Textblockaktionen",
js/requirement_spec.js
469 469
    return true;
470 470
  }
471 471

  
472
  var data = "action=RequirementSpec/ajax_" + key + "_time_and_cost_estimate&";
472
  var add_data = '';
473
  if (key == 'save_keep_open') {
474
    key      = 'save';
475
    add_data = 'keep_open=1&';
476
  }
477

  
478
  var data = "action=RequirementSpec/ajax_" + key + "_time_and_cost_estimate&" + add_data;
473 479

  
474 480
  if (key == 'save')
475 481
    data += $('#edit_time_cost_estimate_form').serialize()
......
771 777
    items:    $.extend({
772 778
        heading: { name: kivi.t8('Time/cost estimate actions'), className: 'context-menu-heading' }
773 779
      , save:    { name: kivi.t8('Save'),   icon: "save",  callback: kivi.requirement_spec.standard_time_cost_estimate_ajax_call }
780
      , save_keep_open: { name: kivi.t8('Save and keep open'), icon: "save", callback: kivi.requirement_spec.standard_time_cost_estimate_ajax_call }
774 781
      , cancel:  { name: kivi.t8('Cancel'), icon: "close", callback: kivi.requirement_spec.standard_time_cost_estimate_ajax_call }
775 782
    }, general_actions)
776 783
  });
locale/de/all
2000 2000
  'Save and RFQ'                => 'Speichern und Lieferantenanfrage',
2001 2001
  'Save and close'              => 'Speichern und schließen',
2002 2002
  'Save and execute'            => 'Speichern und ausführen',
2003
  'Save and keep open'          => 'Speichern und geöffnet lassen',
2003 2004
  'Save as new'                 => 'als neu speichern',
2004 2005
  'Save document in WebDAV repository' => 'Dokument in WebDAV-Ablage speichern',
2005 2006
  'Save draft'                  => 'Entwurf speichern',
templates/webpages/requirement_spec/_show_time_and_cost_estimate.html
1 1
[%- USE LxERP -%][%- USE L -%][%- USE HTML -%][%- USE P -%]
2 2
[%- DEFAULT id_prefix = 'time_and_cost_estimate_form' %]
3 3

  
4
<div id="time_cost_estimate">
4
<div id="time_cost_estimate"[% IF initially_hidden %] style="display: none;"[% END %]>
5 5
 [%- IF !SELF.requirement_spec.sections.size %]
6 6
  <p>[%- LxERP.t8("Neither sections nor function blocks have been created yet.") %]</p>
7 7

  

Auch abrufbar als: Unified diff