From 8856ad6cc492dc11bb522f1d31c5b79563dc21b5 Mon Sep 17 00:00:00 2001 From: qiyu-xie Date: Mon, 2 Aug 2021 14:30:53 +0800 Subject: [PATCH] * Modify create project and program button style. --- module/program/control.php | 2 +- module/program/view/browse.html.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/module/program/control.php b/module/program/control.php index c9de21ca0f..0efabdc13c 100644 --- a/module/program/control.php +++ b/module/program/control.php @@ -28,7 +28,7 @@ class program extends control */ public function browse($status = 'all', $orderBy = 'order_asc') { - if(common::hasPriv('program', 'create')) $this->lang->pageActions = html::a($this->createLink('program', 'create'), " " . $this->lang->program->create, '', "class='btn btn-secondary'"); + if(common::hasPriv('program', 'create')) $this->lang->pageActions = html::a($this->createLink('program', 'create'), " " . $this->lang->program->create, '', "class='btn btn-primary'"); $this->session->set('programList', $this->app->getURI(true), 'program'); $this->session->set('projectList', $this->app->getURI(true), 'project'); diff --git a/module/program/view/browse.html.php b/module/program/view/browse.html.php index 19899e96cb..1003efc783 100644 --- a/module/program/view/browse.html.php +++ b/module/program/view/browse.html.php @@ -27,9 +27,9 @@
config->maxVersion)):?> - ' . $lang->project->create, '', 'class="btn btn-primary" data-toggle="modal" data-target="#guideDialog"');?> + ' . $lang->project->create, '', 'class="btn btn-secondary" data-toggle="modal" data-target="#guideDialog"');?> config->systemMode == 'new'):?> - ' . $lang->project->create, '', 'class="btn btn-primary"');?> + ' . $lang->project->create, '', 'class="btn btn-secondary"');?> pageActions)) echo $lang->pageActions;?>