Skip to content

Commit ee24bbe

Browse files
author
kymni
committed
Merge branch 'release/1.9.28'
2 parents 768a1ec + 7e1159b commit ee24bbe

30 files changed

+529
-511
lines changed

Dashboard/app/css/main.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3338,7 +3338,6 @@ div.chooseSurveyData {
33383338
}
33393339

33403340
.filterData {
3341-
border: thin solid rgb(224, 224, 224);
33423341
border-top: 1px solid white;
33433342
.dataDeviceId {
33443343
display: block;

Dashboard/app/js/lib/controllers/permissions.js

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,6 @@ FLOW.dialogControl = Ember.Object.create({
271271
delDeviceGroup: "delDeviceGroup",
272272
delSI: "delSI",
273273
delSI2: "delSI2",
274-
delSL: "delSL",
275274
delCR: "delCR",
276275
delForm: "delForm",
277276
showDialog: false,
@@ -336,12 +335,6 @@ FLOW.dialogControl = Ember.Object.create({
336335
this.set('showDialog', true);
337336
break;
338337

339-
case "delSL":
340-
this.set('header', Ember.String.loc('_delete_data_point_header'));
341-
this.set('message', Ember.String.loc('_are_you_sure_delete_this_data_point'));
342-
this.set('showDialog', true);
343-
break;
344-
345338
case "delForm":
346339
this.set('header', "Delete form");
347340
this.set('message', "Are you sure you want to delete this form?");
@@ -402,12 +395,7 @@ FLOW.dialogControl = Ember.Object.create({
402395
this.set('showDialog', false);
403396
view.deleteSI.apply(view, arguments);
404397
break;
405-
406-
case "delSL":
407-
this.set('showDialog', false);
408-
view.deleteSL.apply(view, arguments);
409-
break;
410-
398+
411399
case "delForm":
412400
this.set('showDialog', false);
413401
FLOW.surveyControl.deleteForm();

Dashboard/app/js/lib/controllers/survey-controllers.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,7 @@ FLOW.projectControl = Ember.ArrayController.create({
585585
currentForm.set('code', name);
586586
var path = this.get('currentProjectPath') + "/" + name;
587587
currentForm.set('path', path);
588+
currentForm.set('status', 'NOT_PUBLISHED');
588589
}
589590

590591
FLOW.store.commit();

Dashboard/app/js/lib/views/data/monitoring-data-table-view.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,6 @@ FLOW.DataPointView = FLOW.View.extend({
110110

111111
showDataApprovalBlock: false,
112112

113-
showSurveyedLocaleDeleteButton: function() {
114-
return FLOW.router.surveyedLocaleController.get('userCanDelete');
115-
}.property(),
116-
117113
showApprovalStatusColumn: function () {
118114
return this.get('parentView').get('showApprovalStatusColumn');
119115
}.property(),

Dashboard/app/js/lib/views/surveys/question-view.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ FLOW.QuestionView = FLOW.View.extend({
300300
var path, anyActive, first, dependentQuestionAnswer, minVal, maxVal, options, found, optionsToDelete;
301301

302302
if (this.questionIdValidationFailure) {
303-
this.showMessageDialog(Ember.String.loc('_question_id_must_be_valid_and_unique'), this.questionIdValidationFailureReason);
303+
this.showMessageDialog(Ember.String.loc('_variable_name_must_be_valid_and_unique'), this.questionIdValidationFailureReason);
304304
return;
305305
}
306306

@@ -458,9 +458,9 @@ FLOW.QuestionView = FLOW.View.extend({
458458
var questionKeyId = selectedQuestion.get('keyId');
459459
var questionId = this.get('questionId') || "";
460460
if (FLOW.Env.mandatoryQuestionID && questionId.match(/^\s*$/)) {
461-
args.failure(Ember.String.loc('_question_id_mandatory'));
461+
args.failure(Ember.String.loc('_variable_name_mandatory'));
462462
} else if (!questionId.match(/^[A-Za-z0-9_\-]*$/)) {
463-
args.failure(Ember.String.loc('_question_id_only_alphanumeric'))
463+
args.failure(Ember.String.loc('_variable_name_only_alphanumeric'))
464464
} else {
465465
var monitoring = this.isPartOfMonitoringGroup(questionKeyId);
466466
if (monitoring) {
@@ -477,7 +477,7 @@ FLOW.QuestionView = FLOW.View.extend({
477477
}
478478
},
479479
error: function() {
480-
args.failure(Ember.String.loc('_could_not_validate_question_id_with_server'));
480+
args.failure(Ember.String.loc('_could_not_validate_variable_name_with_server'));
481481
}
482482
});
483483
}, 1000);
@@ -495,7 +495,7 @@ FLOW.QuestionView = FLOW.View.extend({
495495
if (isUnique) {
496496
args.success();
497497
} else {
498-
args.failure('the question id is not unique');
498+
args.failure(Ember.String.loc('_variable_name_not_unique'));
499499
}
500500
}
501501
}

Dashboard/app/js/templates/navData/data-subnav.handlebars

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
{{#view view.NavItemView item="inspectData" }}
33
<a {{action doInspectData}}>{{t _inspect_data}}</a>
44
{{/view}}
5+
{{#if FLOW.Env.showMonitoringFeature}}
6+
{{#view view.NavItemView item="monitoringData" }}
7+
<a {{action doMonitoringData}}>{{t _monitoring}}</a>
8+
{{/view}}
9+
{{/if}}
510
{{#view view.NavItemView item="bulkUpload" }}
611
<a {{action doBulkUpload}}>{{t _bulk_upload_data}}</a>
712
{{/view}}
@@ -10,11 +15,6 @@
1015
<a {{action doDataCleaning}}>{{t _data_cleaning}}</a>
1116
{{/if}}
1217
{{/view}}
13-
{{#if FLOW.Env.showMonitoringFeature}}
14-
{{#view view.NavItemView item="monitoringData" }}
15-
<a {{action doMonitoringData}}>{{t _monitoring}}</a>
16-
{{/view}}
17-
{{/if}}
1818
{{#view view.NavItemView item="cascadeResources" }}
1919
{{#if view.showCascadeResourcesButton}}
2020
<a {{action doCascadeResources}}>{{t _cascade_resources}}</a>

Dashboard/app/js/templates/navData/monitoring-data-row.handlebars

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,6 @@
1414

1515
<td class="action">
1616
<a {{action showDetailsDialog this target="view.parentView" }}>{{t _view_details}}</a>
17-
18-
{{#if view.showSurveyedLocaleDeleteButton }}
19-
{{#view FLOW.DataLocaleItemView contentBinding="this"}}
20-
<a {{action confirm FLOW.dialogControl.delSL target="FLOW.dialogControl" }}>{{t _delete}}</a>
21-
{{/view}}
22-
{{/if}}
2317
</td>
2418
</tr>
2519

Dashboard/app/js/templates/navData/monitoring-data.handlebars

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,6 @@
9393
<a {{action showSurveyInstanceDetails SI target="this"}}>
9494
{{t _view_details}}
9595
</a>
96-
{{#if view.showSurveyedLocaleDeleteButton }} {{#view FLOW.DataItemView contentBinding="SI"}}<a {{action confirm FLOW.dialogControl.delSI2 target="FLOW.dialogControl" }}>
97-
{{t _delete}}
98-
</a>{{/view}} {{/if}}
9996
</td>
10097
</tr>
10198
<tr class="si_details" style="background: #fff; display:none;" data-flow-id="si_details_{{unbound SI.id}}">

Dashboard/app/js/templates/navSurveys/question-view.handlebars

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
{{/if}}
1515
{{view Ember.TextField valueBinding="view.tip" size=100 }} </label>
1616
<label>
17-
{{t _question_id}}: <span class="fadedText">({{t _optional}})</span> {{tooltip _question_id_tooltip}}
17+
{{t _variable_name}}: <span class="fadedText">({{t _optional}})</span> {{tooltip _variable_name_tooltip}}
1818
{{#if view.questionIdValidationFailure }}
1919
<span style="color:red">{{view.questionIdValidationFailureReason}}</span>
2020
{{/if}}
@@ -167,7 +167,11 @@
167167
<!-- End question specific material -->
168168
<nav>
169169
<ul>
170+
{{#if view.questionIdValidationFailure }}
171+
<li><a class="button noChanges" id="standardBtn_01">{{t _save_question}}</a> </li>
172+
{{else}}
170173
<li><a class="button" id="standardBtn_01" {{action "doSaveEditQuestion" target="this"}}>{{t _save_question}}</a> </li>
174+
{{/if}}
171175
<li><a class="cancel" id="standardBtn_01" {{action "doCancelEditQuestion" target="this"}}>{{t _cancel}}</a> </li>
172176
</ul>
173177
</nav>

GAE/src/com/gallatinsystems/common/util/JFreechartChartUtil.java

Lines changed: 0 additions & 64 deletions
This file was deleted.

0 commit comments

Comments
 (0)