Commit b518055d authored by Roque's avatar Roque

erp5_web_project_ui: more links

parent 388570eb
......@@ -62,7 +62,7 @@ input[type="submit"] {
.gadget-content a.first-line-buttons {
padding: 6pt;
margin-top: 30pt;
margin-right: 12pt;
margin-right: 6pt;
background-color: #FF6600;
color: #FFFFFF;
border-radius: 0.325em;
......
......@@ -24,6 +24,7 @@
<div class="ui-field-contain" style="top:100px;">
<p>
<a id="milestone_link" class="first-line-buttons ui-disabled" data-i18n="[value]Milestones" disabled >Milestones</a>
<a id="support_request_link" class="first-line-buttons ui-disabled" data-i18n="[value]Support Requests" disabled >Support requests</a>
</p>
</div>
<div class="ui-field-contain" style="top:150px;">
......@@ -31,19 +32,25 @@
<a id="task_link" class="first-line-buttons ui-disabled" data-i18n="[value]Tasks" disabled >Tasks:</a>
<span id="task_count">...</span><span> opened / </span>
<span id="unassigned_task_count">...</span><span style="margin-right:50px;"> unassigend </span>
</p>
</div>
<div class="ui-field-contain" style="top:200px;">
<p>
<a id="report_link" class="first-line-buttons ui-disabled" data-i18n="[value]Task Reports" disabled >Task Reports:</a>
<span id="report_count">...</span><span> opened / </span>
<span id="report_count">...</span><span> opened </span>
<a id="closed_report_link" class="first-line-buttons ui-disabled" data-i18n="[value]Closed Task Reports" disabled >Task Reports:</a>
<span id="closed_report_count">...</span><span> recently closed </span>
</p>
</div>
<div class="ui-field-contain" style="top:200px;">
<div class="ui-field-contain" style="top:250px;">
<p>
<a id="bug_link" class="first-line-buttons ui-disabled" data-i18n="[value]Bugs" disabled >Bugs:</a>
<span id="bug_count">...</span><span> opened </span>
<a id="closed_bug_link" class="first-line-buttons ui-disabled" data-i18n="[value]Closed Bugs" disabled >Bugs:</a>
<span id="closed_bug_count">...</span><span> recently closed </span>
</p>
</div>
<div class="ui-field-contain" style="top:250px;">
<div class="ui-field-contain" style="top:300px;">
<p>
<a id="test_result_link" class="first-line-buttons ui-disabled" data-i18n="[value]Last test result" disabled >Last test result:</a>
<span id="last_test_result" style="margin-right:50px;">...</span>
......
......@@ -86,12 +86,26 @@ lockGadgetInQueue, unlockGadgetInQueue, unlockGadgetInFailedQueue*/
'field_listbox_sort_list:json': [["stop_date", "ascending"]]
}, {});
generateLink(gadget, document.getElementById("bug_link"), 'display', {
generateLink(gadget, document.getElementById("support_request_link"), 'display_with_history', {
'jio_key': 'support_request_module',
'page': 'form',
'view': 'view',
'field_listbox_sort_list:json': [["delivery.start_date", "descending"]],
//TODO use a domain for state
'extended_search': ('destination_project_title: "' + modification_dict.project_title + '" AND translated_simulation_state_title: "Submitted"')
});
var bug_options = {
'jio_key': 'bug_module', 'page': 'form', 'view': bug_view,
'field_listbox_sort_list:json': [["start_date", "descending"]],
'field_listbox_column_list:json': ["title", "description", "start_date"],
'extended_search': ('source_project_title: "' + modification_dict.project_title + '" AND selection_domain_state_bug_domain: "started"')
});
//'extended_search': ('source_project_title: "' + modification_dict.project_title + '" AND selection_domain_state_bug_domain: "started"')
'extended_search': ('source_project_title: "' + modification_dict.project_title + '" AND translated_simulation_state_title: "Open"')
}, closed_bug_options = {};
generateLink(gadget, document.getElementById("bug_link"), 'display', bug_options);
Object.assign(closed_bug_options, bug_options);
closed_bug_options.extended_search = ('source_project_title: "' + modification_dict.project_title + '" AND translated_simulation_state_title: "Resolved"');
generateLink(gadget, document.getElementById("closed_bug_link"), 'display', closed_bug_options);
generateInfo(gadget, document.getElementById("bug_count"), project_url + "/Project_bugs");
generateInfo(gadget, document.getElementById("closed_bug_count"), project_url + "/Project_bugs?closed=1");
......@@ -105,13 +119,17 @@ lockGadgetInQueue, unlockGadgetInQueue, unlockGadgetInFailedQueue*/
generateInfo(gadget, document.getElementById("task_count"), project_url + "/Project_tasks");
generateInfo(gadget, document.getElementById("unassigned_task_count"), project_url + "/Project_tasksToAssigne");
generateLink(gadget, document.getElementById("report_link"), 'display_with_history', {
var task_report_options = {
'jio_key': 'task_report_module', 'page': 'form', 'view': 'view',
'field_listbox_sort_list:json': [["delivery.start_date", "descending"]],
'field_listbox_column_list:json': ["title", "delivery.start_date", "delivery.stop_date", "destination_decision_title",
"source_title", "destination_title", "total_quantity", "task_line_quantity_unit_title"],
'extended_search': ('source_project_title: "' + modification_dict.project_title + '" AND selection_domain_state_task_report_domain: "started"')
});
}, closed_task_report_options = {};
generateLink(gadget, document.getElementById("report_link"), 'display_with_history', task_report_options);
Object.assign(closed_task_report_options, task_report_options);
closed_task_report_options.extended_search = ('source_project_title: "' + modification_dict.project_title + '" AND selection_domain_state_task_report_domain: "closed"');
generateLink(gadget, document.getElementById("closed_report_link"), 'display_with_history', closed_task_report_options);
generateInfo(gadget, document.getElementById("report_count"), project_url + "/Project_taskReports");
generateInfo(gadget, document.getElementById("closed_report_count"), project_url + "/Project_taskReports?closed=1");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment