1

I'm learning about pyjade and I'm having trouble with the inputs type radio. I can't render the text of the radio

my code:

        .radio
            label
                input.commenttype(type="radio",name="commenttype",value="CLARIFICATION_REQUEST",checked) {% trans "Petición de Clarificación" %}  

I can't get the text of the radio button to appear... Tnak you

Alejandro
  • 1,159
  • 3
  • 16
  • 30

1 Answers1

2

Right now you're just putting text in the radiobutton. That is not gonna work. You should try putting it one level less deep, like this:

   .radio
        label
            input.commenttype(type="radio",name="commenttype",value="CLARIFICATION_REQUEST",checked) 
            | {% trans "Petición de Clarificación" %}  
JelteF
  • 3,021
  • 2
  • 27
  • 35