RDN-1235
1

UnRetire Profile

Scott on 10/7/2015 9:00 PM

Scott on 12/21/2015 2:20 AM

%
(hrs)
Logged

0 (hrs)


 Description

Users need to be able to unretire their profile too.  You built the ability to retire the profile, now you need to add the unretire account.

  1. Under the League > Account menu.
  2. Retire your profile.
  3. When a user has Retired their profile.
  4. A link should now show up on the account menu, where the Retire Profile link is shown.  "UnRetire Your Profile"
  5. When clicked on, they should be brought to a page that allows them to UnRetire their account.  Just how Retire account works.
  6. This new page shall have the following text

Header: UnRetire profile of "Derby Name".

Body:

By unretiring your account, you are bringing your profile and information back onto RDNation. Do you want to UnRetire Your Profile?

  1. The same functionality should happen with the Retire Your Profile view.
  2. A notification should appear: UnRetire Successful
  3. The button should confirm that the user wants to unretire.
  4. The button should disappear when clicked.
  5. The button should be green instead of red.

 

 

need to be able to unretire profile.

Skip Navigation Links
 

Pradeep Sunday, December 20, 2015 8:55 AM #

Scott, As per given comment for the code which is needed to put into .js method and call from View which has been done so please review and put your comments if any.

Note:- 1 comment there to remove commented from layout which had been already removed in previuos commit.

 

 

Scott Tuesday, December 08, 2015 2:33 AM #

Please review the 2 comments here and commit the changes needed.

https://bitbucket.org/rdnation/rdnation/commits/99275943939e57c9dc6c27f173b3c89ba1c13b85

 

Scott Sunday, November 29, 2015 4:39 PM #

Refreshing the page is fine with me.  The new link doesn't need to appear until after the page is refreshed.

If this is complete, go ahead and change the status to Checked In.

 

Pradeep Saturday, November 28, 2015 9:44 AM #

Suggested changes has been commited if any further changes required as per my previous comment then just uncommited the code into Layout.cshtml.

 

Pradeep Saturday, November 28, 2015 7:35 AM #

Scott, script code has been moved into MembersViewModel.js but for layout changes if I go with the previous approach Retire/UnRetire link would not be display on Account menu after making request for Unretire/Retire. 

Currently once we do retire/unretire profile then after confirmation we get unretire/retire link on Account link but if we will go with previous approach then there will not be any link available for retire/unretire after confirmation, to get the same we need to refreash page.

So please confirm current is fine or need to go with previous.

Thanks

Pradeep

 

 

Scott Friday, November 27, 2015 4:53 AM #

how are you doing on this update?

 

Scott Monday, November 23, 2015 4:18 AM #

I like it so far.

Can you please put this into MembersViewModel.js as an InitializeMethod?

<script type="text/javascript"> + $(function () { + $('.btnUnRetireYourProfile').btsConfirmButton({ msg: "Confirm", className: "btn-success" }, Member.UnRetireYourProfile); + }); +</script>

 

I also really don't like this code in the layout.

+ + string retiredCss=string.Empty; + string unretiredCss = "hide"; + //check to see member is retired then apply css for Retire/UnRetire Profile link into Account Menu + if(member.IsRetired){ + retiredCss = "hide"; + unretiredCss = string.Empty; + }

Can you please do what you did before, but do an IF/Else?

@if (!member.IsRetired) - { - <li><a href="@Url.Content("~/member/retireprofile")"><i class="fa fa-user"></i> Retire Your Profile</a></li> - }


Powered by BugNET 1.6.339.0