Add support for multiple entry types of GUI PIPs
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / acp / templates / devtoolsProjectPipEntryList.tpl
CommitLineData
532a045a
MS
1{include file='header' pageTitle='wcf.acp.devtools.project.pip.entry.list.pageTitle'}
2
3<header class="contentHeader">
4 <div class="contentHeaderTitle">
5 <h1 class="contentTitle">{lang}wcf.acp.devtools.project.pip.entry.list{/lang}</h1>
6 <p class="contentHeaderDescription">{$project->name}</p>
7 </div>
8
9 <nav class="contentHeaderNavigation">
10 <ul>
11 <li class="dropdown">
12 <a class="button dropdownToggle"><span class="icon icon16 fa-list"></span> <span>{lang}wcf.acp.devtools.project.pip.list{/lang}</span></a>
13 <div class="dropdownMenu">
14 <ul class="scrollableDropdownMenu">
15 {foreach from=$project->getPips() item=otherPip}
16 {if $otherPip->supportsGui()}
43b376f2
MS
17 {foreach from=$otherPip->getPip()->getEntryTypes() item=otherPipEntryType}
18 <li{if $otherPip->pluginName === $pip && $otherPipEntryType === $entryType} class="active"{/if}><a href="{link controller='DevtoolsProjectPipEntryList' id=$project->projectID pip=$otherPip->pluginName entryType=$otherPipEntryType}{/link}">{$otherPip->pluginName} ({$otherPipEntryType})</a></li>
19 {foreachelse}
20 <li{if $otherPip->pluginName === $pip} class="active"{/if}><a href="{link controller='DevtoolsProjectPipEntryList' id=$project->projectID pip=$otherPip->pluginName}{/link}">{$otherPip->pluginName}</a></li>
21 {/foreach}
532a045a
MS
22 {/if}
23 {/foreach}
24 </ul>
25 </div>
26 </li>
43b376f2 27 <li><a href="{link controller='DevtoolsProjectPipEntryAdd' id=$project->projectID pip=$pip entryType=$entryType}{/link}" class="button"><span class="icon icon16 fa-plus"></span> <span>{lang}wcf.acp.devtools.project.pip.entry.button.add{/lang}</span></a></li>
532a045a
MS
28 <li><a href="{link controller='DevtoolsProjectList'}{/link}" class="button"><span class="icon icon16 fa-list"></span> <span>{lang}wcf.acp.menu.link.devtools.project.list{/lang}</span></a></li>
29
30 {event name='contentHeaderNavigation'}
31 </ul>
32 </nav>
33</header>
34
35{if !$entryList->getEntries()|empty}
36 <div class="section tabularBox jsShowOnlyMatches" id="syncPipMatches">
37 <table class="table">
38 <thead>
39 <tr>
40 {foreach from=$entryList->getKeys() item=languageItem name=entryListKeys}
41 <th{if $tpl[foreach][entryListKeys][first]} colspan="2"{/if}>{@$languageItem|language}</th>
42 {/foreach}
43 </tr>
44 </thead>
45
46 <tbody>
47 {foreach from=$entryList->getEntries() key=identifier item=entry}
48 <tr>
43b376f2 49 <td class="columnIcon"><a href="{link controller='DevtoolsProjectPipEntryEdit' id=$project->projectID pip=$pip identifier=$identifier entryType=$entryType}{/link}" title="{lang}wcf.global.button.edit{/lang}" class="jsTooltip"><span class="icon icon16 fa-pencil"></span></a></td>
532a045a
MS
50 {foreach from=$entryList->getKeys() key=key item=languageItem}
51 <td>{$entry[$key]}</td>
52 {/foreach}
53 </tr>
54 {/foreach}
55 </tbody>
56 </table>
57 </div>
58{else}
59 <p class="info">{lang}wcf.global.noItems{/lang}</p>
60{/if}
61
62{include file='footer'}