diff --git a/module/admin/view/log.html.php b/module/admin/view/log.html.php index 27344b33d8..a0c52c706d 100644 --- a/module/admin/view/log.html.php +++ b/module/admin/view/log.html.php @@ -10,7 +10,7 @@ * @link http://www.zentao.net */ ?> -app->getModuleRoot() . 'webhook/view/header.html.php';?> +app->getModuleRoot() . 'message/view/header.html.php';?>
@@ -31,4 +31,7 @@
+ diff --git a/module/message/css/setting.css b/module/message/css/setting.css index 30d69156c5..afc6e11335 100644 --- a/module/message/css/setting.css +++ b/module/message/css/setting.css @@ -1,2 +1,2 @@ -.checkbox-inline + .checkbox-inline {margin:0px;} -.checkbox-inline {margin:0px; margin-right:10px !important; width:100px;} +.checkbox-primary + .checkbox-primary {margin:0px;} +.checkbox-primary {margin:0px; margin-right:10px !important; width:100px;display:inline-block} diff --git a/module/message/view/header.html.php b/module/message/view/header.html.php index e452126d38..55e6d574e4 100644 --- a/module/message/view/header.html.php +++ b/module/message/view/header.html.php @@ -5,9 +5,9 @@ message->typeLink[$type])):?> message->typeLink[$type]);?> - createLink($moduleName, $methodName), "$typeName", '', "class='btn btn-link'")?> + createLink($moduleName, $methodName), "$typeName", '', "class='btn btn-link' id='{$type}Tab'")?> - createLink('message', 'setting'), "{$lang->message->setting}", '', "class='btn btn-link'")?> + createLink('message', 'setting'), "{$lang->message->setting}", '', "class='btn btn-link' id='settingTab'")?> diff --git a/module/message/view/setting.html.php b/module/message/view/setting.html.php index 0cd44f0bae..7db56e1eaf 100644 --- a/module/message/view/setting.html.php +++ b/module/message/view/setting.html.php @@ -11,64 +11,72 @@ */ ?> -
- - - - message->typeList as $type => $typeName):?> - - - - - message->objectTypes as $objectType => $actions):?> - - - message->setting) ? json_decode($config->message->setting, true) : $config->message->setting;?> +
+ +
- -
+ + message->typeList as $type => $typeName):?> - message->available[$type][$objectType])):?> - message->available[$type][$objectType] as $action) - { - if(!isset($objectActions[$objectType][$action])) continue; - $availableActions[$action] = $objectActions[$objectType][$action]; - } - ?> - - - - + - - - - - - - - -
- message->condition[$type][$objectType])) - { - $moduleName = $objectType == 'case' ? 'testcase' : $objectType; - $this->app->loadLang($moduleName); - foreach(explode(',', $config->message->condition[$type][$objectType]) as $condition) - { - $listKey = $condition . 'List'; - $list = isset($this->lang->$moduleName->$listKey) ? $this->lang->$moduleName->$listKey : $users; - echo html::select("messageSetting[$type][condition][$objectType][$condition][]", $list, isset($messageSetting[$type]['condition'][$objectType][$condition]) ? join(',', $messageSetting[$type]['condition'][$objectType][$condition]) : '', "class='form-control chosen' multiple data-placeholder='{$this->lang->$moduleName->$condition}'"); - } - } - ?> - +
+ ' /> + +
+
-
+ + + message->objectTypes as $objectType => $actions):?> + + +
+ ' /> + +
+ + message->setting) ? json_decode($config->message->setting, true) : $config->message->setting;?> + message->typeList as $type => $typeName):?> + message->available[$type][$objectType])):?> + message->available[$type][$objectType] as $action) + { + if(!isset($objectActions[$objectType][$action])) continue; + $availableActions[$action] = $objectActions[$objectType][$action]; + } + ?> + + message->condition[$type][$objectType])) + { + $moduleName = $objectType == 'case' ? 'testcase' : $objectType; + $this->app->loadLang($moduleName); + foreach(explode(',', $config->message->condition[$type][$objectType]) as $condition) + { + $listKey = $condition . 'List'; + $list = isset($this->lang->$moduleName->$listKey) ? $this->lang->$moduleName->$listKey : $users; + echo html::select("messageSetting[$type][condition][$objectType][$condition][]", $list, isset($messageSetting[$type]['condition'][$objectType][$condition]) ? join(',', $messageSetting[$type]['condition'][$objectType][$condition]) : '', "class='form-control chosen' multiple data-placeholder='{$this->lang->$moduleName->$condition}'"); + } + } + ?> + + + + + + + + + + + + + + + + diff --git a/module/webhook/css/create.css b/module/webhook/css/create.css index 19916caa95..66a543d549 100644 --- a/module/webhook/css/create.css +++ b/module/webhook/css/create.css @@ -1,3 +1,4 @@ -.labelWidth label.checkbox-inline {width: 20%;} -.checkbox-inline + .checkbox-inline {margin-left: 0px;} +.labelWidth .checkbox-primary {width: 20%; display:inline-block} +.checkbox-primary + .checkbox-primary {margin-left: 0px;} .objectType {margin-right: 5px !important;} +#paramsTR th{padding-left:30px;} diff --git a/module/webhook/css/edit.css b/module/webhook/css/edit.css index 19916caa95..66a543d549 100644 --- a/module/webhook/css/edit.css +++ b/module/webhook/css/edit.css @@ -1,3 +1,4 @@ -.labelWidth label.checkbox-inline {width: 20%;} -.checkbox-inline + .checkbox-inline {margin-left: 0px;} +.labelWidth .checkbox-primary {width: 20%; display:inline-block} +.checkbox-primary + .checkbox-primary {margin-left: 0px;} .objectType {margin-right: 5px !important;} +#paramsTR th{padding-left:30px;} diff --git a/module/webhook/js/create.js b/module/webhook/js/create.js index e4657394e3..123dc25fd7 100644 --- a/module/webhook/js/create.js +++ b/module/webhook/js/create.js @@ -28,7 +28,7 @@ $(function() } else { - $(this).parents('tr').find('input[type=checkbox]').removeAttr('checked'); + $(this).parents('tr').find('input[type=checkbox][disabled!=disabled]').removeAttr('checked'); } }); diff --git a/module/webhook/js/edit.js b/module/webhook/js/edit.js index 1609ce752a..e1af680ca5 100644 --- a/module/webhook/js/edit.js +++ b/module/webhook/js/edit.js @@ -20,7 +20,7 @@ $(function() } else { - $(this).parents('tr').find('input[type=checkbox]').removeAttr('checked'); + $(this).parents('tr').find('input[type=checkbox][disabled!=disabled]').removeAttr('checked'); } }); diff --git a/module/webhook/view/browse.html.php b/module/webhook/view/browse.html.php index d7590ffc92..9a46a5645e 100644 --- a/module/webhook/view/browse.html.php +++ b/module/webhook/view/browse.html.php @@ -12,44 +12,44 @@ ?> webhook->confirmDelete);?> -
- - - - recTotal}&recPerPage={$pager->recPerPage}&pageID={$pager->pageID}";?> - - - - - - - - - $webhook):?> - - - - - - - - - - - - - - -
webhook->id);?>webhook->type);?>webhook->name);?>webhook->url);?>actions;?>
webhook->typeList, $webhook->type);?>name;?>url;?> - createLink('webhook', 'delete', "webhookID=$id&confirm=yes"); - echo html::a("javascript:ajaxDelete(\"$deleteURL\",\"webhookList\",confirmDelete)", '', '', "title='{$lang->webhook->delete}' class='btn-icon'"); - } - ?> -
show();?>
-
+
+
+ + + + recTotal}&recPerPage={$pager->recPerPage}&pageID={$pager->pageID}";?> + + + + + + + + + $webhook):?> + + + + + + + + + +
webhook->id);?>webhook->type);?>webhook->name);?>webhook->url);?>actions;?>
webhook->typeList, $webhook->type);?>name;?>url;?> + createLink('webhook', 'delete', "webhookID=$id&confirm=yes"); + echo html::a("javascript:ajaxDelete(\"$deleteURL\",\"webhookList\",confirmDelete)", '', '', "title='{$lang->webhook->delete}' class='btn btn-link'"); + } + ?> +
+ + + +
+
diff --git a/module/webhook/view/create.html.php b/module/webhook/view/create.html.php index 8e201e6f7d..4564dd3362 100644 --- a/module/webhook/view/create.html.php +++ b/module/webhook/view/create.html.php @@ -13,57 +13,62 @@ webhook->note->typeList);?> -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
webhook->type;?>webhook->typeList, 'default', "class='form-control'");?>
webhook->name;?>
webhook->url;?>webhook->note->typeList['default'];?>
webhook->sendType;?>webhook->sendTypeList, '', "class='form-control'");?>webhook->note->async;?>
webhook->product;?>webhook->note->product;?>
webhook->project;?>webhook->note->project;?>
- - webhook->paramsList, 'text');?>
webhook->desc;?>
-
+
+
+
+

