Close input tags properly in moderation.pt to avoid an error with i18ndude find-untranslated

This commit is contained in:
Vincent Fretin 2020-06-28 14:09:30 +02:00
parent 1990df19d2
commit de24c20b83
2 changed files with 5 additions and 3 deletions

2
news/171.bugfix Normal file
View File

@ -0,0 +1,2 @@
Close input tags properly in moderation.pt to avoid an error with i18ndude find-untranslated
[vincentfretin]

View File

@ -66,14 +66,14 @@
<th colspan="7"> <th colspan="7">
<fieldset tal:condition="view/moderation_multiple_state_enabled"> <fieldset tal:condition="view/moderation_multiple_state_enabled">
<input type="radio" id="all" name="review_state" value="all" <input type="radio" id="all" name="review_state" value="all"
tal:attributes="checked python:request.review_state=='all'"> tal:attributes="checked python:request.review_state=='all'" />
<label for="all" i18n:translate="">all</label> <label for="all" i18n:translate="">all</label>
<tal:workflow-filter tal:repeat="review_state python:['pending', 'published', 'rejected', 'spam']"> <tal:workflow-filter tal:repeat="review_state python:['pending', 'published', 'rejected', 'spam']">
<input type="radio" name="review_state" <input type="radio" name="review_state"
tal:attributes=" tal:attributes="
value review_state; value review_state;
id review_state; id review_state;
checked python:request.review_state==review_state"> checked python:request.review_state==review_state" />
<label tal:attributes="for review_state"><span tal:content="python:translationhelper.translate_comment_review_state(review_state)">review_state</span></label> <label tal:attributes="for review_state"><span tal:content="python:translationhelper.translate_comment_review_state(review_state)">review_state</span></label>
</tal:workflow-filter> </tal:workflow-filter>
</fieldset> </fieldset>