* project: use has-warning instead of has-info.

This commit is contained in:
liugang
2023-11-15 11:07:52 +08:00
parent 4de470a860
commit 83d48cb3eb
3 changed files with 9 additions and 11 deletions
-1
View File
@@ -7,6 +7,5 @@
#copyProjects .btn.primary-outline {background-color: var(--color-primary-50);}
#copyProjects .btn.primary-outline:after {position: absolute; content: '\e92f'; font-family: ZentaoIcon; font-size: 20px; right: 25px;}
#copyProjects .btn.primary-outline span {color: rgba(var(--color-fore-rgb),var(--tw-text-opacity));}
.has-info {--tw-ring-color: var(--color-warning-500) !important;}
.productBox .line-btn {width: 48px; margin-right: 32px;}
.productBox div[id^=plan] {flex: 1 1;}
+5 -7
View File
@@ -3,14 +3,12 @@ $(function()
new zui.Tooltip('#programHover', {title: programTip, trigger: 'hover', placement: 'right', type: 'white', 'className': 'text-gray border border-light programTip'});
setWhite();
if(copyProjectID > 0) $('#end .date-picker input[type=text]').addClass('has-info')
});
$(document).on('click', 'button[type=submit]', function()
{
/* Remove init tips. */
$('.has-info').removeClass('has-info');
$('.has-warning').removeClass('has-warning');
$('.text-warning').remove();
})
@@ -115,19 +113,19 @@ $(document).on('keyup', '#projectName', function()
/* Click remove tips. */
$(document).on('click', '#name', function()
{
$('#name').removeClass('has-info');
$('#name').removeClass('has-warning');
$('#nameLabelInfo').remove();
});
$(document).on('click', '#code', function()
{
$('#code').removeClass('has-info');
$('#code').removeClass('has-warning');
$('#codeLabelInfo').remove();
});
$(document).on('click', '#end', function()
{
$('#end').removeClass('has-info');
$('#end').removeClass('has-warning');
$('#endLabelInfo').remove();
});
@@ -139,7 +137,7 @@ $(document).on('change', '#end', function()
$(document).on('click', '#days', function()
{
$('#days').removeClass('has-info');
$('#days').removeClass('has-warning');
$('#daysLabelInfo').remove();
});
+4 -3
View File
@@ -211,7 +211,7 @@ formPanel
(
set::name('name'),
set::value($copyProjectID ? $copyProject->name : ''),
$copyProjectID ? setClass('has-info') : null
$copyProjectID ? setClass('has-warning') : null
),
$copyProjectID ? div(setClass('text-warning'), $lang->project->copyProject->nameTips) : null
),
@@ -224,7 +224,7 @@ formPanel
(
set::name('code'),
set::value($copyProjectID ? $copyProject->code : ''),
$copyProjectID ? setClass('has-info') : null
$copyProjectID ? setClass('has-warning') : null
),
$copyProjectID ? div(setClass('text-warning'), $lang->project->copyProject->codeTips) : null
) : null,
@@ -312,6 +312,7 @@ formPanel
$lang->project->to,
datepicker
(
setClass('has-warning'),
set::name('end'),
set('id', 'end'),
set::placeholder($lang->project->end),
@@ -339,7 +340,7 @@ formPanel
inputControl
(
setClass('has-suffix'),
input(set::name('days'), $copyProjectID ? setClass('has-info') : null),
input(set::name('days'), $copyProjectID ? setClass('has-warning') : null),
div
(
setClass('input-control-suffix z-50'),