Add id to the text input field when editing the template.

Like this styling can be applied to id (or rather, the effect of styling to it can be seen in the layout editor.)
Also removed what looks like an extra '<center></center>'. That is added three lines later.
This commit is contained in:
ospalh 2013-01-18 16:44:22 +01:00
parent 8d66578d43
commit 588feaa35b

View file

@ -227,7 +227,7 @@ Please create a new card type first."""))
def maybeTextInput(self, txt, type='q'):
if type == 'q':
repl = "<center><input type=text value=''></center>"
repl = "<input id='typeans' type=text value=''>"
else:
repl = _("(typing comparison appears here)")
repl = "<center>%s</center>" % repl