Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-trans-project-feedback
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
intranet-trans-project-feedback
Commits
3de8c145
Commit
3de8c145
authored
Nov 22, 2015
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
-- minor improvements
parent
fb2912b6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
63 additions
and
28 deletions
+63
-28
graph-panel.adp
lib/graph-panel.adp
+61
-27
survey-component.tcl
lib/survey-component.tcl
+2
-1
No files found.
lib/graph-panel.adp
View file @
3de8c145
...
...
@@ -11,6 +11,14 @@ Ext.onReady(function () {
// STORES
//
// ////////////////////////////////////////////////
// CHART TYPES
//
<if @chart_type@ eq "column_chart">
var translationProjectFeedbackNonConformityStore = Ext.create('Ext.data.Store', {
fields: [
{ name: 'first_day_period', type: 'string'},
...
...
@@ -34,33 +42,6 @@ Ext.onReady(function () {
}
});
var translationProjectFeedbackNonConformityProportionStore = Ext.create('Ext.data.Store', {
fields: [
{ name: 'category', type: 'string' },
{ name: 'count', type: 'int'}
],
autoLoad: true,
proxy: {
type: 'rest',
url: '/intranet-reporting/view', // This is the generic ]po[ REST interface
extraParams: {
format: 'json', // Ask for data in JSON format
limit: @diagram_limit@, // Limit the number of returned rows
report_code: '@diagram_report_code@', // The code of the data-source to retreive
start_date: '@start_date@',
end_date: '@end_date@',
period: '@period@'
},
reader: { type: 'json', root: 'data' } // Standard reader: Data are prefixed by "data".
}
});
// ////////////////////////////////////////////////
// CHART TYPES
//
<if @chart_type@ eq "column_chart">
var ticketAgingChart = new Ext.chart.Chart({
xtype: 'chart',
width: @diagram_width@,
...
...
@@ -98,6 +79,14 @@ Ext.onReady(function () {
style: {
opacity: 0.80
},
label: {
display: 'outside',
'text-anchor': 'middle',
field: ['number_projects', 'number_projects_non_conform'],
renderer: Ext.util.Format.numberRenderer('0'),
// orientation: 'horizontal',
color: '#333'
},
tips: {
trackMouse: false,
width: @diagram_tooltip_width@,
...
...
@@ -112,6 +101,27 @@ Ext.onReady(function () {
</if>
<elseif @chart_type@ eq "pie_chart">
var translationProjectFeedbackNonConformityProportionStore = Ext.create('Ext.data.Store', {
fields: [
{ name: 'category', type: 'string' },
{ name: 'count', type: 'int'}
],
autoLoad: true,
proxy: {
type: 'rest',
url: '/intranet-reporting/view', // This is the generic ]po[ REST interface
extraParams: {
format: 'json', // Ask for data in JSON format
limit: @diagram_limit@, // Limit the number of returned rows
report_code: '@diagram_report_code@', // The code of the data-source to retreive
start_date: '@start_date@',
end_date: '@end_date@',
period: '@period@'
},
reader: { type: 'json', root: 'data' } // Standard reader: Data are prefixed by "data".
}
});
chart = new Ext.chart.Chart({
width: @diagram_width@,
height: @diagram_height@,
...
...
@@ -154,6 +164,30 @@ Ext.onReady(function () {
</elseif>
<elseif @chart_type@ eq "line_chart">
var translationProjectFeedbackNonConformityStore = Ext.create('Ext.data.Store', {
fields: [
{ name: 'first_day_period', type: 'string'},
{ name: 'number_projects', type: 'int'},
{ name: 'number_projects_non_conform', type: 'int'},
{ name: 'percentage_non_conform', type: 'int'}
],
autoLoad: true,
proxy: {
type: 'rest',
url: '/intranet-reporting/view', // This is the generic ]po[ REST interface
extraParams: {
format: 'json', // Ask for data in JSON format
limit: @diagram_limit@, // Limit the number of returned rows
report_code: '@diagram_report_code@', // The code of the data-source to retreive
start_date: '@start_date@',
end_date: '@end_date@',
period: '@period@'
},
reader: { type: 'json', root: 'data' } // Standard reader: Data are prefixed by "data".
}
});
chart = new Ext.chart.Chart({
renderTo: @diagram_id@,
width: @diagram_width@,
...
...
lib/survey-component.tcl
View file @
3de8c145
...
...
@@ -67,7 +67,8 @@ if {$single_response_p == "t"} {
set button_label
"Submit response"
set edit_previous_response_p
"f"
}
else
{
set button_label
"Modify submited response"
# Review label
set button_label
"Submit response"
set edit_previous_response_p
"t"
}
set previous_responses_link
""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment