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">
<fieldset tal:condition="view/moderation_multiple_state_enabled">
<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>
<tal:workflow-filter tal:repeat="review_state python:['pending', 'published', 'rejected', 'spam']">
<input type="radio" name="review_state"
tal:attributes="
value 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>
</tal:workflow-filter>
</fieldset>
@ -91,7 +91,7 @@
tal:condition="python: filter != 'spam'">Spam</option>
<option value="delete" i18n:translate="bulkactions_delete">Delete</option>
</select>
<input type="hidden" name="filter" tal:attributes="value filter"/>
<input type="hidden" name="filter" tal:attributes="value filter" />
<input id="dobulkaction"
type="submit"
class="standalone allowMultiSubmit"