Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

Commit

Permalink
PT-2963: Make language and look of the Push modal more user friendly
Browse files Browse the repository at this point in the history
More dialog modifications
  • Loading branch information
veronikaslc committed Feb 21, 2017
1 parent f98d725 commit a975ee3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
@@ -1,7 +1,6 @@
phenotips.patientSharing.push.dialog.authentication.label=Log in to __serverID__
phenotips.patientSharing.push.dialog.authentication.hint=Please log in to __serverID__ using your __serverID__ username and password.
phenotips.patientSharing.push.dialog.remoteGroup.label=Would you like to add this patient to one of __serverID__ groups?
phenotips.patientSharing.push.dialog.remoteGroup.hint=If a group is selected, the group will be marked as the owner of the patient record and you will be marked as a collaborator. If no group is selected you will be marked as the owner of the patient record.
phenotips.patientSharing.push.dialog.remoteGroup.label=Who should be the owner of the patient record(s) on __serverID__?
phenotips.patientSharing.push.dialog.preview.label=Patient data preview
phenotips.patientSharing.push.dialog.preview.hint=Please review the data that will be sent to the server.
phenotips.patientSharing.push.dialog.confirmation.label=I agree to push selected patient data to
Expand Down Expand Up @@ -33,7 +32,6 @@ phenotips.PushPatient.noPassword=No password provided
phenotips.PushPatient.addAnotherUser=Another __serverID__ user:
phenotips.PushPatient.cantAuthorizeUser=Unable to authorize user: incorrect credentials
phenotips.PushPatient.noGroupMessage=None
phenotips.PushPatient.noGroupMessageHint=(user __lastApprovedUser__ does not belong to any PhenoTips groups on the selected server)
phenotips.PushPatient.keepGroupMessage=Keep existing group(s)
phenotips.PushPatient.keepGroupMessageHint=(the group can't be changed when updating an existing patient)
phenotips.PushPatient.dataPreviewIdentifier=Identifier
Expand Down
Expand Up @@ -717,6 +717,11 @@
else {
this._userGroupsList = groupList;
}
if (groupList.length == 0) {
$('group-selection').hide();
} else {
$('group-selection').show();
}
console.log("Groups: " + stringifyObject(groupList));

var groupListElement = new Element('table', {id : 'user-list'});
Expand All @@ -734,11 +739,7 @@

if (!this._updatingExistingPatient()) {
var noGroupMessage = "<span class ='hint'>$services.localization.render('phenotips.PushPatient.noGroupMessage')</span>";
if (groupList.length == 0) {
noGroupMessage += " $services.localization.render('phenotips.PushPatient.noGroupMessageHint')".replace("__lastApprovedUser__", this._lastApprovedUser);
}
groupListElement.insert(_addGroupOption(true, "user", noGroupMessage, "__self"));

groupList.each(function (group) {
groupListElement.insert(_addGroupOption(false, "group", group, group));
});
Expand Down

0 comments on commit a975ee3

Please sign in to comment.