forked from netgen/NetgenAdminUIBundle
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
196 additions
and
72 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 16 additions & 12 deletions
28
ezpublish_legacy/ngadminui/design/ngadminui/templates/package/create/thumbnail.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
...ish_legacy/ngadminui/design/ngadminui/templates/package/creators/ezcontentclass/class.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{* DO NOT EDIT THIS FILE! Use an override template instead. *} | ||
|
||
{def $class_list_by_group = hash()} | ||
{def $class_list = fetch( class, list_by_groups, hash( group_filter, false() ) )} | ||
|
||
{foreach $class_list as $class} | ||
{if is_set( $class_list_by_group[$class.ingroup_list.0.group_name] )} | ||
{set $class_list_by_group = $class_list_by_group|merge( hash( $class.ingroup_list.0.group_name, $class_list_by_group[$class.ingroup_list.0.group_name]|append( $class ) ) )} | ||
{else} | ||
{set $class_list_by_group = $class_list_by_group|merge( hash( $class.ingroup_list.0.group_name, array( $class ) ) )} | ||
{/if} | ||
{/foreach} | ||
|
||
<div id="package" class="create"> | ||
<div id="sid-{$current_step.id|wash}" class="pc-{$creator.id|wash} panel"> | ||
|
||
<form method="post" action={'package/create'|ezurl}> | ||
|
||
{include uri="design:package/create/error.tpl"} | ||
|
||
{include uri="design:package/header.tpl"} | ||
|
||
<p>{'Please choose the content classes you want to be included in the package.'|i18n('design/standard/package')}</p> | ||
|
||
<div class="form-inline"> | ||
<div class="form-group"> | ||
<label>{'Class list'|i18n('design/standard/package')}</label> | ||
</div> | ||
<div class="form-group"> | ||
<select class="listbox form-control" name="ClassList[]" multiple="multiple" size=""> | ||
{foreach $class_list_by_group as $group_name => $group_classes} | ||
<option disabled="disabled" value="group_{$group_name|wash}">{$group_name|wash}</option> | ||
{foreach $group_classes as $class} | ||
<option value="{$class.id}"> {$class.name|wash}</option> | ||
{/foreach} | ||
{/foreach} | ||
</select> | ||
</div> | ||
</div> | ||
|
||
{include uri="design:package/navigator.tpl"} | ||
|
||
</form> | ||
|
||
</div> | ||
</div> | ||
<script> | ||
const listBoxMultiple = document.getElementsByClassName('listbox')[0]; | ||
listBoxMultiple.setAttribute('size', listBoxMultiple.children.length < 30 ? listBoxMultiple.children.length : 30); | ||
</script> | ||
{undef $class_list_by_group $class_list} |
25 changes: 25 additions & 0 deletions
25
...sh_legacy/ngadminui/design/ngadminui/templates/package/creators/ezextension/extension.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<div id="package" class="create"> | ||
<div id="sid-{$current_step.id|wash}" class="pc-{$creator.id|wash} panel"> | ||
|
||
<form enctype="multipart/form-data" method="post" action={'package/create'|ezurl}> | ||
|
||
{include uri="design:package/create/error.tpl"} | ||
|
||
{include uri="design:package/header.tpl"} | ||
|
||
<p>{'Please select the extensions to be exported.'|i18n('design/standard/package')}</p> | ||
|
||
<div class="form-group"> | ||
{foreach $extension_list as $extension} | ||
<div class="checkbox"> | ||
<label><input name="PackageExtensionNames[]" type="checkbox" value="{$extension|wash}" /> {$extension|wash}</label> | ||
</div> | ||
{/foreach} | ||
</div> | ||
{include uri="design:package/navigator.tpl"} | ||
|
||
</form> | ||
|
||
</div> | ||
</div> | ||
|
36 changes: 20 additions & 16 deletions
36
ezpublish_legacy/ngadminui/design/ngadminui/templates/package/creators/ezstyle/cssfile.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 33 additions & 30 deletions
63
...blish_legacy/ngadminui/design/ngadminui/templates/package/creators/ezstyle/imagefiles.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
ezpublish_legacy/ngadminui/design/ngadminui/templates/package/header.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{* DO NOT EDIT THIS FILE! Use an override template instead. *} | ||
<input type="hidden" name="CreatorItemID" value="{$creator.id|wash}" /> | ||
<input type="hidden" name="CreatorStepID" value="{$current_step.id|wash}" /> | ||
<input type="hidden" name="PackageStep" value="1" /> | ||
|
||
|
||
|
||
|
||
{* DESIGN: Header START *}<div class="box-header"> | ||
<h1 class="context-title"> | ||
{'Package wizard: %wizardname'|i18n( 'design/admin/package',, hash( '%wizardname', $creator.name|wash ) )} | ||
</h1> | ||
|
||
{* DESIGN: Mainline *}<div class="header-mainline"></div> | ||
|
||
{* DESIGN: Header END *}</div> | ||
|
||
<h2>{$current_step.name|wash}</h2> |
18 changes: 18 additions & 0 deletions
18
ezpublish_legacy/ngadminui/design/ngadminui/templates/package/navigator.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
|
||
<div class="controlbar"> | ||
{* DESIGN: Control bar START *} | ||
|
||
|
||
{if $current_step.next_step} | ||
<div class="block"> | ||
<input class="button" type="submit" name="NextStepButton" value="{'Next %arrowright'|i18n( 'design/admin/package',, hash( '%arrowright', '»' ) )}" /> | ||
</div> | ||
{else} | ||
<div class="block"> | ||
<input class="button" type="submit" name="NextStepButton" value="{'Continue'|i18n( 'design/admin/package' )}" /> | ||
</div> | ||
{/if} | ||
|
||
|
||
{* DESIGN: Control bar END *} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters