Commit | Line | Data |
---|---|---|
ddc1f8ba MW |
1 | {capture assign='pageTitle'}{lang}wcf.acp.package.{@$queue->action}.title{/lang}: {$archive->getLocalizedPackageInfo('packageName')}{/capture} |
2 | {include file='header'} | |
158bd3ca | 3 | |
9543d9fe | 4 | <script data-relocate="true"> |
158bd3ca | 5 | $(function() { |
6207cc21 | 6 | WCF.Language.addObject({ |
e2e8c155 MW |
7 | 'wcf.acp.package.install.title': '{jslang}wcf.acp.package.install.title{/jslang}', |
8 | 'wcf.acp.package.installation.rollback': '{jslang}wcf.acp.package.installation.rollback{/jslang}', | |
9 | 'wcf.acp.package.uninstallation.title': '{jslang}wcf.acp.package.uninstallation.title{/jslang}', | |
10 | 'wcf.acp.package.update.title': '{jslang}wcf.acp.package.update.title{/jslang}' | |
6207cc21 | 11 | }); |
a45fa84d | 12 | |
b33c97d2 | 13 | new WCF.ACP.Package.Installation({@$queue->queueID}, undefined, {if $queue->action == 'install'}{if $queue->isApplication}false{else}true{/if}, false{else}false, true{/if}); |
a45fa84d MS |
14 | |
15 | new WCF.ACP.Package.Installation.Cancel({@$queue->queueID}); | |
158bd3ca | 16 | }); |
158bd3ca TD |
17 | </script> |
18 | ||
95961bdf | 19 | <header class="contentHeader"> |
b81e1c11 MS |
20 | <div class="contentHeaderTitle"> |
21 | <h1 class="contentTitle">{lang}wcf.acp.package.{@$queue->action}.title{/lang}: {$archive->getLocalizedPackageInfo('packageName')}</h1> | |
22 | <p class="contentHeaderDescription">{$archive->getLocalizedPackageInfo('packageDescription')}</p> | |
23 | </div> | |
fdd8b4b6 | 24 | </header> |
158bd3ca | 25 | |
25c89d0a | 26 | {if !$validationPassed} |
a14d7068 | 27 | <woltlab-core-notice type="error">{lang}wcf.acp.package.validation.failed{/lang}</woltlab-core-notice> |
158bd3ca TD |
28 | {/if} |
29 | ||
b168bf95 | 30 | {if $installingImportedStyle} |
a14d7068 | 31 | <woltlab-core-notice type="info">{lang}wcf.acp.package.install.installingImportedStyle{/lang}</woltlab-core-notice> |
b168bf95 MS |
32 | {/if} |
33 | ||
95961bdf MW |
34 | <section class="section"> |
35 | <h2 class="sectionTitle">{lang}wcf.acp.package.information.properties{/lang}</h2> | |
36 | ||
37 | <dl> | |
38 | <dt>{lang}wcf.acp.package.identifier{/lang}</dt> | |
39 | <dd>{$archive->getPackageInfo('name')}</dd> | |
40 | </dl> | |
41 | ||
42 | <dl> | |
43 | <dt>{lang}wcf.acp.package.version{/lang}</dt> | |
44 | <dd>{$archive->getPackageInfo('version')}</dd> | |
45 | </dl> | |
46 | ||
47 | <dl> | |
48 | <dt>{lang}wcf.acp.package.packageDate{/lang}</dt> | |
49 | <dd>{@$archive->getPackageInfo('date')|date}</dd> | |
50 | </dl> | |
51 | ||
52 | {if $archive->getPackageInfo('packageURL') != ''} | |
ddc1f8ba | 53 | <dl> |
95961bdf | 54 | <dt>{lang}wcf.acp.package.url{/lang}</dt> |
caa69548 | 55 | <dd><a href="{$archive->getPackageInfo('packageURL')}" class="externalURL">{$archive->getPackageInfo('packageURL')}</a></dd> |
ddc1f8ba | 56 | </dl> |
95961bdf MW |
57 | {/if} |
58 | ||
59 | <dl> | |
60 | <dt>{lang}wcf.acp.package.author{/lang}</dt> | |
caa69548 | 61 | <dd>{if $archive->getAuthorInfo('authorURL')}<a href="{$archive->getAuthorInfo('authorURL')}" class="externalURL">{$archive->getAuthorInfo('author')}</a>{else}{$archive->getAuthorInfo('author')}{/if}</dd> |
95961bdf MW |
62 | </dl> |
63 | ||
64 | {event name='propertyFields'} | |
65 | </section> | |
158bd3ca | 66 | |
25c89d0a | 67 | {if !$validationPassed} |
95961bdf | 68 | <div class="section tabularBox tabularBoxTitle"> |
635a8feb | 69 | <header> |
25c89d0a | 70 | <h2>{lang}wcf.acp.package.validation{/lang}</h2> |
635a8feb | 71 | </header> |
eee4c4ff | 72 | |
0f353b34 | 73 | <table class="table"> |
22d2360e L |
74 | <thead> |
75 | <tr> | |
ddc1f8ba MW |
76 | <th class="columnTitle columnPackageName">{lang}wcf.acp.package.name{/lang}</th> |
77 | <th class="columnText columnPackage">{lang}wcf.acp.package.identifier{/lang}</th> | |
1ef2e233 | 78 | <th class="columnText">{lang}wcf.acp.package.installation.packageStatus{/lang}</th> |
22d2360e L |
79 | </tr> |
80 | </thead> | |
22d2360e | 81 | <tbody> |
25c89d0a AE |
82 | {foreach from=$packageValidationArchives item=packageValidationArchive} |
83 | {assign var=exceptionMessage value=$packageValidationArchive->getExceptionMessage()} | |
7991009f | 84 | <tr> |
25c89d0a AE |
85 | <td class="columnTitle columnPackageName"><span{if $packageValidationArchive->getDepth()} style="padding-left: {@$packageValidationArchive->getDepth() * 14}px"{/if}>{$packageValidationArchive->getArchive()->getLocalizedPackageInfo('packageName')}</span></td> |
86 | <td class="columnText columnPackage">{$packageValidationArchive->getArchive()->getPackageInfo('name')}</td> | |
2d510562 AE |
87 | <td class="columnIcon columnStatus"> |
88 | {if $exceptionMessage} | |
ab43711a | 89 | {icon name='circle-xmark'} |
2d510562 | 90 | {else} |
ab43711a | 91 | {icon name='circle-check'} |
2d510562 AE |
92 | {/if} |
93 | </td> | |
7991009f | 94 | </tr> |
25c89d0a AE |
95 | |
96 | {if $exceptionMessage} | |
97 | <tr> | |
98 | <td colspan="3"><span{if $packageValidationArchive->getDepth()} style="padding-left: {@$packageValidationArchive->getDepth() * 14}px"{/if}>{@$exceptionMessage}</span></td> | |
99 | </tr> | |
100 | {/if} | |
7991009f | 101 | {/foreach} |
22d2360e L |
102 | </tbody> |
103 | </table> | |
104 | </div> | |
158bd3ca TD |
105 | {/if} |
106 | ||
0f353b34 | 107 | <div class="formSubmit"> |
25c89d0a | 108 | {if $validationPassed} |
d3e5a60e | 109 | <input type="button" class="default buttonPrimary" id="submitButton" value="{lang}wcf.global.button.next{/lang}" accesskey="s"> |
158bd3ca | 110 | {/if} |
fe378fa3 | 111 | <input type="button" id="backButton" value="{lang}wcf.global.button.back{/lang}" accesskey="c"> |
158bd3ca TD |
112 | </div> |
113 | ||
fdd8b4b6 | 114 | {include file='footer'} |