From 48e1b02e0e7ef1ec758a7ab1a3c08c34351d587a Mon Sep 17 00:00:00 2001 From: Carlosokumu Date: Mon, 2 Dec 2024 20:50:21 +0300 Subject: [PATCH] allow all item profile edit --- services/registration/edit_family_name.vis | 7 ++++--- services/registration/edit_first_name.vis | 6 +++--- services/registration/edit_location.vis | 5 +++-- services/registration/edit_offerings.vis | 5 +++-- services/registration/edit_profile.vis | 2 +- services/registration/edit_yob.vis | 6 ++++-- services/registration/profile_update_success.vis | 2 ++ services/registration/set_female.vis | 5 +++-- services/registration/set_male.vis | 5 +++-- services/registration/set_unspecified.vis | 5 +++-- services/registration/update_profile_items.vis | 3 +++ 11 files changed, 32 insertions(+), 19 deletions(-) create mode 100644 services/registration/update_profile_items.vis diff --git a/services/registration/edit_family_name.vis b/services/registration/edit_family_name.vis index 1d71939..adcede1 100644 --- a/services/registration/edit_family_name.vis +++ b/services/registration/edit_family_name.vis @@ -1,10 +1,11 @@ -CATCH incorrect_pin flag_incorrect_pin 1 CATCH update_familyname flag_allow_update 1 LOAD get_current_profile_info 0 RELOAD get_current_profile_info +MAP get_current_profile_info MOUT back 0 +LOAD save_familyname 64 HALT -LOAD save_familyname 0 RELOAD save_familyname INCMP _ 0 -INCMP pin_entry * +CATCH pin_entry flag_familyname_set 1 +INCMP select_gender * diff --git a/services/registration/edit_first_name.vis b/services/registration/edit_first_name.vis index b8dab5a..d230945 100644 --- a/services/registration/edit_first_name.vis +++ b/services/registration/edit_first_name.vis @@ -1,11 +1,11 @@ -CATCH incorrect_pin flag_incorrect_pin 1 CATCH update_firstname flag_allow_update 1 LOAD get_current_profile_info 0 RELOAD get_current_profile_info MAP get_current_profile_info +LOAD save_firstname 128 MOUT back 0 HALT -LOAD save_firstname 0 RELOAD save_firstname INCMP _ 0 -INCMP pin_entry * +CATCH pin_entry flag_firstname_set 1 +INCMP edit_family_name * diff --git a/services/registration/edit_location.vis b/services/registration/edit_location.vis index eaf248a..c9bc12d 100644 --- a/services/registration/edit_location.vis +++ b/services/registration/edit_location.vis @@ -2,9 +2,10 @@ CATCH incorrect_pin flag_incorrect_pin 1 CATCH update_location flag_allow_update 1 LOAD get_current_profile_info 0 RELOAD get_current_profile_info +LOAD save_location 16 MOUT back 0 HALT -LOAD save_location 0 RELOAD save_location INCMP _ 0 -INCMP pin_entry * +CATCH pin_entry flag_location_set 1 +INCMP edit_offerings * diff --git a/services/registration/edit_offerings.vis b/services/registration/edit_offerings.vis index dad3193..f95c2ae 100644 --- a/services/registration/edit_offerings.vis +++ b/services/registration/edit_offerings.vis @@ -2,9 +2,10 @@ CATCH incorrect_pin flag_incorrect_pin 1 CATCH update_offerings flag_allow_update 1 LOAD get_current_profile_info 0 RELOAD get_current_profile_info -LOAD save_offerings 0 +LOAD save_offerings 8 MOUT back 0 HALT RELOAD save_offerings INCMP _ 0 -INCMP pin_entry * +CATCH pin_entry flag_offerings_set 1 +INCMP update_profile_items * diff --git a/services/registration/edit_profile.vis b/services/registration/edit_profile.vis index af20e0f..dff221b 100644 --- a/services/registration/edit_profile.vis +++ b/services/registration/edit_profile.vis @@ -11,7 +11,7 @@ MOUT edit_offerings 6 MOUT view 7 MOUT back 0 HALT -INCMP my_account 0 +INCMP ^ 0 INCMP edit_first_name 1 INCMP edit_family_name 2 INCMP select_gender 3 diff --git a/services/registration/edit_yob.vis b/services/registration/edit_yob.vis index 6a5abe0..d0fbcee 100644 --- a/services/registration/edit_yob.vis +++ b/services/registration/edit_yob.vis @@ -8,7 +8,9 @@ HALT LOAD verify_yob 6 RELOAD verify_yob CATCH incorrect_date_format flag_incorrect_date_format 1 -LOAD save_yob 0 +LOAD save_yob 32 RELOAD save_yob INCMP _ 0 -INCMP pin_entry * +CATCH pin_entry flag_yob_set 1 +INCMP edit_location * + diff --git a/services/registration/profile_update_success.vis b/services/registration/profile_update_success.vis index a035093..f670e6e 100644 --- a/services/registration/profile_update_success.vis +++ b/services/registration/profile_update_success.vis @@ -1,3 +1,5 @@ +LOAD update_all_profile_items 0 +RELOAD update_all_profile_items MOUT back 0 MOUT quit 9 HALT diff --git a/services/registration/set_female.vis b/services/registration/set_female.vis index e211ada..d1d38bd 100644 --- a/services/registration/set_female.vis +++ b/services/registration/set_female.vis @@ -1,4 +1,5 @@ -LOAD save_gender 0 +LOAD save_gender 32 CATCH incorrect_pin flag_incorrect_pin 1 CATCH update_gender flag_allow_update 1 -MOVE pin_entry +CATCH pin_entry flag_gender_set 1 +MOVE edit_yob diff --git a/services/registration/set_male.vis b/services/registration/set_male.vis index e211ada..e718dfc 100644 --- a/services/registration/set_male.vis +++ b/services/registration/set_male.vis @@ -1,4 +1,5 @@ -LOAD save_gender 0 +LOAD save_gender 16 CATCH incorrect_pin flag_incorrect_pin 1 CATCH update_gender flag_allow_update 1 -MOVE pin_entry +CATCH pin_entry flag_gender_set 1 +MOVE edit_yob diff --git a/services/registration/set_unspecified.vis b/services/registration/set_unspecified.vis index e211ada..e5cfca8 100644 --- a/services/registration/set_unspecified.vis +++ b/services/registration/set_unspecified.vis @@ -1,4 +1,5 @@ -LOAD save_gender 0 +LOAD save_gender 8 CATCH incorrect_pin flag_incorrect_pin 1 CATCH update_gender flag_allow_update 1 -MOVE pin_entry +CATCH pin_entry flag_gender_set 1 +MOVE edit_yob diff --git a/services/registration/update_profile_items.vis b/services/registration/update_profile_items.vis new file mode 100644 index 0000000..beda013 --- /dev/null +++ b/services/registration/update_profile_items.vis @@ -0,0 +1,3 @@ +CATCH incorrect_pin flag_incorrect_pin 1 +CATCH profile_update_success flag_allow_update 1 +MOVE pin_entry