Hey Guys,

I appreciate the help on this.

I am getting closer but no cigar.

${h.link_to(h.literal('<span class="buttonred"> List Client Orders </
span>'),h.url_for(controller='client',action='clientorderlist',id=c.id))}

buttonred is the below:

a.buttonred {
        background: transparent url('/buttonimages_red.gif') no-repeat
scroll top right;
        color: #444;
        display: block;
        float: right;
        font: normal 15px arial, sans-serif;
        height: 32px;
        margin-right: 6px;
        padding-right: 20px; /* sliding doors padding */
        text-decoration: none;
     }

     a.buttonred span {
         background: transparent url('/buttonimages-red.gif') no-
repeat;
         display: block;
         line-height:22px;
         padding: 5px 0 5px 18px;
     }
    a.buttonred:active {
         background-position: bottom right;
         color: #000;
         outline: none; /* hide dotted outline in Firefox */
    }
    a.buttonred:active span {
         background-position: bottom left;
         padding: 6px 0 4px 18px; /* push text down 1px */
     }

I dont see the image only the link?

The below works but I dont want to use an absolute link:

<a class="buttonred" href="http://www.orders.com/client/list/
id"><span> list</span></a>

Cheers,
garyc


On May 18, 1:04 pm, Kosu <[email protected]> wrote:
> in lib/helpers.py add:
> from webhelpers.html import literal
>
> so in template you can now write sth like that:
> ${h.link_to(h.literal('<span class="add">Add review</span>'),
> url(.....))}
>
> Cheers,
> Rafal
> On 17 Maj, 18:10, gazza <[email protected]> wrote:
>
>
>
>
>
> > Hello,
>
> > I am having a wee problem attempting to merge a css span object with a
> > helper link_to method.
>
> > I have:
>
> > <a class="button" href="#" <span> Click to review order</span>
>
> > and
>
> > [${h_link_to('review
> > order',h.url_for(controller='client',action='clientorderlist',id=c.id))}]
>
> > not sure how to merge them both together. Appreciate any guidance on
> > this.
>
> > Cheers,
> > Garyc
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "pylons-discuss" 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 
> > athttp://groups.google.com/group/pylons-discuss?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "pylons-discuss" 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 
> athttp://groups.google.com/group/pylons-discuss?hl=en.- Hide quoted text -
>
> - Show quoted text -

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en.

Reply via email to