Commit | Line | Data |
---|---|---|
96714cab MS |
1 | {include file='header' pageTitle='wcf.acp.captcha.question.list'} |
2 | ||
96714cab | 3 | <script data-relocate="true"> |
96714cab MS |
4 | $(function() { |
5 | new WCF.Action.Delete('wcf\\data\\captcha\\question\\CaptchaQuestionAction', '.jsQuestionRow'); | |
6 | new WCF.Action.Toggle('wcf\\data\\captcha\\question\\CaptchaQuestionAction', '.jsQuestionRow'); | |
7 | ||
8 | var options = { }; | |
9 | {if $pages > 1} | |
2911f874 MS |
10 | options.refreshPage = true; |
11 | {if $pages == $pageNo} | |
12 | options.updatePageNumber = -1; | |
13 | {/if} | |
96714cab | 14 | {else} |
2911f874 | 15 | options.emptyMessage = '{lang}wcf.global.noItems{/lang}'; |
96714cab MS |
16 | {/if} |
17 | ||
18 | new WCF.Table.EmptyTableHandler($('#captchaQuestionTabelContainer'), 'jsQuestionRow', options); | |
19 | }); | |
96714cab MS |
20 | </script> |
21 | ||
b5c94e9e AE |
22 | <header class="contentHeader"> |
23 | <div class="contentHeaderTitle"> | |
0edfe081 | 24 | <h1 class="contentTitle">{lang}wcf.acp.captcha.question.list{/lang}{if $items} <span class="badge badgeInverse">{#$items}</span>{/if}</h1> |
b5c94e9e | 25 | </div> |
96714cab | 26 | |
b5c94e9e | 27 | <nav class="contentHeaderNavigation"> |
96714cab | 28 | <ul> |
f2b50825 | 29 | <li><a href="{link controller='CaptchaQuestionAdd'}{/link}" class="button"><span class="icon icon16 fa-plus"></span> <span>{lang}wcf.acp.captcha.question.add{/lang}</span></a></li> |
96714cab | 30 | |
b5c94e9e | 31 | {event name='contentHeaderNavigation'} |
96714cab MS |
32 | </ul> |
33 | </nav> | |
b5c94e9e AE |
34 | </header> |
35 | ||
36 | {hascontent} | |
37 | <div class="paginationTop"> | |
38 | {content}{pages print=true assign=pagesLinks controller="CaptchaQuestionList" link="pageNo=%d"}{/content} | |
39 | </div> | |
40 | {/hascontent} | |
96714cab MS |
41 | |
42 | {hascontent} | |
95961bdf | 43 | <div id="captchaQuestionTabelContainer" class="section tabularBox"> |
96714cab MS |
44 | <table class="table"> |
45 | <thead> | |
46 | <tr> | |
47 | <th class="columnID columnQuestionID active ASC" colspan="2">{lang}wcf.global.objectID{/lang}</th> | |
48 | <th class="columnText columnQuestion">{lang}wcf.acp.captcha.question.question{/lang}</th> | |
49 | ||
50 | {event name='columnHeads'} | |
51 | </tr> | |
52 | </thead> | |
53 | ||
54 | <tbody> | |
55 | {content} | |
56 | {foreach from=$objects item='question'} | |
57 | <tr class="jsQuestionRow"> | |
58 | <td class="columnIcon"> | |
2911f874 | 59 | <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> |
f2b50825 | 60 | <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> |
23e43ac5 | 61 | <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> |
96714cab MS |
62 | |
63 | {event name='rowButtons'} | |
64 | </td> | |
65 | <td class="columnID columnQuestionID">{$question->questionID}</td> | |
66 | <td class="columnText columnQuestion"><a href="{link controller='CaptchaQuestionEdit' id=$question->questionID}{/link}">{lang}{$question->question}{/lang}</a></td> | |
67 | ||
68 | {event name='columns'} | |
69 | </tr> | |
70 | {/foreach} | |
71 | {/content} | |
72 | </tbody> | |
73 | </table> | |
74 | </div> | |
75 | {hascontentelse} | |
76 | <p class="info">{lang}wcf.global.noItems{/lang}</p> | |
77 | {/hascontent} | |
78 | ||
b5c94e9e AE |
79 | <footer class="contentFooter"> |
80 | {hascontent} | |
81 | <div class="paginationBottom"> | |
82 | {content}{@$pagesLinks}{/content} | |
83 | </div> | |
84 | {/hascontent} | |
96714cab | 85 | |
b5c94e9e | 86 | <nav class="contentFooterNavigation"> |
96714cab | 87 | <ul> |
f2b50825 | 88 | <li><a href="{link controller='CaptchaQuestionAdd'}{/link}" class="button"><span class="icon icon16 fa-plus"></span> <span>{lang}wcf.acp.captcha.question.add{/lang}</span></a></li> |
96714cab | 89 | |
b5c94e9e | 90 | {event name='contentFooterNavigation'} |
96714cab MS |
91 | </ul> |
92 | </nav> | |
b5c94e9e | 93 | </footer> |
96714cab MS |
94 | |
95 | {include file='footer'} | |
96 |