-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
notifications_configs.hbs
118 lines (109 loc) · 5.1 KB
/
notifications_configs.hbs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
{{!
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
}}
<div class="panel panel-default">
<div class="panel-heading" {{action "onToggleBlock" category target="view"}}>
<h3 class="panel-title">
<i {{bindAttr class=":pull-left :panel-toggle view.category.isCollapsed:icon-caret-right:icon-caret-down"}}></i>
<a class="panel-toggle category-header"><span class="category-name">{{view.category.displayName}}</span></a>
</h3>
</div>
<div class="panel-body collapse in" {{bindAttr style="view.isCategoryBodyVisible"}}>
<div class="service-config-section">
<form autocomplete="off" class="form-horizontal">
<div class="entry-row row">
{{view App.RadioButtonView name="createNotification"
classNames="radio"
labelTranslate="installer.step7.misc.notification.configure.later"
selectionBinding="view.createNotification"
value="no"}}
</div>
<div class="entry-row row">
{{view App.RadioButtonView name="createNotification"
classNames="radio"
labelTranslate="installer.step7.misc.notification.configure"
selectionBinding="view.createNotification" value="yes"}}
</div>
{{#each config in view.categoryConfigs}}
<div {{bindAttr class=":entry-row :row config.rowStyleClass config.isUserProperty:indent-1"}}>
<span {{bindAttr class="config.errorMessage:has-error :form-group :control-label-span :col-md-3"}}>
<label class="control-label">
{{formatWordBreak config.displayName}}
</label>
</span>
<div class="col-md-9">
<div {{bindAttr class="config.errorMessage:has-error config.warnMessage:warning: :form-group"}}>
<div class="row">
<div class="col-md-9">
{{view config.viewClass serviceConfigBinding="config" categoryConfigsAllBinding="view.categoryConfigsAll" }}
</div>
<div class="col-md-3">
{{#if config.isRemovable}}
{{#isAuthorized "SERVICE.MODIFY_CONFIGS"}}
{{#unless config.isComparison}}
<a class="btn-sm" href="#" data-toggle="tooltip"
{{action "removeProperty" config target="view"}}
{{translateAttr data-original-title="common.remove"}}>
<i class="icon-minus-sign"></i>
</a>
{{/unless}}
{{/isAuthorized}}
{{/if}}
{{#if config.errorMessage}}
<span class="help-block validation-block">{{config.errorMessage}}</span>
{{/if}}
{{#if config.warnMessage}}
<span class="help-block validation-block">{{config.warnMessage}}</span>
{{/if}}
</div>
</div>
</div>
</div>
</div>
{{/each}}
<div class="entry-row row indent-1">
{{view App.RadioButtonView
classNames="checkbox"
labelTranslate="installer.step7.misc.notification.use_tls"
name="tlsOrSsl"
disabledBinding="view.configsAreDisabled"
selectionBinding="view.tlsOrSsl"
value="tls"}}
</div>
<div class="entry-row row indent-1">
{{view App.RadioButtonView
classNames="checkbox"
labelTranslate="installer.step7.misc.notification.use_ssl"
name="tlsOrSsl" disabledBinding="view.configsAreDisabled"
selectionBinding="view.tlsOrSsl"
value="ssl"}}
</div>
{{#isAuthorized "SERVICE.MODIFY_CONFIGS"}}
{{#if view.canEdit}}
{{#unless view.configsAreDisabled}}
<div class="entry-row indent-1">
<a
href="#" {{action "showAddPropertyWindow" this target="view" }} >{{t installer.step7.config.addProperty}}
...</a>
</div>
{{/unless}}
{{/if}}
{{/isAuthorized}}
</form>
</div>
</div>
</div>