* Fix bug #28531.
This commit is contained in:
@@ -1,2 +1,16 @@
|
||||
.body-modal > .main {padding: 20px;}
|
||||
.body-modal > .main .table-form {border: 1px solid #ddd;}
|
||||
|
||||
#taskTeamEditor tr {padding: 8px 7px 8px 7px;}
|
||||
#taskTeamEditor td .chosen-single .chosen-search input,
|
||||
#taskTeamEditor tr td .chosen-single {height: 35px; line-height: 24px;}
|
||||
#taskTeamEditor td .chosen-single .chosen-search::before {top: 10px;}
|
||||
#taskTeamEditor tr td:first-child {width: 40px; position: relative;}
|
||||
.team-number {display: inline-block; width: 20px; height: 20px; line-height: 20px; border-radius: 10px; text-align: center; background: #f4f5f7;}
|
||||
#taskTeamEditor tr td:first-child .icon { position: absolute; top: 42px; left: 10.5px; display: block; font-size: 8px; color: #9ea3bd;;}
|
||||
#taskTeamEditor tr:last-child td:first-child .icon, #taskTeamEditor tr.member-last td:first-child .icon {display: none;}
|
||||
|
||||
#modalTeam .modal-content input[type="text"]::input-placeholder{color: #c4c4c4;text-align: left;}
|
||||
#modalTeam .modal-content input[type="text"]::-webkit-input-placeholder{color: #c4c4c4;text-align: left;}
|
||||
#modalTeam .modal-content input[type="text"]::-moz-placeholder{color: #c4c4c4;text-align: left;}
|
||||
#modalTeam .modal-content input[type="text"]::-ms-input-placeholder{color: #c4c4c4;text-align: left;}
|
||||
|
||||
@@ -33,16 +33,3 @@
|
||||
#modalTeam .modal-header {height: 44px; padding: 10px 20px; margin: 0;}
|
||||
#modalTeam .modal-header .modal-title {font-size: 13px; line-height: 24px;}
|
||||
#modalTeam .modal-body {padding: 12px 13px 20px; max-height: 296px!important; overflow-y: scroll!important;}
|
||||
#taskTeamEditor tr {padding: 8px 7px 8px 7px;}
|
||||
#taskTeamEditor td .chosen-single .chosen-search input,
|
||||
#taskTeamEditor tr td .chosen-single {height: 35px; line-height: 24px;}
|
||||
#taskTeamEditor td .chosen-single .chosen-search::before {top: 10px;}
|
||||
#taskTeamEditor tr td:first-child {width: 40px; position: relative;}
|
||||
.team-number {display: inline-block; width: 20px; height: 20px; line-height: 20px; border-radius: 10px; text-align: center; background: #f4f5f7;}
|
||||
#taskTeamEditor tr td:first-child .icon { position: absolute; top: 42px; left: 10.5px; display: block; font-size: 8px; color: #9ea3bd;;}
|
||||
#taskTeamEditor tr:last-child td:first-child .icon {display: none;}
|
||||
|
||||
#modalTeam .modal-content input[type="text"]::input-placeholder{color: #c4c4c4;text-align: left;}
|
||||
#modalTeam .modal-content input[type="text"]::-webkit-input-placeholder{color: #c4c4c4;text-align: left;}
|
||||
#modalTeam .modal-content input[type="text"]::-moz-placeholder{color: #c4c4c4;text-align: left;}
|
||||
#modalTeam .modal-content input[type="text"]::-ms-input-placeholder{color: #c4c4c4;text-align: left;}
|
||||
|
||||
@@ -8,16 +8,3 @@
|
||||
#modalTeam .modal-content {padding: 20px 13px 0; height: 340px;max-height: 296px!important; overflow-y: scroll!important;}
|
||||
#modalTeam .modal-header {height: 44px; padding: 10px 20px; margin: 0; }
|
||||
#modalTeam .modal-header .modal-title {font-size: 13px; line-height: 24px;}
|
||||
#taskTeamEditor tr {padding: 8px 7px 8px 7px;}
|
||||
#taskTeamEditor td .chosen-single .chosen-search input,
|
||||
#taskTeamEditor tr td .chosen-single {height: 35px; line-height: 24px;}
|
||||
#taskTeamEditor td .chosen-single .chosen-search::before {top: 10px;}
|
||||
#taskTeamEditor tr td:first-child {width: 40px; position: relative;}
|
||||
.team-number {display: inline-block; width: 20px; height: 20px; line-height: 20px; border-radius: 10px; text-align: center; background: #f4f5f7;}
|
||||
#taskTeamEditor tr td:first-child .icon { position: absolute; top: 42px; left: 10.5px; display: block; font-size: 8px; color: #9ea3bd;;}
|
||||
#taskTeamEditor tr:last-child td:first-child .icon, #taskTeamEditor tr.member-last td:first-child .icon {display: none;}
|
||||
|
||||
#modalTeam .modal-content input[type="text"]::input-placeholder{color: #c4c4c4;text-align: left;}
|
||||
#modalTeam .modal-content input[type="text"]::-webkit-input-placeholder{color: #c4c4c4;text-align: left;}
|
||||
#modalTeam .modal-content input[type="text"]::-moz-placeholder{color: #c4c4c4;text-align: left;}
|
||||
#modalTeam .modal-content input[type="text"]::-ms-input-placeholder{color: #c4c4c4;text-align: left;}
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
#taskTeamEditor .estimateBox input {background-color: #fff; border-right-width: 0px;}
|
||||
#taskTeamEditor input, #taskTeamEditor span, #taskTeamEditor .chosen-container > a {border-color: #eee;}
|
||||
</style>
|
||||
<?php $hiddenArrow = (empty($task->mode) or $task->mode == 'linear') ? '' : 'hidden';?>
|
||||
<?php $i = 1;?>
|
||||
<?php if(!empty($task->team)):?>
|
||||
<?php foreach($task->team as $member):?>
|
||||
@@ -27,7 +28,7 @@ if($task->mode == 'multi' and $app->rawMethod == 'activate') $hourDisabled = fal
|
||||
<tr class='member member-<?php echo $memberStatus;?>' data-estimate='<?php echo (float)$member->estimate?>' data-consumed='<?php echo (float)$member->consumed?>' data-left='<?php echo (float)$member->left?>'>
|
||||
<td>
|
||||
<span class="team-number"><?php echo $i;?></span>
|
||||
<i class="icon icon-angle-down"></i>
|
||||
<i class="icon icon-angle-down <?php echo $hiddenArrow;?>"></i>
|
||||
</td>
|
||||
<td class='w-250px'>
|
||||
<?php echo html::select("team[]", $members, $member->account, "class='form-control chosen'" . ($memberDisabled ? ' disabled' : ''))?>
|
||||
@@ -58,7 +59,7 @@ if($task->mode == 'multi' and $app->rawMethod == 'activate') $hourDisabled = fal
|
||||
<tr class='template teamTemplate member member-wait'>
|
||||
<td>
|
||||
<span class="team-number"><?php echo $i;?></span>
|
||||
<i class="icon icon-angle-down"></i>
|
||||
<i class="icon icon-angle-down <?php echo $hiddenArrow;?>"></i>
|
||||
</td>
|
||||
<td class='w-250px'>
|
||||
<?php echo html::select("team[]", $members, '', "class='form-control chosen'")?>
|
||||
@@ -226,6 +227,10 @@ $(document).ready(function()
|
||||
{
|
||||
$newRow.removeClass('highlight');
|
||||
}, 1600);
|
||||
|
||||
var taskMode = $('#mode').val();
|
||||
if(taskMode == 'multi') $('#taskTeamEditor tr.member .icon-angle-down').addClass('hidden');
|
||||
|
||||
disableMembers();
|
||||
adjustButtons();
|
||||
setLineNumber();
|
||||
@@ -278,9 +283,11 @@ $(document).ready(function()
|
||||
if($(this).val() == 'multi')
|
||||
{
|
||||
disableMembers();
|
||||
$('#taskTeamEditor tr.member .icon-angle-down').addClass('hidden');
|
||||
}
|
||||
else
|
||||
{
|
||||
$('#taskTeamEditor tr.member .icon-angle-down').removeClass('hidden');
|
||||
$taskTeamEditor.find('select#team').each(function()
|
||||
{
|
||||
$(this).find('option:disabled').removeAttr('disabled').trigger("chosen:updated");
|
||||
|
||||
Reference in New Issue
Block a user