webhook->create;?>

+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
webhook->type;?>webhook->typeList, 'default', "class='form-control'");?>
webhook->name;?>
webhook->url;?>webhook->note->typeList['default'];?>
webhook->sendType;?>webhook->sendTypeList, '', "class='form-control'");?>webhook->note->async;?>
webhook->product;?>webhook->note->product;?>
webhook->project;?>webhook->note->project;?>
+
+ + +
+
webhook->paramsList, 'text');?>
webhook->desc;?>
+
+
diff --git a/module/webhook/view/edit.html.php b/module/webhook/view/edit.html.php index 4bf7adfdd7..5dc569a45f 100644 --- a/module/webhook/view/edit.html.php +++ b/module/webhook/view/edit.html.php @@ -12,61 +12,66 @@ ?> -
-
- - - - - - - - - - - - - - - - - type != 'dingding'):?> - - - - - - - - - - - - - - - - - type,") === false):?> - - - - - - - - - - - - - - -
webhook->type;?>webhook->typeList, $webhook->type, "class='form-control'");?>
webhook->name;?>name, "class='form-control'");?>
webhook->url;?>url, "class='form-control'");?>webhook->note->typeList, $webhook->type);?>
webhook->sendType;?>webhook->sendTypeList, $webhook->sendType, "class='form-control'");?>webhook->note->async;?>
webhook->product;?>products, "class='form-control chosen' multiple");?>webhook->note->product;?>
webhook->project;?>projects, "class='form-control chosen' multiple");?>webhook->note->project;?>
- - webhook->paramsList, $webhook->params);?>
webhook->desc;?>desc, "rows='3' class='form-control'");?>
-
+
+
+
+

