$self->version->description(@lines ? join("\n", @lines) : t8('No changes since previous version.'));
}
- $self->render('requirement_spec_version/new', { layout => 0 }, title => t8('Create a new version'));
+ $self->render('requirement_spec_version/new', { layout => 0 });
}
sub action_create {
$self->js
->html('#requirement_spec_version', $version_info_html)
->html('#versioned_copies_list', $version_list_html)
- ->jqmClose('.jqmWindow')
+ ->dialog->close('#jqueryui_popup_dialog')
->render($self);
}
"Copy template":"Vorlage kopieren",
"Create":"Anlegen",
"Create PDF":"PDF erzeugen",
+"Create a new version":"Eine neue Version anlegen",
"Create new quotation/order":"Neues Angebot/neuen Auftrag anlegen",
"Create new qutoation/order":"Neues Angebot/neuen Auftrag anlegen",
"Create new version":"Neue Version anlegen",
"Revert to version":"Auf Version zurücksetzen",
"Save":"Speichern",
"Section/Function block actions":"Abschnitts-/Funktionsblockaktionen",
+"Select template to paste":"Einzufügende Vorlage auswählen",
"Text block actions":"Textblockaktionen",
"The description is missing.":"Die Beschreibung fehlt.",
"The name is missing.":"Der Name fehlt.",
// -------------------------------------------------------------------------
ns.paste_template = function(key, opt, other_data) {
- open_jqm_window({ url: 'controller.pl?action=RequirementSpec/select_template_to_paste' });
+ kivi.popup_dialog({ url: 'controller.pl?action=RequirementSpec/select_template_to_paste', dialog: { title: kivi.t8("Select template to paste") } });
};
ns.paste_selected_template = function(template_id) {
- $('#jqm_popup_dialog').jqmClose();
+ $('#jqueryui_popup_dialog').dialog("close");
var data = {
action: "RequirementSpec/paste_template",
};
ns.create_version = function() {
- open_jqm_window({ url: 'controller.pl',
- data: { action: 'RequirementSpecVersion/new',
- requirement_spec_id: $('#requirement_spec_id').val() },
- id: 'new_requirement_spec_version_window' });
+ kivi.popup_dialog({ url: 'controller.pl',
+ data: { action: 'RequirementSpecVersion/new',
+ requirement_spec_id: $('#requirement_spec_id').val() },
+ dialog: { title: kivi.t8('Create a new version') }});
return true;
};
[%- END %]
[%- END %]
-<h1>[%- LxERP.t8("Select template to paste") %]</h1>
-
[%- IF !TEMPLATES.size %]
<p>[%- LxERP.t8("No requirement spec templates have been created yet.") %]</p>
-<p><a href="#" onclick="$('#jqm_popup_dialog').jqmClose();">[%- LxERP.t8("Abort") %]</a></p>
-
[%- ELSE %]
<table>
[%- END %]
</table>
-<p><a href="#" onclick="$('#jqm_popup_dialog').jqmClose();">[%- LxERP.t8("Abort") %]</a></p>
[%- END %]
+
+<p><a href="#" onclick="$('#jqueryui_popup_dialog').dialog('close');">[%- LxERP.t8("Abort") %]</a></p>
<a href="[% SELF.url_for(action='list') %]">[%- LxERP.t8("Cancel") %]</a>
[%- ELSE %]
[% L.ajax_submit_tag("controller.pl?action=RequirementSpecVersion/create", "#" _ id_prefix, LxERP.t8("Save")) %]
- <a href="#" onclick="$('.jqmWindow').jqmClose();">[% LxERP.t8("Cancel") %]</a>
+ <a href="#" onclick="$('#jqueryui_popup_dialog').dialog('close');">[% LxERP.t8("Cancel") %]</a>
[%- END %]
</p>
</form>
-<h1>[% title %]</h1>
-
[%- INCLUDE 'common/flash.html' %]
[%- INCLUDE 'requirement_spec_version/_form.html' %]