* ajusted views.

* enhance function 'ajustModalPosition' in my.js.
 * ajusted style of table caption.
This commit is contained in:
Catouse
2014-08-04 08:44:01 +08:00
parent 93be4ffaae
commit 8778ea7089
6 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -64,7 +64,7 @@
<div class='col-md-6'>
<div class='panel panel-sm contentDiv'>
<div class='panel-heading'><?php echo html::icon($lang->icons['story']) . ' ' . $lang->build->linkStories;?></div>
<table class='table table table-borderless table-condensed table-hover'>
<table class='table table table-borderless table-condensed table-hover table-fixed'>
<thead>
<tr class='text-center'>
<th class='w-id text-left'><?php echo html::selectAll('story', 'checkbox') . ' ' . $lang->idAB;?></th>
@@ -88,7 +88,7 @@
<div class='col-md-6'>
<div class='panel panel-sm contentDiv'>
<div class='panel-heading'><?php echo html::icon($lang->icons['bug']) . ' ' . $lang->build->linkBugs;?></div>
<table class='table table table-borderless table-condensed table-hover'>
<table class='table table table-borderless table-condensed table-hover table-fixed'>
<thead>
<tr class='text-center'>
<th class='w-id text-left'><?php echo html::selectAll('bug', 'checkbox') . ' ' . $lang->idAB;?></th>
+2 -2
View File
@@ -69,7 +69,7 @@
<div class='tab-pane' id='testScope'>
<?php $countStories = count($stories); $countBugs = count($bugs); ?>
<table class='table table-hover table-condensed tablesorter mgb-20'>
<caption class='text-left'><i class='icon-lightbulb'></i> <strong><?php echo $lang->testtask->stories;?></strong> <span class='text-muted'><?php echo sprintf($lang->build->finishStories, $countStories);?></span></caption>
<caption class='text-left'><i class='icon-lightbulb'></i> <strong><?php echo $lang->testtask->stories;?></strong> <span class='text-muted'>(<?php echo $countStories?>)</span></caption>
<?php if($countStories > 0):?>
<thead>
<tr>
@@ -97,7 +97,7 @@
<?php endif;?>
</table>
<table class='table table-hover table-condensed tablesorter'>
<caption class='text-left'><i class='icon-bug'></i><strong><?php echo $lang->testtask->bugs;?></strong> <span class='text-muted'><?php echo sprintf($lang->build->resolvedBugs, $countBugs)?></span></caption>
<caption class='text-left'><i class='icon-bug'></i><strong><?php echo $lang->testtask->bugs;?></strong> <span class='text-muted'><?php echo $countBugs?></span></caption>
<thead>
<tr>
<th class='w-id'><?php echo $lang->idAB;?></th>
+1 -1
View File
@@ -17,7 +17,7 @@
<strong><?php echo $lang->upgrade->confirm;?></strong>
</div>
<div class='modal-body'>
<textarea rows='20' class='form-control'><?php echo $confirm;?></textarea>
<textarea rows='20' class='form-control' readonly='readonly'><?php echo $confirm;?></textarea>
</div>
<div class='modal-footer'><?php echo html::submitButton($lang->upgrade->sureExecute) . html::hidden('fromVersion', $fromVersion);?></div>
</div>
+2 -2
View File
@@ -16,12 +16,12 @@
<strong><?php echo $lang->upgrade->warnning;?></strong>
</div>
<div class='modal-body'>
<div class='alert alert-warning'>
<div class='alert alert-warning with-icon'>
<i class='icon-info-sign'></i>
<div class='content'><?php echo $lang->upgrade->warnningContent;?></div>
</div>
</div>
<div class='modal-footer'><?php echo html::linkButton($lang->upgrade->common, inlink('selectVersion'));?></div>
<div class='modal-footer'><?php echo html::linkButton($lang->upgrade->common, inlink('selectVersion'), 'self', '', 'btn-primary');?></div>
</div>
</div>
<?php include '../../common/view/footer.lite.html.php';?>
+2 -2
View File
@@ -1067,10 +1067,10 @@ function setModal()
if(setting.afterHidden && $.isFunction(setting.afterHidden)) $ajaxModal.on('hidden.bs.modal', setting.afterHidden);
}
function ajustModalPosition(position)
function ajustModalPosition(position, dialog)
{
position = position || 'fit';
var dialog = $('#ajaxModal .modal-dialog');
if(!dialog) dialog = $('#ajaxModal .modal-dialog');
if(position)
{
var half = Math.max(0, ($(window).height() - dialog.outerHeight())/2);
+1 -1
View File
@@ -97,7 +97,7 @@ hr.small {margin: 10px 0}
.table tr.active td, .table-hover>tbody>tr.active:hover>td, .table-hover>tbody>tr.active:hover>th, .table-striped>tbody>tr.active:nth-child(odd).active>td, .table-striped>tbody>tr.active:nth-child(odd)>th {background-color: #FCE6A2}
.table tr>td.active, .table tr>th.active, .table tr.active>td, .table tr.active>th {background-color: #FCE6A2}
.table caption {padding: 8px 20px; border-bottom: 1px solid #ddd; background: #fafafa;}
.table caption {padding: 8px 20px; border: 1px solid #DDD; border-bottom: 0; background: #fafafa;}
.table.table-condensed caption {padding: 6px 15px;}
/* Datepicker */