</div>
{/hascontent}
- {hascontent}
+ {if $objects|count}
<div id="captchaQuestionTabelContainer" class="section tabularBox">
- <table class="table">
+ <table class="table jsObjectActionContainer" data-object-action-class-name="wcf\data\captcha\question\CaptchaQuestionAction">
<thead>
<tr>
<th class="columnID columnQuestionID active ASC" colspan="2">{lang}wcf.global.objectID{/lang}</th>
</tr>
</thead>
- <tbody>
+ <tbody class="jsReloadPageWhenEmpty">
- {content}
- {foreach from=$objects item='question'}
- <tr class="jsQuestionRow jsObjectActionObject" data-object-id="{@$question->getObjectID()}">
- <td class="columnIcon">
- {objectAction action="toggle" isDisabled=$question->isDisabled}
- <a href="{link controller='CaptchaQuestionEdit' id=$question->questionID}{/link}" title="{lang}wcf.global.button.edit{/lang}" class="jsTooltip"><span class="icon icon16 fa-pencil"></span></a>
- {objectAction action="delete" objectTitle=$question->getQuestion()}
-
- {event name='rowButtons'}
- </td>
- <td class="columnID columnQuestionID">{$question->questionID}</td>
- <td class="columnText columnQuestion"><a href="{link controller='CaptchaQuestionEdit' id=$question->questionID}{/link}">{$question->getQuestion()}</a></td>
+ {foreach from=$objects item='question'}
- <tr class="jsQuestionRow">
++ <tr class="jsQuestionRow jsObjectActionObject" data-object-id="{@$question->getObjectID()}">
+ <td class="columnIcon">
- <span class="icon icon16 fa-{if !$question->isDisabled}check-{/if}square-o jsToggleButton jsTooltip pointer" title="{lang}wcf.global.button.{if $question->isDisabled}enable{else}disable{/if}{/lang}" data-object-id="{@$question->questionID}"></span>
++ {objectAction action="toggle" isDisabled=$question->isDisabled}
+ <a href="{link controller='CaptchaQuestionEdit' id=$question->questionID}{/link}" title="{lang}wcf.global.button.edit{/lang}" class="jsTooltip"><span class="icon icon16 fa-pencil"></span></a>
- <span class="icon icon16 fa-times jsDeleteButton jsTooltip pointer" title="{lang}wcf.global.button.delete{/lang}" data-object-id="{@$question->questionID}" data-confirm-message-html="{lang __encode=true}wcf.acp.captcha.question.delete.confirmMessage{/lang}"></span>
++ {objectAction action="delete" objectTitle=$question->getQuestion()}
- {event name='columns'}
- </tr>
- {/foreach}
- {/content}
+ {event name='rowButtons'}
+ </td>
+ <td class="columnID columnQuestionID">{$question->questionID}</td>
+ <td class="columnText columnQuestion"><a href="{link controller='CaptchaQuestionEdit' id=$question->questionID}{/link}">{$question->getQuestion()}</a></td>
+
+ {event name='columns'}
+ </tr>
+ {/foreach}
</tbody>
</table>
</div>