Installed module UI cleaning.

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11973 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ChanMyeong 2012-10-30 10:04:37 +00:00
parent 375d72e007
commit de06a76bd8
7 changed files with 48 additions and 64 deletions

View file

@ -1083,10 +1083,8 @@ jQuery(function($){
var tdTitle = $('.x .dsTg td.title'); var tdTitle = $('.x .dsTg td.title');
tdTitle.each(function(){ tdTitle.each(function(){
var $t = $(this) var $t = $(this)
if($t.find('p.update').length==0){ if($t.find('p.x_alert').length==0){
$t.addClass('tg').find('>*:not(:first-child)').hide(); $t.addClass('tg').find('>*:not(:first-child)').hide();
} else {
$t.addClass('up');
} }
}); });
var details = $('.x .dsTg td.tg>*:not(:first-child)'); var details = $('.x .dsTg td.tg>*:not(:first-child)');

File diff suppressed because one or more lines are too long

View file

@ -14,9 +14,9 @@
<table class="x_table x_table-striped x_table-hover"> <table class="x_table x_table-striped x_table-hover">
<thead> <thead>
<tr> <tr>
<th class="title">{$lang->category_title}</th> <th>{$lang->category_title}</th>
<th class="nowr">{$lang->regdate}</th> <th>{$lang->regdate}</th>
<th class="nowr">&nbsp;</th> <th>&nbsp;</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -27,10 +27,11 @@
<!--@end--> <!--@end-->
<!--@foreach($category_list as $key => $val)--> <!--@foreach($category_list as $key => $val)-->
<tr> <tr>
<td class="title">{$val->title}</td> <td>{$val->title}</td>
<td class="nowr">{zdate($val->regdate,"Y-m-d")}</td> <td>{zdate($val->regdate,"Y-m-d")}</td>
<td class="nowr"> <td>
<a class="x_btn x_btn-link" href="{getUrl('module_category_srl',$val->module_category_srl)}">{$lang->cmd_modify}</a> | <a class="x_btn x_btn-link" href="{getUrl('module_category_srl',$val->module_category_srl)}">{$lang->cmd_modify}</a>
<i>|</i>
<button type="button" class="x_btn x_btn-link" onclick="doUpdateCategory('{$val->module_category_srl}','{$lang->confirm_delete}');return false;">{$lang->cmd_delete}</button> <button type="button" class="x_btn x_btn-link" onclick="doUpdateCategory('{$val->module_category_srl}','{$lang->confirm_delete}');return false;">{$lang->cmd_delete}</button>
</td> </td>
</tr> </tr>
@ -38,16 +39,14 @@
</tbody> </tbody>
</table> </table>
<!-- 카테고리 추가 --> <!-- 카테고리 추가 -->
<form ruleset="insertCategory" action="./" method="post"> <form ruleset="insertCategory" action="./" method="post" class="x_clearfix">
<input type="hidden" name="module" value="module" /> <input type="hidden" name="module" value="module" />
<input type="hidden" name="act" value="procModuleAdminInsertCategory" /> <input type="hidden" name="act" value="procModuleAdminInsertCategory" />
<input type="hidden" name="page" value="{$page}" /> <input type="hidden" name="page" value="{$page}" />
<input type="hidden" name="module_srl" value="{$module_srl}" /> <input type="hidden" name="module_srl" value="{$module_srl}" />
<input type="hidden" name="module_category_srl" value="" /> <input type="hidden" name="module_category_srl" value="" />
<div class="x_clearfix" style="margin-top:-12px"> <div class="x_pull-right x_input-append">
<div class="x_btn-group x_pull-right"> <input type="text" name="title" title="{$lang->category_title}" placeholder="{$lang->category_title}" required />
<label for="category_title" class="x_inline" style="margin-right:5px">{$lang->category_title} : <input type="text" name="title" id="category_title" style="width:200px" /></label> <button type="submit" class="x_btn x_btn-primary">{$lang->cmd_registration}</button>
<label class="x_inline"><button type="submit" class="x_btn x_btn-primary" style="margin-right:5px">{$lang->cmd_registration}</button></label>
</div>
</div> </div>
</form> </form>

View file

@ -5,22 +5,16 @@
<p>{$XE_VALIDATOR_MESSAGE}</p> <p>{$XE_VALIDATOR_MESSAGE}</p>
</div> </div>
<section class="section"> <section class="section">
<form ruleset="updateCategory" action="./" method="post" enctype="multipart/form-data" class="x_form-horizontal"> <form ruleset="updateCategory" action="./" method="post" enctype="multipart/form-data">
<input type="hidden" name="module" value="module" /> <input type="hidden" name="module" value="module" />
<input type="hidden" name="act" value="procModuleAdminUpdateCategory" /> <input type="hidden" name="act" value="procModuleAdminUpdateCategory" />
<input type="hidden" name="module_category_srl" value="{$selected_category->module_category_srl}" /> <input type="hidden" name="module_category_srl" value="{$selected_category->module_category_srl}" />
<input type="hidden" name="mode" value="update" /> <input type="hidden" name="mode" value="update" />
<div class="x_control-group"> <label for="category_title" style="display:inline-block;padding:4px 0 0 0">{$lang->category_title}: </label>
<label class="x_control-label" for="category_title">{$lang->category_title}</label> <span class="x_input-append">
<div class="x_controls">
<input type="text" name="title" id="category_title" value="{$selected_category->title}" /> <input type="text" name="title" id="category_title" value="{$selected_category->title}" />
</div> <button type="submit" class="x_btn">{$lang->cmd_registration}</button>
</div> </span>
<div class="x_clearfix btnArea">
<div class="x_pull-right">
<button type="submit" class="x_btn x_btn-primary">{$lang->cmd_registration}</button>
</div>
</div>
</form> </form>
</section> </section>
<!--@end--> <!--@end-->

View file

@ -1,14 +1,11 @@
<load target="js/module_admin.js" usecdn="true" /> <load target="js/module_admin.js" usecdn="true" />
<div class="x_page-header">
<h1>{$lang->installed_modules}</h1>
</div>
<script> <script>
xe.lang.favorite_on = '{$lang->favorite}({$lang->on})'; xe.lang.favorite_on = '{$lang->favorite}({$lang->on})';
xe.lang.favorite_off = '{$lang->favorite}({$lang->off})'; xe.lang.favorite_off = '{$lang->favorite}({$lang->off})';
</script> </script>
<div class="x_page-header">
<h1>{$lang->installed_modules}</h1>
</div>
<ul class="x_nav x_nav-tabs"> <ul class="x_nav x_nav-tabs">
<li class="x_active"|cond="$act=='dispModuleAdminContent'"> <li class="x_active"|cond="$act=='dispModuleAdminContent'">
<a href="{getUrl('', 'module', 'admin', 'act', 'dispModuleAdminContent')}">{$lang->installed_modules}</a> <a href="{getUrl('', 'module', 'admin', 'act', 'dispModuleAdminContent')}">{$lang->installed_modules}</a>

View file

@ -1,2 +1,2 @@
<h1 class="h1">{$lang->bundle_addition_setup}</h1> <h1>{$lang->bundle_addition_setup}</h1>
{$setup_content} {$setup_content}

View file

@ -1,10 +1,10 @@
<include target="header.html" /> <include target="header.html" />
<table class="x_table x_table-striped x_table-hover dsTg"> <table class="x_table x_table-striped x_table-hover dsTg">
<caption> <caption>
<strong>All({count($module_list)})</strong> All({count($module_list)})
<div class="x_pull-right x_btn-group"> <div class="x_pull-right x_btn-group">
<button class="x_btn x_btn-mini x_active __simple">{$lang->simple_view}</button> <button class="x_btn x_active __simple">{$lang->simple_view}</button>
<button class="x_btn x_btn-mini __detail">{$lang->detail_view}</button> <button class="x_btn __detail">{$lang->detail_view}</button>
</div> </div>
</caption> </caption>
<thead> <thead>
@ -18,45 +18,41 @@
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<!--@foreach($module_list as $key => $val)--> <tr loop="$module_list => $key,$val" data-type1="#"|cond="in_array($val->module,$favoriteModuleList)" data-type2="#"|cond="$val->need_install || $val->need_update || $val->need_autoinstall_update">
<tr> <td>
<td class="nowr"> <button type="button" class="fvOn" onclick="doToggleFavoriteModule(this, '{$val->module}')" cond="in_array($val->module,$favoriteModuleList)">{$lang->favorite}({$lang->on})</button>
<!--@if(in_array($val->module,$favoriteModuleList))--> <button type="button" class="fvOff" onclick="doToggleFavoriteModule(this, '{$val->module}')" cond="!in_array($val->module,$favoriteModuleList)">{$lang->favorite}({$lang->off})</button>
<button type="button" class="fvOn" onclick="doToggleFavoriteModule(this, '{$val->module}'); return false;">{$lang->favorite}({$lang->on})</button>
<!--@else-->
<button type="button" class="fvOff" onclick="doToggleFavoriteModule(this, '{$val->module}'); return false;">{$lang->favorite}({$lang->off})</button>
<!--@end-->
</td> </td>
<td class="title"> <td class="title">
<p> <p>
<!--@if($val->admin_index_act)--> <a href="{getUrl('','module','admin','act',$val->admin_index_act)}" cond="$val->admin_index_act">{$val->title}</a>
<a href="{getUrl('','module','admin','act',$val->admin_index_act)}">{$val->title}</a> <strong cond="!$val->admin_index_act">{$val->title}</strong>
<!--@else-->
<strong>{$val->title}</strong>
<!--@end-->
</p> </p>
<p>{$val->description}</p> <p>{$val->description}</p>
<p cond="$val->need_install" class="update">{$lang->msg_avail_install} <button class="text" type="button" onclick="doInstallModule('{$val->module}')">{$lang->msg_do_you_like_install}</button></p> <p cond="$val->need_install" class="x_alert x_alert-info">{$lang->msg_avail_install} <button class="text" type="button" onclick="doInstallModule('{$val->module}')">{$lang->msg_do_you_like_install}</button></p>
<p cond="$val->need_update" class="update">{$lang->msg_avail_update} <button class="text" type="button" onclick="doUpdateModule('{$val->module}')">{$lang->msg_do_you_like_update}</button></p> <p cond="$val->need_update" class="x_alert x_alert-info">{$lang->msg_avail_update} <button class="text" type="button" onclick="doUpdateModule('{$val->module}')">{$lang->msg_do_you_like_update}</button></p>
<p cond="$val->need_autoinstall_update == 'Y'" class="update">{$lang->msg_avail_easy_update}<a href="{$val->update_url}&amp;return_url={urlencode(getRequestUriByServerEnviroment())}">{$lang->msg_do_you_like_update}</a></p> <p cond="$val->need_autoinstall_update == 'Y'" class="x_alert x_alert-info">{$lang->msg_avail_easy_update} <a href="{$val->update_url}&amp;return_url={urlencode(getRequestUriByServerEnviroment())}">{$lang->msg_do_you_like_update}</a></p>
</td> </td>
<td class="nowr">{$val->version}</td> <td>{$val->version}</td>
<td class="nowr"> <td>
<!--@foreach($val->author as $author)--> <!--@foreach($val->author as $author)-->
<!--@if($author->homepage)--> <!--@if($author->homepage)-->
<a href="{$author->homepage}" onclick="window.open(this.href);return false;" target="_blank">{$author->name}</a> <a href="{$author->homepage}" target="_blank">{$author->name}</a>
<!--@else--> <!--@else-->
{$author->name} {$author->name}
<!--@endif--> <!--@endif-->
<!--@endforeach--> <!--@endforeach-->
</td> </td>
<td class="nowr">{$val->path}</td> <td>{$val->path}</td>
<td class="nowr"> <td>
<!--@if($val->delete_url)--> <a href="{$val->delete_url}&amp;return_url={urlencode(getRequestUriByServerEnviroment())}" cond="$val->delete_url">{$lang->cmd_delete}</a>
<a href="{$val->delete_url}&amp;return_url={urlencode(getRequestUriByServerEnviroment())}">{$lang->cmd_delete}</a>
<!--@end-->
</td> </td>
</tr> </tr>
<!--@end-->
</tbody> </tbody>
</table> </table>
<script>
jQuery(function($){
$('.dsTg>tbody>tr[data-type1]').prependTo('tbody');
$('.dsTg>tbody>tr[data-type2]').prependTo('tbody');
});
</script>