History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: FMNG-8
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Dan Hardiker
Reporter: Simon Wheatley
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Confluence Extension: Form Mail NG

CSS classes for buttons

Created: 09/May/07 01:12 PM   Updated: 28/Jan/08 10:33 AM
Component/s: None
Affects Version/s: None
Fix Version/s: 1.1

Time Tracking:
Not Specified


 Description  « Hide
I'd like to be able to add a CSS class to my submit buttons. Please...

either extend {mail-input} to allow the following:

{mail-input:type=submit|value=Request Brochure|cssClass=button}

and/or, extend {mail-submit} to allow the following:

{mail-submit:value=Request Brochure|cssClass=button}

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Dan Hardiker - 28/Jan/08 09:59 AM
I have done this by adding cssClass and cssStyle parameters. To do this in the allotted time I've removed the backward compatibility element of having {mail-submit:Button Text}, which now will need to be {mail-submit:value=Button Text}.

As there is a sensible default of "Send", I don't think this will be much of an issue as is worth including.


Dan Hardiker - 28/Jan/08 10:06 AM
Actually I've added the following code to maintain backward compatibility:
String title = (String) params.get(RAW_PARAMS_KEY);
if (TextUtils.stringSet( title ) && (title.startsWith("value=") || title.indexOf("|") > -1)) {
  title = (String) params.get("value");
}
if (!TextUtils.stringSet( title )) {
  title = "Send";
}

Simon Wheatley - 28/Jan/08 10:19 AM
@Dan - What's the upshot of that? My Java skimming skills are rusty non-existent.

Dan Hardiker - 28/Jan/08 10:33 AM
It means that {mail-input:blurb} will be parsed the same as {mail-input:value=blurb} so that the old usage format will still be supported.