diff --git a/docs/generated-js/competencies.us.js b/docs/generated-js/competencies.us.js index 46d3210..df3089f 100644 --- a/docs/generated-js/competencies.us.js +++ b/docs/generated-js/competencies.us.js @@ -20398,14 +20398,22 @@ WelcomeScreen = (function(WelcomeScreen){ $("#frameworkManagementBtn").click(function(){ ScreenManager.changeScreen(new CassEditorScreen()); + if (!AppController.loginController.getLoggedIn()) + alert("As you are not logged in, you will be restricted to viewing frameworks only."); }); + if (!AppController.loginController.getLoggedIn()) + $("#competencyAlignmentBtn").addClass("disabled"); + $("#competencyAlignmentBtn").click(function(){ - ScreenManager.changeScreen(new AlignmentEditorScreen()); + if (!AppController.loginController.getLoggedIn()) + alert("You should log in before attempting to align competencies."); + else + ScreenManager.changeScreen(new AlignmentEditorScreen()); }); $("#learnerProfilesBtn").click(function(){ - ScreenManager.changeScreen(new AssertionSearchScreen()); + alert("Not yet implemented."); }); }; diff --git a/docs/partial/screen/welcome.html b/docs/partial/screen/welcome.html index 1a39963..d842355 100644 --- a/docs/partial/screen/welcome.html +++ b/docs/partial/screen/welcome.html @@ -27,7 +27,7 @@
How will you use competencies?
- diff --git a/src/main/js/screen/WelcomeScreen.js b/src/main/js/screen/WelcomeScreen.js index 3078728..8d9ec27 100644 --- a/src/main/js/screen/WelcomeScreen.js +++ b/src/main/js/screen/WelcomeScreen.js @@ -7,14 +7,22 @@ WelcomeScreen = (function(WelcomeScreen){ $("#frameworkManagementBtn").click(function(){ ScreenManager.changeScreen(new CassEditorScreen()); + if (!AppController.loginController.getLoggedIn()) + alert("As you are not logged in, you will be restricted to viewing frameworks only."); }); + if (!AppController.loginController.getLoggedIn()) + $("#competencyAlignmentBtn").addClass("disabled"); + $("#competencyAlignmentBtn").click(function(){ - ScreenManager.changeScreen(new AlignmentEditorScreen()); + if (!AppController.loginController.getLoggedIn()) + alert("You should log in before attempting to align competencies."); + else + ScreenManager.changeScreen(new AlignmentEditorScreen()); }); $("#learnerProfilesBtn").click(function(){ - ScreenManager.changeScreen(new AssertionSearchScreen()); + alert("Not yet implemented."); }); }; diff --git a/src/main/webapp/partial/screen/welcome.html b/src/main/webapp/partial/screen/welcome.html index 1a39963..d842355 100644 --- a/src/main/webapp/partial/screen/welcome.html +++ b/src/main/webapp/partial/screen/welcome.html @@ -27,7 +27,7 @@
How will you use competencies?
-