diff --git a/Class registration System - Admin documentation.docx b/Class registration System - Admin documentation.docx new file mode 100644 index 0000000..9f2ef06 Binary files /dev/null and b/Class registration System - Admin documentation.docx differ diff --git a/src/classes/C501_CTRL_ClassReg_CreateAcct.cls b/src/classes/C501_CTRL_ClassReg_CreateAcct.cls index 85facea..a4d6c9f 100644 --- a/src/classes/C501_CTRL_ClassReg_CreateAcct.cls +++ b/src/classes/C501_CTRL_ClassReg_CreateAcct.cls @@ -7,16 +7,30 @@ public class C501_CTRL_ClassReg_CreateAcct { public Account family {get; set;} public String pageStatus {get; set;} public ID loginID {get; set;} - public String schoolName {get; set;} public Account schoolNameText {get; set;} public Boolean dontKnowId {get; set;} public Boolean noAllergies {get; set;} + + public String schoolName { + get{ + if(schoolName == null){ + system.debug('rerunning schoolName get line 18'); + schoolName = ''; + } + system.debug('returning school name'); + return schoolName; + } + set; + } + public String schoolRegion { get{ if(schoolRegion == null){ + system.debug('rerunning schoolRegion get line 18'); schoolRegion = ''; } + system.debug('returning school region'); return schoolRegion; } set; @@ -36,9 +50,11 @@ public class C501_CTRL_ClassReg_CreateAcct { public List schoolList { get { if(schoolList == null ){ + system.debug('rerunning schoolList get line 41'); schoolList = getSelectOptionsActiveSchools(schoolRegion); } System.debug('List schoolList run: ' + schoolList); + system.debug('returning schoolList'); return schoolList; } set; } @@ -49,6 +65,7 @@ public class C501_CTRL_ClassReg_CreateAcct { public List childFieldSet {get; set;} public C501_CTRL_ClassReg_CreateAcct(){ + language = ApexPages.currentPage().getParameters().get('l'); if(language == null){ language = 'en_US'; @@ -113,6 +130,7 @@ public class C501_CTRL_ClassReg_CreateAcct { noStuID = false; noAllergyResp = false; needPickup = false; + schoolregion = ''; Map FsAcctMap = Schema.SObjectType.Account.fieldSets.getMap(); Map FsContMap = Schema.SObjectType.Contact.fieldSets.getMap(); @@ -335,7 +353,7 @@ public class C501_CTRL_ClassReg_CreateAcct { passValidation = false; ApexPages.addMessage(new ApexPages.message(ApexPages.severity.ERROR,Label.C501_ClassReg_PhoneFail) ); } - + system.debug( 'SchoolName after validation attempts: ' + schoolName ); if(passValidation == false){ return null; } @@ -392,8 +410,10 @@ public class C501_CTRL_ClassReg_CreateAcct { teacherName = teacherName + schoolNameText.npe5__Affiliations__r[i].npe5__Contact__r.FirstName + ' ' +schoolNameText.npe5__Affiliations__r[i].npe5__Contact__r.LastName; } - - String nextStartDate = Datetime.newInstance(schoolNameText.C501_Next_Program_Start_Date__c, Time.newInstance(0,0,0,0)).format('MMMMM d, yyyy'); + String nextStartDate = ''; + if(schoolNameText.C501_Next_Program_Start_Date__c != null){ + nextStartDate = Datetime.newInstance(schoolNameText.C501_Next_Program_Start_Date__c, Time.newInstance(0,0,0,0)).format('MMMMM d, yyyy'); + } String emailMessage = Label.C501_RegSite_ConfirmSMS+' '+schoolNameText.Name +Label.C501_RegSite_EmailConfirmP2+' '+nextStartDate+' '+Label.C501_RegSite_EmailConfirmP3+' '+teacherName+Label.C501_RegSite_EmailConfirmP4; C501_UTIL_ClassRegUtilities.SendEmailGeneric('salesforce@techbridgegirls.org',parent.Email,Label.C501_RegSite_ConfirmSMS+' '+schoolNameText.Name,emailMessage); @@ -416,6 +436,7 @@ public class C501_CTRL_ClassReg_CreateAcct { } public static List getListOfActiveSchools(String regionFilter){ + system.debug('rerunning getListOfActiveSchools line 424'); Id schoolRecordType = [select id from Recordtype where Name='School'].Id; List schoolList = new List(); schoolList = [ @@ -430,6 +451,7 @@ public class C501_CTRL_ClassReg_CreateAcct { ORDER BY School_District_Lookup__r.Name, Name ]; if(schoolList.size() == 0){ + system.debug('first query returned null, pulling whole list'); schoolList = [ SELECT id, Name, diff --git a/src/objects/Class_Site_Login_Attempt__c.object b/src/objects/Class_Site_Login_Attempt__c.object index e3e0c52..9276f3c 100644 --- a/src/objects/Class_Site_Login_Attempt__c.object +++ b/src/objects/Class_Site_Login_Attempt__c.object @@ -139,7 +139,9 @@ Tracks logins to the Class Registration Site. All NAME + Account__c Login_IP_Address__c + Code_Sent_To__c Secret_Code__c SMS_Timestamp__c Everything diff --git a/src/package.xml b/src/package.xml index d6d6d75..ed3e01b 100644 --- a/src/package.xml +++ b/src/package.xml @@ -59,7 +59,6 @@ Contact.Parent_Education_second_parent__c Contact.Parent_Education_second_parent__c Contact.Preferred_Method_of_Contact__c - Contact.Preferred_Method_of_Contact__c Contact.Race__c Contact.Student_Special_Needs__c Contact.Student_Transportation__c @@ -211,7 +210,7 @@ CustomObject - Class_Registration_data + * Dashboard @@ -231,7 +230,11 @@ ListView - Class_Reg_s_by_Signup_Method_This_Year + C501_Registration_Site_User + PermissionSet + + + * Report diff --git a/src/pages/C501_ClassReg_CreateAcct.page b/src/pages/C501_ClassReg_CreateAcct.page index e362503..3b7d276 100644 --- a/src/pages/C501_ClassReg_CreateAcct.page +++ b/src/pages/C501_ClassReg_CreateAcct.page @@ -171,21 +171,22 @@
- +
- +
- + +
Error: {! $Label.C501_ClassReg_PlzSelectOne } @@ -195,7 +196,7 @@
- + @@ -660,8 +661,8 @@
- - + @@ -680,8 +681,8 @@ - - +
@@ -1109,9 +1110,26 @@
--> diff --git a/src/permissionsets/C501_Registration_Site_User.permissionset b/src/permissionsets/C501_Registration_Site_User.permissionset new file mode 100644 index 0000000..1127abb --- /dev/null +++ b/src/permissionsets/C501_Registration_Site_User.permissionset @@ -0,0 +1,434 @@ + + + + false + Account.C501_Class_Site_Mobile_Number_Lookup__c + true + + + false + Account.C501_Class_Site_Mobile_Number__c + true + + + false + Account.C501_Next_program_start_date__c + true + + + false + Account.Primary_Teacher__c + false + + + false + Account.Region__c + true + + + false + Account.Secondary_Teacher__c + false + + + false + Account.Teachers_at_Site__c + false + + + true + Class_Site_Login_Attempt__c.Account__c + true + + + true + Class_Site_Login_Attempt__c.Code_Sent_To__c + true + + + true + Class_Site_Login_Attempt__c.Login_Attempts__c + true + + + true + Class_Site_Login_Attempt__c.Login_IP_Address__c + true + + + true + Class_Site_Login_Attempt__c.SMS_Timestamp__c + true + + + true + Class_Site_Login_Attempt__c.Secret_Code__c + true + + + true + Class_Site_Login_Attempt__c.Verified__c + true + + + true + Contact.Allergies__c + true + + + true + Contact.Alternate_Contact_Name__c + true + + + true + Contact.Alternate_Contact_Phone__c + true + + + true + Contact.Alternate_Contact_Relationship__c + true + + + true + Contact.Authorized_Pickup_1_Name__c + true + + + true + Contact.Authorized_Pickup_1_Phone__c + true + + + true + Contact.Authorized_Pickup_1_Relationship__c + true + + + true + Contact.Authorized_Pickup_2_Name__c + true + + + true + Contact.Authorized_Pickup_2_Phone__c + true + + + true + Contact.Authorized_Pickup_2_Relationship__c + true + + + true + Contact.Authorized_Pickup_3_Name__c + true + + + true + Contact.Authorized_Pickup_3_Phone__c + true + + + true + Contact.Authorized_Pickup_3_Relationship__c + true + + + true + Contact.Emergency_Contact_2_Name__c + true + + + true + Contact.Emergency_Contact_2_Phone__c + true + + + true + Contact.Emergency_Contact_2_Relationship__c + true + + + true + Contact.Emergency_Preferred_Medical_Provider__c + true + + + true + Contact.Income__c + true + + + true + Contact.Medication__c + true + + + true + Contact.Number_in_Household_Picklist__c + true + + + false + Contact.Number_in_Household__c + false + + + true + Contact.Parent_Education__c + true + + + true + Contact.Parent_Education_second_parent__c + true + + + true + Contact.Preferred_Method_of_Contact__c + true + + + true + Contact.Race__c + true + + + true + Contact.Student_Special_Needs__c + true + + + true + Contact.Student_Transportation__c + true + + + true + Contact.T_shirt_Size__c + true + + + true + Contact.Translation_Needed__c + true + + + true + Contact.Volunteer_Roles_Interest__c + true + + + false + Contact.Volunteer__c + false + + + false + School_Term__c.Active_Year__c + true + + + true + School_Term__c.Authorization_to_treat_minor__c + true + + + true + School_Term__c.C501_Sign_Up_Source__c + true + + + true + School_Term__c.Contract__c + true + + + false + School_Term__c.Current_Term__c + true + + + false + School_Term__c.Emergency_Preferred_Medical_Provider__c + true + + + true + School_Term__c.Evaluation_Consent__c + true + + + false + School_Term__c.Family_Income_Level__c + true + + + true + School_Term__c.Free_reduced_lunch__c + true + + + true + School_Term__c.Left_Program_Early_Date__c + true + + + true + School_Term__c.Left_Program_Early__c + true + + + true + School_Term__c.Media_Release__c + true + + + true + School_Term__c.Notes__c + true + + + false + School_Term__c.Parent_Email__c + true + + + true + School_Term__c.Parent_Packet_URL_Unsigned__c + true + + + true + School_Term__c.Parent_Packet_URL__c + true + + + true + School_Term__c.Parent_Packet__c + true + + + true + School_Term__c.Parent_Survey__c + true + + + true + School_Term__c.Parent__c + true + + + true + School_Term__c.Post_Survey__c + true + + + true + School_Term__c.Pre_Survey__c + true + + + true + School_Term__c.Program_Day__c + true + + + false + School_Term__c.School_Region__c + true + + + true + School_Term__c.School_Year__c + true + + + true + School_Term__c.Start_Date__c + true + + + true + School_Term__c.Student_School_ID__c + true + + + true + School_Term__c.Waiver__c + true + + false + + Salesforce + + false + false + false + true + false + Account + false + + + true + false + true + true + false + Class_Site_Login_Attempt__c + true + + + false + false + false + true + false + Contact + false + + + true + false + false + true + false + School_Term__c + false + + + C501_ClassRegSiteTemplate + true + + + C501_ClassReg_CreateAcct + true + + + C501_ClassReg_Login + true + + + C501_ClassReg_SelectLang + true + + + Account.HH_Account + true + + + Account.School + true + + + Contact.Parent + true + + + Contact.Student + true + +