Issue 2387, Admin UI Refactoring - Advanced - Add-ons

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11698 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
chschy 2012-10-15 06:21:58 +00:00
parent eeaedb431a
commit bd6c98b33f
2 changed files with 13 additions and 5 deletions

View file

@ -63,7 +63,7 @@
<section class="section"> <section class="section">
<block cond="$mid_list"> <block cond="$mid_list">
<h1>{$lang->module}</h1> <h1>{$lang->target}</h1>
<div class="x_control-group">{$lang->about_addon_mid}</div> <div class="x_control-group">{$lang->about_addon_mid}</div>
<div class="x_control-group"> <div class="x_control-group">
<label class="x_control-label">{$lang->run_method}</label> <label class="x_control-label">{$lang->run_method}</label>
@ -79,15 +79,21 @@
<label class="x_control-label">{$lang->target}</label> <label class="x_control-label">{$lang->target}</label>
<div class="x_controls"> <div class="x_controls">
<label for="check_all"><input type="checkbox" id="check_all" /> Check all</label> <label for="check_all"><input type="checkbox" id="check_all" /> Check all</label>
<fieldset loop="$mid_list => $module_category_srl, $modules"> <block loop="$mid_list => $module_category_srl, $modules">
<!--@if(count($mid_list) > 1)-->
<fieldset>
<legend><!--@if($modules->title)-->{$modules->title}<!--@else-->{$lang->none_category}<!--@end--></legend> <legend><!--@if($modules->title)-->{$modules->title}<!--@else-->{$lang->none_category}<!--@end--></legend>
<!--@end-->
<div loop="$modules->list => $key, $val"> <div loop="$modules->list => $key, $val">
<label for="chk_mid_list_{$key}"> <label>
<input type="checkbox" value="{$key}" name="mid_list[]" id="chk_mid_list_{$key}" checked="checked"|cond="in_array($key, $addon_info->mid_list)"/> <input type="checkbox" value="{$key}" name="mid_list[]" id="chk_mid_list_{$key}" checked="checked"|cond="in_array($key, $addon_info->mid_list)"/>
{$key} ({$val->browser_title}) {$key} ({$val->browser_title})
</label> </label>
</div> </div>
<!--@if(count($mid_list) > 1)-->
</fieldset> </fieldset>
<!--@end-->
</block>
</div> </div>
</div> </div>
</block> </block>

View file

@ -54,23 +54,25 @@
<div class="x_controls"> <div class="x_controls">
<span class="x_help-block">{$lang->about_component_mid}</span> <span class="x_help-block">{$lang->about_component_mid}</span>
<!--@foreach($mid_list as $module_category_srl => $modules)--> <!--@foreach($mid_list as $module_category_srl => $modules)-->
<!--@if(count($mid_list) > 1)-->
<fieldset> <fieldset>
<legend> <legend>
<input type="checkbox" onclick="XE.checkboxToggleAll('mid_list', { wrap:'section_{$module_category_srl}' }); return false;" /> <input type="checkbox" onclick="XE.checkboxToggleAll('mid_list', { wrap:'section_{$module_category_srl}' }); return false;" />
<!--@if($modules->title)-->{$modules->title}<!--@else-->{$lang->none_category}<!--@end--> <!--@if($modules->title)-->{$modules->title}<!--@else-->{$lang->none_category}<!--@end-->
</legend> </legend>
<!--@end-->
<div id="section_{$module_category_srl}"> <div id="section_{$module_category_srl}">
<!--@foreach($modules->list as $key => $val)--> <!--@foreach($modules->list as $key => $val)-->
<div class="module_list">
<label> <label>
<input type="checkbox" value="{$key}" name="mid_list" id="chk_mid_list_{$key}" <!--@if(in_array($key, $component->mid_list))-->checked="checked"<!--@end--> /> <input type="checkbox" value="{$key}" name="mid_list" id="chk_mid_list_{$key}" <!--@if(in_array($key, $component->mid_list))-->checked="checked"<!--@end--> />
{$key} ({$val->browser_title}) {$key} ({$val->browser_title})
</label> </label>
</div>
<!--@end--> <!--@end-->
</div> </div>
<!--@if(count($mid_list) > 1)-->
</fieldset> </fieldset>
<!--@end--> <!--@end-->
<!--@end-->
</div> </div>
</div> </div>
<div style="margin-top: -12px;" class="x_clearfix"> <div style="margin-top: -12px;" class="x_clearfix">