Including CSS on template - RT

Hello,

In advance, sorry for my English.

I’m trying to change the default template “Resolved in HTML”, so that
when the user receives the e-mail stating that the ticket has been
resolved, a satisfaction survey (linked in the email) be filled.

But I would like this link to the survey be a star rating, where each
star represents a parameter of the level of satisfaction for the survey
treatment.
To make this star rating, I am using HTML and CSS.

But the template accuses an error when I use CSS:

“Could not compile the template of codeblock ‘text-decoration: none;
color: inherit;’: syntax error at line 6 template”

Follows the code:

Content-Type: text/html

a { text-decoration: none; color: inherit; } .rating { unicode-bidi: bidi-override; direction: rtl; float: left; } .rating span { display: inline-block; position: relative; width: 3.0em; } .rating span:before { content: "\2606"; font-size: 50px; } .rating span:hover:before, .rating span:hover ~ span:before { content: "\2605"; cursor: pointer; color: gold; } .clear { clear: both; }

De acordo com nossos registros, o seu pedido foi resolvido. Se você tem qualquer outra questão, por favor, responda a esta mensagem.

Por favor, avalie o atendimento:

 <a 

href=“https://www.mydomain.com?param1=x&param2=y&rating=excelente”>

 <a 

href=“https://www.mydomain.com?param1=x&param2=y&rating=bom”>

 <a 

href=“https://www.mydomain.com?param1=x&param2=y&rating=mediano”>

 <a 

href=“https://www.mydomain.com?param1=x&param2=y&rating=ruim”>

 <a 

href=“https://www.mydomain.com?param1=x&param2=y&rating=pessimo”>

 

Does anyone know how I can get around this?

Thank you very much

Hello,

In advance, sorry for my English.

I’m trying to change the default template “Resolved in HTML”, so that
when the user receives the e-mail stating that the ticket has been
resolved, a satisfaction survey (linked in the email) be filled.

But I would like this link to the survey be a star rating, where each
star represents a parameter of the level of satisfaction for the survey
treatment.
To make this star rating, I am using HTML and CSS.

But the template accuses an error when I use CSS:

“Could not compile the template of codeblock ‘text-decoration: none;
color: inherit;’: syntax error at line 6 template”

Follows the code:

Content-Type: text/html

a { text-decoration: none; color: inherit; } .rating { unicode-bidi: bidi-override; direction: rtl; float: left; } .rating span { display: inline-block; position: relative; width: 3.0em; } .rating span:before { content: "\2606"; font-size: 50px; } .rating span:hover:before, .rating span:hover ~ span:before { content: "\2605"; cursor: pointer; color: gold; } .clear { clear: both; }

De acordo com nossos registros, o seu pedido foi resolvido. Se você tem qualquer outra questão, por favor, responda a esta mensagem.

Por favor, avalie o atendimento:

 <a 

href=“https://www.mydomain.com?param1=x&param2=y&rating=excelente”>

 <a 

href=“https://www.mydomain.com?param1=x&param2=y&rating=bom”>

 <a 

href=“https://www.mydomain.com?param1=x&param2=y&rating=mediano”>

 <a 

href=“https://www.mydomain.com?param1=x&param2=y&rating=ruim”>

 <a 

href=“https://www.mydomain.com?param1=x&param2=y&rating=pessimo”>

 

Does anyone know how I can get around this?

Thank you very much

Hello,

Please do not cross-post your question to both rt-users and rt-devel.
rt-users is the appropriate venue for this question.

[snip]
But the template accuses an error when I use CSS:

This is because templates use { and } to delimit code that should be
run as perl. As such, you’ll need to escape your brace characters;
either use:

a {
text-decoration: none;
color: inherit;
}

…or:

a {q{{
text-decoration: none;
color: inherit;
}}}

  • Alex

OK, I got it

It was exactly the problem

thank you very much

Murillo Azambuja Gonçalves

UNICAMP - IFGW - CCJDR - Equipe Sistemas e Informação
Tel +55 (19) 3521-2132

http://www.ifi.unicamp.brOn 04/29/2015 05:41 PM, Alex Vandiver wrote:

On Wed, 29 Apr 2015 17:41:34 -0300 Murillo Azambuja Gonçalves murillo@ifi.unicamp.br wrote:

Hello,
Please do not cross-post your question to both rt-users and rt-devel.
rt-users is the appropriate venue for this question.

[snip]
But the template accuses an error when I use CSS:
This is because templates use { and } to delimit code that should be
run as perl. As such, you’ll need to escape your brace characters;
either use:

a \{
    text-decoration: none;
    color: inherit;
\}

…or:

a {q{{
    text-decoration: none;
    color: inherit;
}}}
  • Alex