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');
tdTitle.each(function(){
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();
} else {
$t.addClass('up');
}
});
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">
<thead>
<tr>
<th class="title">{$lang->category_title}</th>
<th class="nowr">{$lang->regdate}</th>
<th class="nowr">&nbsp;</th>
<th>{$lang->category_title}</th>
<th>{$lang->regdate}</th>
<th>&nbsp;</th>
</tr>
</thead>
<tbody>
@ -27,10 +27,11 @@
<!--@end-->
<!--@foreach($category_list as $key => $val)-->
<tr>
<td class="title">{$val->title}</td>
<td class="nowr">{zdate($val->regdate,"Y-m-d")}</td>
<td class="nowr">
<a class="x_btn x_btn-link" href="{getUrl('module_category_srl',$val->module_category_srl)}">{$lang->cmd_modify}</a> |
<td>{$val->title}</td>
<td>{zdate($val->regdate,"Y-m-d")}</td>
<td>
<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>
</td>
</tr>
@ -38,16 +39,14 @@
</tbody>
</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="act" value="procModuleAdminInsertCategory" />
<input type="hidden" name="page" value="{$page}" />
<input type="hidden" name="module_srl" value="{$module_srl}" />
<input type="hidden" name="module_category_srl" value="" />
<div class="x_clearfix" style="margin-top:-12px">
<div class="x_btn-group x_pull-right">
<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>
<label class="x_inline"><button type="submit" class="x_btn x_btn-primary" style="margin-right:5px">{$lang->cmd_registration}</button></label>
</div>
<div class="x_pull-right x_input-append">
<input type="text" name="title" title="{$lang->category_title}" placeholder="{$lang->category_title}" required />
<button type="submit" class="x_btn x_btn-primary">{$lang->cmd_registration}</button>
</div>
</form>

View file

@ -5,22 +5,16 @@
<p>{$XE_VALIDATOR_MESSAGE}</p>
</div>
<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="act" value="procModuleAdminUpdateCategory" />
<input type="hidden" name="module_category_srl" value="{$selected_category->module_category_srl}" />
<input type="hidden" name="mode" value="update" />
<div class="x_control-group">
<label class="x_control-label" for="category_title">{$lang->category_title}</label>
<div class="x_controls">
<input type="text" name="title" id="category_title" value="{$selected_category->title}" />
</div>
</div>
<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>
<label for="category_title" style="display:inline-block;padding:4px 0 0 0">{$lang->category_title}: </label>
<span class="x_input-append">
<input type="text" name="title" id="category_title" value="{$selected_category->title}" />
<button type="submit" class="x_btn">{$lang->cmd_registration}</button>
</span>
</form>
</section>
<!--@end-->

View file

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

View file

@ -1,10 +1,10 @@
<include target="header.html" />
<table class="x_table x_table-striped x_table-hover dsTg">
<caption>
<strong>All({count($module_list)})</strong>
All({count($module_list)})
<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_btn-mini __detail">{$lang->detail_view}</button>
<button class="x_btn x_active __simple">{$lang->simple_view}</button>
<button class="x_btn __detail">{$lang->detail_view}</button>
</div>
</caption>
<thead>
@ -18,45 +18,41 @@
</tr>
</thead>
<tbody>
<!--@foreach($module_list as $key => $val)-->
<tr>
<td class="nowr">
<!--@if(in_array($val->module,$favoriteModuleList))-->
<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-->
<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">
<td>
<button type="button" class="fvOn" onclick="doToggleFavoriteModule(this, '{$val->module}')" cond="in_array($val->module,$favoriteModuleList)">{$lang->favorite}({$lang->on})</button>
<button type="button" class="fvOff" onclick="doToggleFavoriteModule(this, '{$val->module}')" cond="!in_array($val->module,$favoriteModuleList)">{$lang->favorite}({$lang->off})</button>
</td>
<td class="title">
<p>
<!--@if($val->admin_index_act)-->
<a href="{getUrl('','module','admin','act',$val->admin_index_act)}">{$val->title}</a>
<!--@else-->
<strong>{$val->title}</strong>
<!--@end-->
<a href="{getUrl('','module','admin','act',$val->admin_index_act)}" cond="$val->admin_index_act">{$val->title}</a>
<strong cond="!$val->admin_index_act">{$val->title}</strong>
</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_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_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_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="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="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 class="nowr">{$val->version}</td>
<td class="nowr">
<td>{$val->version}</td>
<td>
<!--@foreach($val->author as $author)-->
<!--@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-->
{$author->name}
<!--@endif-->
<!--@endforeach-->
</td>
<td class="nowr">{$val->path}</td>
<td class="nowr">
<!--@if($val->delete_url)-->
<a href="{$val->delete_url}&amp;return_url={urlencode(getRequestUriByServerEnviroment())}">{$lang->cmd_delete}</a>
<!--@end-->
<td>{$val->path}</td>
<td>
<a href="{$val->delete_url}&amp;return_url={urlencode(getRequestUriByServerEnviroment())}" cond="$val->delete_url">{$lang->cmd_delete}</a>
</td>
</tr>
<!--@end-->
</tbody>
</table>
<script>
jQuery(function($){
$('.dsTg>tbody>tr[data-type1]').prependTo('tbody');
$('.dsTg>tbody>tr[data-type2]').prependTo('tbody');
});
</script>