Cool, simple as that, thank you :)
I had another go before and came up with this - having checked out the
helpers again:
%label{:for => "poster[title_en]"}
= precede 'Title ' do
%abbr{:title => "English"} EN
But... yours is a lot less code so will run with that instead.
Cheers!
On 3 Apr, 01:46, Alex Wallace <[email protected]> wrote:
> %label{ :for => :title }
> Title
> %abbr{ :title => :English } EN
>
> Since both Title and the <abbr> tag are nested within the <label>, the text
> "Title" needs to come on its own line.
>
> Since that's a little unwieldy, you might just want to write the HTML
> directly:
>
> %label{ :for => :title } Title <abbr title="English">EN</abbr>
>
> Best,
> Alex
>
> On Fri, Apr 2, 2010 at 1:05 PM, tenstates <[email protected]> wrote:
> > Hi all,
>
> > Whats the best way to state the following:
>
> > <label for="title">Title <abbr title="English">EN</abbr></label>
>
> > I looked into the helpers and some of the tricks but haven't seen
> > anything that stands out. Any help on this is welcomed...
>
> > Here's a sample from my template:
>
> > %label{:for => "poster[title_en]"} Title (EN)
> > %input{:type => "text", :name => "poster[title_en]", :id =>
> > "poster[title_en]"}/
>
> > Cheers
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Haml" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected] <haml%[email protected]>.
> > For more options, visit this group at
> >http://groups.google.com/group/haml?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"Haml" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/haml?hl=en.