[Koha-patches] [PATCH] [bug #2689] Fix the checked box "manual history" and fix the "null" value of serial next issue publication date
Owen Leonard
oleonard at myacpl.org
Fri Oct 17 15:30:32 CEST 2008
> + <li><label for="manuallist"> Manual history:</label> <input type="checkbox" name="manualhist" id="manuallist" value="1" <!-- TMPL_IF name="manualhistory" -->checked<!-- /TMPL_IF --> /></li>
Embedding a TMPL_IF inside an HTML tag will break the translation
script. It's inconvenient, but you have to do it like this:
<!-- TMPL_IF name="manualhistory" -->
<input type="checkbox" name="manualhist" id="manuallist" value="1"
checked="checked" />
<!-- TMPL_ELSE -->
<input type="checkbox" name="manualhist" id="manuallist" value="1" />
<!-- /TMPL_IF -->
Also note that for XHTML compliance you have to use
'checked="checked"' instead of just 'checked.'
-- Owen
--
Web Developer
Athens County Public Libraries
http://www.myacpl.org
More information about the Koha-patches
mailing list