[web2py] Re: Enable and disable links in a view.

2012-02-20 Thread Annet
Hi Alan, Thanks for your explanation. I got the idea now, and I think your solution is easier to implement when I replace the divs containing the links with list items. Best regards, Annet

[web2py] Re: Enable and disable links in a view.

2012-02-20 Thread Alan Etkin
The code is pretty extense, but I think that there is no need to set conditional css and script tags. I'd put template syntax sentences in views for alternating A with P tags (or wathever tag suits the style needs for the site) and changing the class attribute for each page item. That grants you th

[web2py] Re: Enable and disable links in a view.

2012-02-19 Thread Annet
Hi Alan, I am still struggling getting your solution mapped to my problem, I'll post the entire view, hoping you will provide me with some more clues to help me get this to work. {{extend 'initLayout.html'}} .content {margin: 24px auto 24px; width: 600px;} .admin a, .admin a:visited {color

[web2py] Re: Enable and disable links in a view.

2012-02-15 Thread Annet
Hi Alan, Thanks for your reply. I'll give your solution a try. Kind regards, Annet

[web2py] Re: Enable and disable links in a view.

2012-02-15 Thread Alan Etkin
Looks like the javascript part is not working, obviously. Instead, why not to change the helper instance programatically (from A to P and P to A) if the user is logged in or not? Even it is possible to change the helper class according to the condition in the helper initialization: if something: