Skip to content

Commit

Permalink
Merge pull request #172 from amida-tech/feature/GREY-375
Browse files Browse the repository at this point in the history
GREY-375 product form, survey required
  • Loading branch information
bolak authored Aug 12, 2016
2 parents 377908f + 01dd63a commit 4fc97f9
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ angular.module('greyscale.tables')
sortable: 'surveyId',
dataFormat: 'option',
cellTemplate: '<span ng-if="option.id">{{option.title}} <small>(<span ng-show="option.isDraft" translate="SURVEYS.IS_DRAFT"></span><span ng-show="!option.isDraft" translate="SURVEYS.IS_COMPLETE"></span>)</small></span>',
//dataRequired: true,
dataPlaceholder: tns + 'SELECT_SURVEY',
//dataNoEmptyOption: true,
dataRequired: true,
dataSet: {
getData: _getSurveys,
keyField: 'id',
Expand Down Expand Up @@ -84,6 +86,7 @@ angular.module('greyscale.tables')
title: tns + 'STATUS',
dataFormat: 'option',
dataNoEmptyOption: true,
dataRequired: true,
dataSet: {
getData: _getStatus,
keyField: 'id',
Expand Down
2 changes: 1 addition & 1 deletion client/app/scripts/directives/modal-form-field.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ angular.module('greyscaleApp')
'ng-model="modalFormFieldModel" ng-required="modalFormField.dataRequired" gs-model-validate="modalFormField.dataValidate">';

var hiddenAttr = clmn.dataNoEmptyOption && !clmn.dataPlaceholder ? ' style="display: none" ' : '';
var disableAttr = clmn.dataNoEmptyOption ? ' disabled ' : '';
var disableAttr = clmn.dataNoEmptyOption || clmn.dataPlaceholder ? ' disabled ' : '';
var placeholderAttr = clmn.dataPlaceholder ? ' translate="' + clmn.dataPlaceholder + '" ' : '';
field += '<option value="" ' + hiddenAttr + disableAttr + placeholderAttr + '></option>';
field += '</select>';
Expand Down
1 change: 1 addition & 0 deletions client/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,7 @@
"PAUSE_PRODUCT": "Suspend Project",
"PLANNING_NOT_FINISH": "Planning not finished yet. Please, set Survey, Subjects, Workflow Steps and Tasks for this Project.",
"PRODUCT": "Project",
"SELECT_SURVEY": "Select survey...",
"SETTINGS": "Settings",
"START_PRODUCT": "Start Project",
"STATUS": "Status",
Expand Down
1 change: 1 addition & 0 deletions client/i18n/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,7 @@
"PAUSE_PRODUCT": "",
"PLANNING_NOT_FINISH": "",
"PRODUCT": "",
"SELECT_SURVEY": "",
"SETTINGS": "",
"START_PRODUCT": "",
"STATUS": "",
Expand Down
1 change: 1 addition & 0 deletions client/i18n/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,7 @@
"PAUSE_PRODUCT": "",
"PLANNING_NOT_FINISH": "",
"PRODUCT": "",
"SELECT_SURVEY": "",
"SETTINGS": "",
"START_PRODUCT": "",
"STATUS": "",
Expand Down
1 change: 1 addition & 0 deletions client/i18n/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,7 @@
"PAUSE_PRODUCT": "Приостановить проект",
"PLANNING_NOT_FINISH": "Планирование не окончено",
"PRODUCT": "Проект",
"SELECT_SURVEY": "",
"SETTINGS": "Настройки",
"START_PRODUCT": "Запустить проект",
"STATUS": "Состояние",
Expand Down

0 comments on commit 4fc97f9

Please sign in to comment.