[%- INCLUDE 'common/flash.html' %]
-<h1>[%- HTML.escape(SELF.requirement_spec.displayable_name('format', 'with_customer')) %]
- [% LxERP.t8("for") %]
- [% HTML.escape(SELF.requirement_spec.customer.displayable_name) -%]
-</h1>
+[%- INCLUDE 'requirement_spec/_header.html' %]
[%- L.hidden_tag('requirement_spec_id', SELF.requirement_spec.id) -%]
-<div id="requirement_spec_version">
- [%- INCLUDE 'requirement_spec/_version.html' requirement_spec=SELF.requirement_spec -%]
-</div>
-
-<div id="column-container">
- <div id="tree-column">
- <div id="tree"></div>
- </div>
+<div class="tabwidget">
+ <ul>
+ <li><a href="#function-blocks-tab">[%- LxERP.t8("Content") %]</a></li>
+ <li><a href="controller.pl?action=RequirementSpec/ajax_edit&id=[% HTML.url(SELF.requirement_spec.id) %]">[%- LxERP.t8("Basic settings") %]</a></li>
+ </ul>
- <div id="content-column" class="clearfix">
- [% L.hidden_tag('current_content_type', SELF.requirement_spec_item.id ? 'section' : '') %]
- [% L.hidden_tag('current_content_id', SELF.requirement_spec_item.id) %]
+ <div id="function-blocks-tab">
+ <div id="requirement_spec_version">
+ [%- INCLUDE 'requirement_spec/_version.html' requirement_spec=SELF.requirement_spec -%]
+ </div>
- <div id="column-content">
- [%- IF SELF.requirement_spec_item -%]
- [%- INCLUDE 'requirement_spec_item/_section.html' requirement_spec_item=SELF.requirement_spec_item -%]
- [%- ELSE -%]
- [%- INCLUDE 'requirement_spec_item/_no_section.html' -%]
- [%- END -%]
+ <div id="column-container" class="clearfix">
+ <div id="tree-column">
+ <div id="tree"></div>
+ </div>
+
+ <div id="content-column" class="clearfix">
+ [% L.hidden_tag('current_content_type', SELF.requirement_spec_item.id ? 'section' : '') %]
+ [% L.hidden_tag('current_content_id', SELF.requirement_spec_item.id) %]
+
+ <div id="column-content">
+ [%- IF SELF.requirement_spec_item -%]
+ [%- INCLUDE 'requirement_spec_item/_section.html' requirement_spec_item=SELF.requirement_spec_item -%]
+ [%- ELSE -%]
+ [%- INCLUDE 'requirement_spec_item/_no_section.html' -%]
+ [%- END -%]
+ </div>
+ </div>
</div>
</div>
</div>
edit: { name: "[% LxERP.t8('Edit text block') %]", icon: "edit", callback: standard_text_block_ajax_call, disabled: disable_edit_text_block_commands },
delete: { name: "[% LxERP.t8('Delete text block') %]", icon: "delete", callback: ask_delete_text_block, disabled: disable_edit_text_block_commands },
sep1: "---------",
+ flag: { name: "[% LxERP.t8('Toggle marker') %]", icon: "flag", callback: standard_text_block_ajax_call, disabled: disable_edit_text_block_commands },
+ sep2: "---------",
copy: { name: "[% LxERP.t8('Copy') %]", icon: "copy", disabled: disable_edit_text_block_commands },
paste: { name: "[% LxERP.t8('Paste') %]", icon: "paste", disabled: disable_edit_text_block_commands }
}
selector: '.section-context-menu',
items: {
add_section: { name: "[% LxERP.t8('Add section') %]", icon: "add", callback: standard_item_ajax_call },
- add_function_block: { name: "[% LxERP.t8('Add function block') %]", icon: "add", callback: standard_text_block_ajax_call, disabled: disable_edit_item_commands },
+ add_function_block: { name: "[% LxERP.t8('Add function block') %]", icon: "add", callback: standard_item_ajax_call, disabled: disable_add_function_block_command },
sep1: "---------",
edit: { name: "[% LxERP.t8('Edit') %]", icon: "edit", callback: standard_item_ajax_call, disabled: disable_edit_item_commands },
delete: { name: "[% LxERP.t8('Delete') %]", icon: "delete", callback: ask_delete_item, disabled: disable_edit_item_commands },
- sep2: "---------",
+ sep2: "---------",
+ flag: { name: "[% LxERP.t8('Toggle marker') %]", icon: "flag", callback: standard_item_ajax_call, disabled: disable_edit_item_commands },
+ sep3: "---------",
copy: { name: "[% LxERP.t8('Copy') %]", icon: "copy", disabled: disable_edit_item_commands },
paste: { name: "[% LxERP.t8('Paste') %]", icon: "paste", disabled: disable_edit_item_commands }
}
$.contextMenu({
selector: '.function-block-context-menu,.sub-function-block-context-menu',
items: {
- new_item: { name: "[% LxERP.t8('Add function block') %]", icon: "add", callback: standard_item_ajax_call },
- new_sub_item: { name: "[% LxERP.t8('Add sub function block') %]", icon: "add", callback: standard_item_ajax_call },
- sep1: "---------",
- edit: { name: "[% LxERP.t8('Edit') %]", icon: "edit", callback: standard_item_ajax_call, disabled: disable_edit_item_commands },
- delete: { name: "[% LxERP.t8('Delete') %]", icon: "delete", callback: ask_delete_item, disabled: disable_edit_item_commands },
- sep2: "---------",
- copy: { name: "[% LxERP.t8('Copy') %]", icon: "copy", disabled: disable_edit_item_commands },
- paste: { name: "[% LxERP.t8('Paste') %]", icon: "paste", disabled: disable_edit_item_commands }
+ add_function_block: { name: "[% LxERP.t8('Add function block') %]", icon: "add", callback: standard_item_ajax_call },
+ add_sub_function_block: { name: "[% LxERP.t8('Add sub function block') %]", icon: "add", callback: standard_item_ajax_call },
+ sep1: "---------",
+ edit: { name: "[% LxERP.t8('Edit') %]", icon: "edit", callback: standard_item_ajax_call, disabled: disable_edit_item_commands },
+ delete: { name: "[% LxERP.t8('Delete') %]", icon: "delete", callback: ask_delete_item, disabled: disable_edit_item_commands },
+ sep2: "---------",
+ flag: { name: "[% LxERP.t8('Toggle marker') %]", icon: "flag", callback: standard_item_ajax_call, disabled: disable_edit_item_commands },
+ sep3: "---------",
+ copy: { name: "[% LxERP.t8('Copy') %]", icon: "copy", disabled: disable_edit_item_commands },
+ paste: { name: "[% LxERP.t8('Paste') %]", icon: "paste", disabled: disable_edit_item_commands }
}
});
});
-function edit_section_header() {
- $.post("controller.pl?action=RequirementSpecItem/edit_section&id=" + encodeURIComponent($('#active_section_id').val()), function(data) {
- var header = $('#section-header');
- header.data('old-elements', header.children().detach());
- header.html(data);
- });
-}
-
-function submit_section_form() {
- $.post("controller.pl?action=RequirementSpecItem/update_section&id=" + $('#section-form form').serialize(), function(data) {
- var header = $('#section-header');
- header.removeData('old-elements');
- header.html(data['header_html']);
- $('#tree').jstree('rename_node', '#fb-' + data['id'], data['node_name']);
- });
-}
-
-function cancel_section_form() {
- var header = $('#section-header');
- header.empty();
- header.append(header.data('old-elements'));
- header.removeData('old-elements');
-}
-
-
-
-
-
-
-->
</script>