From 73024e005e1e72286f2f7f83bf56e0512f1bf913 Mon Sep 17 00:00:00 2001 From: leiyong <1549684884@qq.com> Date: Tue, 5 Jul 2022 06:02:50 +0000 Subject: [PATCH 01/27] * Finish task#59520. --- module/stakeholder/config.php | 2 +- module/stakeholder/js/create.js | 2 ++ module/stakeholder/model.php | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/module/stakeholder/config.php b/module/stakeholder/config.php index 574eeef4ce..30a3aae3e5 100644 --- a/module/stakeholder/config.php +++ b/module/stakeholder/config.php @@ -1,6 +1,6 @@ stakeholder->create = new stdclass(); -$config->stakeholder->create->requiredFields = 'name,company'; +$config->stakeholder->create->requiredFields = 'user,name,company'; $config->stakeholder->expect = new stdclass(); $config->stakeholder->expect->requiredFields = 'expect,progress'; diff --git a/module/stakeholder/js/create.js b/module/stakeholder/js/create.js index 501390e135..bb9d4e8632 100644 --- a/module/stakeholder/js/create.js +++ b/module/stakeholder/js/create.js @@ -2,6 +2,8 @@ $(function() { $('input[name*=from]').change(function() { + $('#userLabel').remove(); + if($(this).val() == 'team') { $('.user-info').addClass('hidden'); diff --git a/module/stakeholder/model.php b/module/stakeholder/model.php index 309d719b83..b9a7d84002 100644 --- a/module/stakeholder/model.php +++ b/module/stakeholder/model.php @@ -26,7 +26,7 @@ class stakeholderModel extends model { if(!$account) { - dao::$errors[] = $this->lang->stakeholder->userEmpty; + dao::$errors['user'] = $this->lang->stakeholder->userEmpty; return false; } $user = new stdclass(); @@ -43,7 +43,7 @@ class stakeholderModel extends model { if(!$data->name) { - dao::$errors[] = $this->lang->stakeholder->nameEmpty; + dao::$errors['name'] = $this->lang->stakeholder->nameEmpty; return false; } From 480f3f49a162ceed6974e024aa9b8f831aef2332 Mon Sep 17 00:00:00 2001 From: leiyong <1549684884@qq.com> Date: Tue, 5 Jul 2022 06:32:05 +0000 Subject: [PATCH 02/27] * Finish task#59523. --- module/programplan/js/create.js | 6 ++--- module/programplan/view/create.html.php | 33 +++++++++++++------------ 2 files changed, 19 insertions(+), 20 deletions(-) diff --git a/module/programplan/js/create.js b/module/programplan/js/create.js index e87c94a816..79a3c250ae 100644 --- a/module/programplan/js/create.js +++ b/module/programplan/js/create.js @@ -11,10 +11,8 @@ function addItem(obj) $(obj).closest('tr').after('
| - | > | +> | >
@@ -190,15 +191,15 @@
|
'>stage->typeList, '', "class='form-control'");?> | >execution->aclList, 'open', "class='form-control' $class");?> | ->programplan->milestoneList, 0);?> | +>programplan->milestoneList, 0);?> | > | > | config->edition == 'max'):?> -+ | - | + | From c85e72f4da2484979335dd75ff71c205b296d18c Mon Sep 17 00:00:00 2001 From: leiyong <1549684884@qq.com> Date: Tue, 5 Jul 2022 06:53:22 +0000 Subject: [PATCH 03/27] * Adjust code. --- module/programplan/view/create.html.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/module/programplan/view/create.html.php b/module/programplan/view/create.html.php index ec50489d55..521bfa5d6c 100644 --- a/module/programplan/view/create.html.php +++ b/module/programplan/view/create.html.php @@ -95,7 +95,7 @@ | > | > | config->edition == 'max'):?> -+ | @@ -127,7 +127,7 @@ | > | config->edition == 'max'):?> output) ? 0 : explode(',', $plan->output);?> -+ | @@ -155,7 +155,7 @@ | > | > | config->edition == 'max'):?> -+ | @@ -197,7 +197,7 @@ | > | > | config->edition == 'max'):?> -+ |
From cf9d677ffaf46d8ff256b917f33a5412b394d7c1 Mon Sep 17 00:00:00 2001
From: leiyong <1549684884@qq.com>
Date: Tue, 5 Jul 2022 08:08:17 +0000
Subject: [PATCH 04/27] * Finish task#59528.
---
module/search/lang/de.php | 1 +
module/search/lang/en.php | 1 +
module/search/lang/fr.php | 1 +
module/search/lang/zh-cn.php | 1 +
module/search/view/buildform.html.php | 14 +++++++-------
5 files changed, 11 insertions(+), 7 deletions(-)
diff --git a/module/search/lang/de.php b/module/search/lang/de.php
index 21f5a94ed4..d288633203 100644
--- a/module/search/lang/de.php
+++ b/module/search/lang/de.php
@@ -30,6 +30,7 @@ $lang->search->noQuery = 'Keine Suche gespeichert';
$lang->search->onMenuBar = 'In Menü anzeigen';
$lang->search->custom = 'Eigene';
$lang->search->setCommon = 'Set as public query criteria';
+$lang->search->saveCondition = 'Save search options';
$lang->search->account = 'Konto';
$lang->search->module = 'Module';
diff --git a/module/search/lang/en.php b/module/search/lang/en.php
index 794fb39cbf..9f98c458a8 100644
--- a/module/search/lang/en.php
+++ b/module/search/lang/en.php
@@ -30,6 +30,7 @@ $lang->search->noQuery = 'No query is saved yet!';
$lang->search->onMenuBar = 'Show in Menu';
$lang->search->custom = 'Custom';
$lang->search->setCommon = 'Set as public query criteria';
+$lang->search->saveCondition = 'Save search options';
$lang->search->account = 'Account';
$lang->search->module = 'Module';
diff --git a/module/search/lang/fr.php b/module/search/lang/fr.php
index 220cbced6e..fe4d94d716 100644
--- a/module/search/lang/fr.php
+++ b/module/search/lang/fr.php
@@ -30,6 +30,7 @@ $lang->search->noQuery = 'Aucune query de sauvegardée !';
$lang->search->onMenuBar = 'Montrer dans le Menu';
$lang->search->custom = 'Personnalisation';
$lang->search->setCommon = 'Set as public query criteria';
+$lang->search->saveCondition = 'Save search options';
$lang->search->account = 'Compte';
$lang->search->module = 'Module';
diff --git a/module/search/lang/zh-cn.php b/module/search/lang/zh-cn.php
index 67106e3256..683212dffd 100644
--- a/module/search/lang/zh-cn.php
+++ b/module/search/lang/zh-cn.php
@@ -30,6 +30,7 @@ $lang->search->noQuery = '还没有保存查询!';
$lang->search->onMenuBar = '显示在菜单栏';
$lang->search->custom = '自定义';
$lang->search->setCommon = '设为公共查询条件';
+$lang->search->saveCondition = '保存搜索条件';
$lang->search->account = '用户名';
$lang->search->module = '模块';
diff --git a/module/search/view/buildform.html.php b/module/search/view/buildform.html.php
index f8b92d3422..1b92c21ccf 100644
--- a/module/search/view/buildform.html.php
+++ b/module/search/view/buildform.html.php
@@ -64,6 +64,7 @@ $formId = 'searchForm-' . uniqid('');
html[lang^='zh-'] .fieldWidth {width: 110px !important;}
html[lang^='zh-'] .operatorWidth {width: 90px !important;}
.table tbody tr td input {display: block !important;}
+#save-query {color: #0061f2;}
@@ -243,12 +244,9 @@ foreach($fieldParams as $fieldName => $param)
echo html::hidden('actionURL', $actionURL);
echo html::hidden('groupItems', $groupItems);
echo html::submitButton($lang->search->common, '', 'btn btn-primary') . " ";
- if($style != 'simple')
- {
- if(common::hasPriv('search', 'saveQuery')) echo html::a($this->createLink('search', 'saveQuery', "module=$module&onMenuBar=$onMenuBar"), $lang->save, '', "class='btn-save-form btn btn-secondary iframe' id='save-query'") . " ";
- echo html::commonButton($lang->search->reset, '', 'btn-reset-form btn');
- }
+ if($style != 'simple') echo html::commonButton($lang->search->reset, '', 'btn-reset-form btn');
echo html::commonButton('', '', 'btn-expand-form btn btn-info pull-right');
+ if($style != 'simple' and common::hasPriv('search', 'saveQuery')) echo html::a($this->createLink('search', 'saveQuery', "module=$module&onMenuBar=$onMenuBar"), ' ' . $lang->search->saveCondition, '', "class='btn-save-form btn btn-link iframe pull-right' id='save-query'");
echo html::hidden('formType', zget($formSession, 'formType', 'lite'));
?>
|
@@ -307,9 +305,11 @@ $(function()
$select.picker(pickerOptions);
});
- $('#queryBox select, #queryBox input').change(function(){
- $('#save-query').attr("disabled","disabled");
+ $('#queryBox select, #queryBox input').change(function()
+ {
+ $('#save-query').attr("disabled", "disabled");
})
+
/* Toggle user queries action. */
$('#toggle-queries').click(function()
{
From 53ed45658e8c4ed77e9b9af12a2d448ae6fbeb41 Mon Sep 17 00:00:00 2001
From: leiyong <1549684884@qq.com>
Date: Tue, 5 Jul 2022 08:25:10 +0000
Subject: [PATCH 05/27] * Adjust CSS.
---
module/execution/css/create.css | 2 ++
1 file changed, 2 insertions(+)
diff --git a/module/execution/css/create.css b/module/execution/css/create.css
index cb9f540c66..fc8eea4d43 100644
--- a/module/execution/css/create.css
+++ b/module/execution/css/create.css
@@ -30,3 +30,5 @@
#dateRange {vertical-align: top; padding-top: 13px;}
#dateRangeOption {vertical-align: top; padding-top: 13px;}
+#beginLabel {white-space: nowrap;}
+#endLabel {white-space: nowrap;}
From 0d38d331d30d9c5cb01b6777a3daff473fc2d776 Mon Sep 17 00:00:00 2001
From: caoyanyi gitlab->project->name);?> | gitlab->lastUpdate;?> | -actions;?> | +actions;?> |
|---|
| " + lang.sshClone + " | "; + content += "|
|---|---|
| "; + content += " | "; + content += " |
| " + lang.httpClone + " | "; + content += "|
| "; + content += " | "; + content += " |
| "; + content += " | "; + content += " | "; + content += "
| " + lang.sshClone + " | "; content += "||
|---|---|---|
| "; + content += " | "; content += " | "; content += " |
| " + lang.httpClone + " | "; content += "||
| "; + content += " | "; content += " | "; content += " |
| "; + content += " | "; content += " | "; content += " | "; content += "