Home : Products : Gossamer Links : Discussions :

Products: Gossamer Links: Discussions: Re: [brewt] CSS .error vs .message: Edit Log

Here is the list of edits for this post
Re: [brewt] CSS .error vs .message
Perfect solution Brewt! Thank you.

I have also fixed a few instances of static text on login forms into an actual
message or an error so that they display in the nice css error/message boxes.

In login.html I added the following code, which turns "You have been successfully logged out."
into a message so it displays in a green box, and "You must first login before you can access that."
into an error so it displays in a red box. I then deleted "You must first login before you can access that."
from the content of the form.
Code:
<%~if logout and error%>
<%~set message = $error%>
<%~set error = ''%>
<%~endif%>

<%if url%>
<%~set error = 'You must first login before you can access that.'%>
<%endif%>


I added this to the top of login_success.html and removed the identical text from the form.
It puts the successful login message into the green css message box.
Code:
<%~set message = "You have been successfully logged into $site_title"%>

This could and probably should be done in other places like signup.html and signup_success.html.
It would be nice to have a consistant interface wrt to messages and errors. Feedback?

Too cool! I am planning on using 'warning' and 'note' icons in the boxes
now that this seems to be all straightened out.

One kinda long question.... REAL errors seem to go through error.html
Displaying the error "Oops, we had the following problem".

Is it possible do you think to use 1 of 3 icons to represent messages/form_errors/system_errors
into messages/warnings/errors? With respective icons of note/caution/stop?

Is it safe to distinguish form_errors as caution, and errors in error.html as error (stop)?

Thanks again Brewt!
You can see these 'live' at the dev site I pm'd you.
Chris
RGB World, Inc. - Software &amp; Web Development.
rgbworld.com

Last edited by:

rgbworld: Apr 10, 2006, 5:59 PM

Edit Log: