Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision f82ffe92

Von Moritz Bunkus vor mehr als 10 Jahren hinzugefügt

  • ID f82ffe92ce7168885990aace35c91706da7a7f2a
  • Vorgänger 682d871d
  • Nachfolger 5ca41cde

Pflichtenhefte: Verwendung von jQuery-UI-Dialogen anstelle von jqModal

Unterschiede anzeigen:

SL/Controller/RequirementSpecVersion.pm
60 60
    $self->version->description(@lines ? join("\n", @lines) : t8('No changes since previous version.'));
61 61
  }
62 62

  
63
  $self->render('requirement_spec_version/new', { layout => 0 }, title => t8('Create a new version'));
63
  $self->render('requirement_spec_version/new', { layout => 0 });
64 64
}
65 65

  
66 66
sub action_create {
......
85 85
  $self->js
86 86
    ->html('#requirement_spec_version', $version_info_html)
87 87
    ->html('#versioned_copies_list',    $version_list_html)
88
    ->jqmClose('.jqmWindow')
88
    ->dialog->close('#jqueryui_popup_dialog')
89 89
    ->render($self);
90 90
}
91 91

  
js/locale/de.js
12 12
"Copy template":"Vorlage kopieren",
13 13
"Create":"Anlegen",
14 14
"Create PDF":"PDF erzeugen",
15
"Create a new version":"Eine neue Version anlegen",
15 16
"Create new quotation/order":"Neues Angebot/neuen Auftrag anlegen",
16 17
"Create new qutoation/order":"Neues Angebot/neuen Auftrag anlegen",
17 18
"Create new version":"Neue Version anlegen",
......
41 42
"Revert to version":"Auf Version zurücksetzen",
42 43
"Save":"Speichern",
43 44
"Section/Function block actions":"Abschnitts-/Funktionsblockaktionen",
45
"Select template to paste":"Einzufügende Vorlage auswählen",
44 46
"Text block actions":"Textblockaktionen",
45 47
"The description is missing.":"Die Beschreibung fehlt.",
46 48
"The name is missing.":"Der Name fehlt.",
js/requirement_spec.js
281 281
// -------------------------------------------------------------------------
282 282

  
283 283
ns.paste_template = function(key, opt, other_data) {
284
  open_jqm_window({ url: 'controller.pl?action=RequirementSpec/select_template_to_paste' });
284
  kivi.popup_dialog({ url: 'controller.pl?action=RequirementSpec/select_template_to_paste', dialog: { title: kivi.t8("Select template to paste") } });
285 285
};
286 286

  
287 287
ns.paste_selected_template = function(template_id) {
288
  $('#jqm_popup_dialog').jqmClose();
288
  $('#jqueryui_popup_dialog').dialog("close");
289 289

  
290 290
  var data = {
291 291
    action:               "RequirementSpec/paste_template",
......
459 459
};
460 460

  
461 461
ns.create_version = function() {
462
  open_jqm_window({ url:  'controller.pl',
463
                    data: { action:              'RequirementSpecVersion/new',
464
                            requirement_spec_id: $('#requirement_spec_id').val() },
465
                    id:   'new_requirement_spec_version_window' });
462
  kivi.popup_dialog({ url:    'controller.pl',
463
                      data:   { action:              'RequirementSpecVersion/new',
464
                                requirement_spec_id: $('#requirement_spec_id').val() },
465
                      dialog: { title: kivi.t8('Create a new version') }});
466 466
  return true;
467 467
};
468 468

  
templates/webpages/requirement_spec/select_template_to_paste.html
12 12
 [%- END %]
13 13
[%- END %]
14 14

  
15
<h1>[%- LxERP.t8("Select template to paste") %]</h1>
16

  
17 15
[%- IF !TEMPLATES.size %]
18 16
<p>[%- LxERP.t8("No requirement spec templates have been created yet.") %]</p>
19 17

  
20
<p><a href="#" onclick="$('#jqm_popup_dialog').jqmClose();">[%- LxERP.t8("Abort") %]</a></p>
21

  
22 18
[%- ELSE %]
23 19

  
24 20
<table>
......
68 64
[%- END %]
69 65
</table>
70 66

  
71
<p><a href="#" onclick="$('#jqm_popup_dialog').jqmClose();">[%- LxERP.t8("Abort") %]</a></p>
72 67
[%- END %]
68

  
69
<p><a href="#" onclick="$('#jqueryui_popup_dialog').dialog('close');">[%- LxERP.t8("Abort") %]</a></p>
templates/webpages/requirement_spec_version/_form.html
30 30
  <a href="[% SELF.url_for(action='list') %]">[%- LxERP.t8("Cancel") %]</a>
31 31
[%- ELSE %]
32 32
  [% L.ajax_submit_tag("controller.pl?action=RequirementSpecVersion/create",  "#" _ id_prefix, LxERP.t8("Save")) %]
33
  <a href="#" onclick="$('.jqmWindow').jqmClose();">[% LxERP.t8("Cancel") %]</a>
33
  <a href="#" onclick="$('#jqueryui_popup_dialog').dialog('close');">[% LxERP.t8("Cancel") %]</a>
34 34
[%- END %]
35 35
 </p>
36 36
</form>
templates/webpages/requirement_spec_version/new.html
1
<h1>[% title %]</h1>
2

  
3 1
[%- INCLUDE 'common/flash.html' %]
4 2

  
5 3
[%- INCLUDE 'requirement_spec_version/_form.html' %]

Auch abrufbar als: Unified diff