webhook->edit;?>

+
+
+ + + + + + + + + + + + + + + + + type != 'dingding'):?> + + + + + + + + + + + + + + + + + type,") === false):?> + + + + + + + + + + + + + +
webhook->type;?>webhook->typeList, $webhook->type, "class='form-control'");?>
webhook->name;?>name, "class='form-control'");?>
webhook->url;?>url, "class='form-control'");?>webhook->note->typeList, $webhook->type);?>
webhook->sendType;?>webhook->sendTypeList, $webhook->sendType, "class='form-control'");?>webhook->note->async;?>
webhook->product;?>products, "class='form-control chosen' multiple");?>webhook->note->product;?>
webhook->project;?>projects, "class='form-control chosen' multiple");?>webhook->note->project;?>
+
+ + +
+
webhook->paramsList, $webhook->params);?>
webhook->desc;?>desc, "rows='3' class='form-control'");?>
+
+
diff --git a/module/webhook/view/log.html.php b/module/webhook/view/log.html.php index 24498abe57..51c73c8d4f 100644 --- a/module/webhook/view/log.html.php +++ b/module/webhook/view/log.html.php @@ -11,48 +11,50 @@ */ ?> -
-
- webhook->common);?> - name;?> - webhook->log;?> -
-
-
-
- " . $lang->webhook->setting, '', "class='btn btn-primary'");?> +
+
+

+ webhook->common);?> + name;?> + webhook->log;?> +

+
+
+
+ " . $lang->webhook->setting, '', "class='btn btn-primary'");?> +
+ + + + id}&orderBy=%s&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}&pageID={$pager->pageID}";?> + + + + + + + + + + $log):?> + + + + + + + + + + +
webhook->id);?>webhook->date);?>webhook->url);?>webhook->action);?>webhook->contentType);?>webhook->result);?>
date;?>url;?>actionURL, $log->action);?>contentType;?>result;?>
+ + +
- - - - id}&orderBy=%s&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}&pageID={$pager->pageID}";?> - - - - - - - - - - $log):?> - - - - - - - - - - - - - - - -
webhook->id);?>webhook->date);?>webhook->url);?>webhook->action);?>webhook->contentType);?>webhook->result);?>
date;?>url;?>actionURL, $log->action);?>contentType;?>result;?>
show();?>