Commit a1f43fa6 by Brian Talbot Committed by David Baumgold

Studio: revises prompt messages for team roles UI

parent 21318d14
...@@ -186,11 +186,11 @@ ...@@ -186,11 +186,11 @@
var email = $('#user-email-input').val().trim(); var email = $('#user-email-input').val().trim();
if(!email) { if(!email) {
var msg = new CMS.Views.Prompt.Error({ var msg = new CMS.Views.Prompt.Error({
title: gettext("Email required"), title: gettext("A valid email address is required"),
message: gettext("You must enter an email address"), message: gettext("You must enter a valid email address in order to add a new team member"),
actions: { actions: {
primary: { primary: {
text: gettext("OK"), text: gettext("Return and add email address"),
click: function(view) { click: function(view) {
view.hide(); view.hide();
$("#user-email-input").focus(); $("#user-email-input").focus();
...@@ -203,11 +203,11 @@ ...@@ -203,11 +203,11 @@
} }
if(_.contains(staffEmails, email)) { if(_.contains(staffEmails, email)) {
var msg = new CMS.Views.Prompt.Warning({ var msg = new CMS.Views.Prompt.Warning({
title: gettext("User is already on team"), title: gettext("Already a course team member"),
message: gettext("This user is already on the course team"), message: _.template(gettext("{email} is already on the {course} team. If you're trying to add a new member, please double-check the email address you provided."), {email: email, course: section.get('name')}, {interpolate: /\{(.+?)\}/g}),
actions: { actions: {
primary: { primary: {
text: gettext("OK"), text: gettext("Return to team listing"),
click: function(view) { click: function(view) {
view.hide(); view.hide();
$("#user-email-input").focus(); $("#user-email-input").focus();
...@@ -361,11 +361,11 @@ ...@@ -361,11 +361,11 @@
message = "Unknown"; message = "Unknown";
} }
var prompt = new CMS.Views.Prompt.Error({ var prompt = new CMS.Views.Prompt.Error({
title: gettext("Error changing user"), title: gettext("There was an error changing the user's role"),
message: message, message: message,
actions: { actions: {
primary: { primary: {
text: gettext("OK"), text: gettext("Try Again"),
click: function(view) { click: function(view) {
view.hide(); view.hide();
} }
......
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