Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.

Commit 77d84ae

Browse files
Akanksha KutalAkanksha Kutal
Akanksha Kutal
authored and
Akanksha Kutal
committed
Add plugin view specific styles
Github Issue: gocd/gocd#7801
1 parent 15fb1e9 commit 77d84ae

File tree

5 files changed

+68
-90
lines changed

5 files changed

+68
-90
lines changed

check_mk-plugin/resources/views/checkMk.template.html

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
textarea {
66
min-height: 100px;
77
}
8+
89
</style>
910
<div class="form_item_block">
1011
<label>CheckMK server:<span class="asterisk">*</span>
@@ -44,7 +45,6 @@
4445
<label>Hostname:<span class="asterisk">*</span>
4546
</label>
4647
<input type="text" ng-model="Hostname" ng-required="true">
47-
</input>
4848
<div role="alert">
4949
<span class="error" color="red" ng-show="GOINPUTNAME[Hostname].$error.required">Required!</span>
5050
</div>
@@ -53,7 +53,6 @@
5353
<label>Host ip:<span class="asterisk">*</span>
5454
</label>
5555
<input type="text" ng-model="HostIp" ng-required="true">
56-
</input>
5756
<div role="alert">
5857
<span class="error" color="red" ng-show="GOINPUTNAME[HostIp].$error.required">Required!</span>
5958
</div>
@@ -62,7 +61,6 @@
6261
<label>Folder path:<span class="asterisk">*</span>
6362
</label>
6463
<input type="text" ng-model="FolderPath" ng-required="true">
65-
</input>
6664
<div role="alert">
6765
<span class="error" color="red" ng-show="GOINPUTNAME[FolderPath].$error.required">Required!</span>
6866
</div>
@@ -73,7 +71,6 @@
7371
<label>Hostname:<span class="asterisk">*</span>
7472
</label>
7573
<input type="text" ng-model="Hostname" ng-required="true">
76-
</input>
7774
<div role="alert">
7875
<span class="error" color="red" ng-show="GOINPUTNAME[Hostname].$error.required">Required!</span>
7976
</div>
@@ -82,7 +79,6 @@
8279
<label>New Host ip:<span class="asterisk">*</span>
8380
</label>
8481
<input type="text" ng-model="HostIp" ng-required="true">
85-
</input>
8682
<div role="alert">
8783
<span class="error" color="red" ng-show="GOINPUTNAME[HostIp].$error.required">Required!</span>
8884
</div>
@@ -91,7 +87,6 @@
9187
<label>New Folder path:<span class="asterisk">*</span>
9288
</label>
9389
<input type="text" ng-model="FolderPath" ng-required="true">
94-
</input>
9590
<div role="alert">
9691
<span class="error" color="red" ng-show="GOINPUTNAME[FolderPath].$error.required">Required!</span>
9792
</div>
@@ -102,7 +97,6 @@
10297
<label>Hostname:<span class="asterisk">*</span>
10398
</label>
10499
<input type="text" ng-model="Hostname" ng-required="true">
105-
</input>
106100
<div role="alert">
107101
<span class="error" color="red" ng-show="GOINPUTNAME[Hostname].$error.required">Required!</span>
108102
</div>
Lines changed: 9 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1+
<style>
2+
.asterisk {
3+
color : red;
4+
}
5+
</style>
16
<a href="https://docs.docker.com/machine/reference/create/">Docker create documentation</a>
27
<br>
38
<div class="form_item_block">
49
<div class="form_item_block">
5-
<label>Name(s) of the virtual machine(s). Format is text[format,start,stop,step]text. You can enter multiple names, separated with a semicolon. <span class="asterisk">*</span></label>
10+
<label>Name(s) of the virtual machine(s). Format is text[format,start,stop,step]text. You can enter multiple
11+
names, separated with a semicolon. <span class="asterisk">*</span></label>
612
<input type="text" ng-model="VMNAME" ng-required="true">
7-
</input>
813
</div>
914
</div>
1015
<div class="form_item_block">
@@ -16,12 +21,11 @@
1621
<div class="form_item_block">
1722
<label>Specify environment variables to set in the engine</label>
1823
<input type="text" ng-model="ENGINE_ENV" ng-required="false">
19-
</input>
2024
</div>
2125
<div class="form_item_block">
22-
<label>Specify arbitrary daemon options with the syntax name=value. Multiple pairs can be provided separated by ','</label>
26+
<label>Specify arbitrary daemon options with the syntax name=value. Multiple pairs can be provided separated by
27+
','</label>
2328
<input type="text" ng-model="ENGINE_OPT" ng-required="false">
24-
</input>
2529
</div>
2630
<div class="form_item_block">
2731
<H2>Driver used by create</H2>
@@ -38,27 +42,22 @@ <H2>Generic Driver</H2>
3842
<div class="form_item_block">
3943
<label>Path to the SSH user private key (must be accessible from go-agent!)</label>
4044
<input type="text" ng-model="GENERIC_SSH_KEY">
41-
</input>
4245
</div>
4346
<div class="form_item_block">
4447
<label>SSH username used to connect</label>
4548
<input type="text" ng-model="GENERIC_SSH_USER">
46-
</input>
4749
</div>
4850
<div class="form_item_block">
4951
<label>IP Address of host</label>
5052
<input type="text" ng-model="GENERIC_IP_ADDRESS">
51-
</input>
5253
</div>
5354
<div class="form_item_block">
5455
<label>Port to use for SSH</label>
5556
<input type="text" ng-model="GENERIC_SSH_PORT">
56-
</input>
5757
</div>
5858
<div class="form_item_block">
5959
<label>Port to use for Docker Daemon (Note: This flag will not work with boot2docker).</label>
6060
<input type="text" ng-model="GENERIC_ENGINE_PORT">
61-
</input>
6261
</div>
6362
</div>
6463
</div>
@@ -68,43 +67,34 @@ <H2>VMWare VSphere Driver</H2>
6867
<div class="form_item_block">
6968
<label>Username</label>
7069
<input type="text" ng-model="VSPHERE_USERNAME">
71-
</input>
7270
</div>
7371
<div class="form_item_block">
7472
<label>Password</label>
7573
<input type="password" ng-model="VSPHERE_PASSWORD">
76-
</input>
7774
</div>
7875
<div class="form_item_block">
7976
<label>IP/hostname for vCenter or ESXi</label>
8077
<input type="text" ng-model="VSPHERE_VCENTER">
81-
</input>
8278
</div>
8379
<div class="form_item_block">
8480
<label>DataCenter (for ESXi use ha-datacenter)</label>
8581
<input type="text" ng-model="VSPHERE_DATACENTER">
86-
</input>
8782
</div>
88-
8983
<div class="form_item_block">
9084
<label>CPU count</label>
9185
<input type="text" ng-model="VSPHERE_CPU_COUNT">
92-
</input>
9386
</div>
9487
<div class="form_item_block">
9588
<label>Memory size</label>
9689
<input type="text" ng-model="VSPHERE_MEMORY_SIZE">
97-
</input>
9890
</div>
9991
<div class="form_item_block">
10092
<label>Disk size</label>
10193
<input type="text" ng-model="VSPHERE_DISK_SIZE">
102-
</input>
10394
</div>
10495
<div class="form_item_block">
10596
<label>URL of BootImage</label>
10697
<input type="text" ng-model="VSPHERE_BOOT2DOCKER_URL">
107-
</input>
10898
</div>
10999
</div>
110100
</div>
@@ -114,63 +104,51 @@ <H2>Azure Driver</H2>
114104
<div class="form_item_block">
115105
<label>Your Azure Subscription ID</label>
116106
<input type="text" ng-model="AZURE_SUBSCRIPTION_ID">
117-
</input>
118107
</div>
119108
<div class="form_item_block">
120109
<label>Azure environment (e.g. AzurePublicCloud, AzureChinaCloud)</label>
121110
<input type="text" ng-model="AZURE_ENVIRONMENT">
122-
</input>
123111
</div>
124112
<div class="form_item_block">
125113
<label>Azure virtual machine image in the format of Publisher:Offer:Sku:Version</label>
126114
<input type="text" ng-model="AZURE_IMAGE">
127-
</input>
128115
</div>
129116
<div class="form_item_block">
130117
<label>Azure region to create the virtual machine</label>
131118
<input type="text" ng-model="AZURE_LOCATION">
132-
</input>
133119
</div>
134120
<div class="form_item_block">
135121
<label>Azure Resource Group name to create the resources in.</label>
136122
<input type="text" ng-model="AZURE_RESOURCE_GROUP">
137-
</input>
138123
</div>
139124
<div class="form_item_block">
140125
<label>Size for Azure Virtual Machine</label>
141126
<input type="text" ng-model="AZURE_SIZE">
142-
</input>
143127
</div>
144128
<div class="form_item_block">
145129
<label>Username for SSH login</label>
146130
<input type="text" ng-model="AZURE_SSH_USER">
147-
</input>
148131
</div>
149132
<div class="form_item_block">
150133
<label>Azure Virtual Network name to connect the virtual machine</label>
151134
<input type="text" ng-model="AZURE_VNET">
152-
</input>
153135
</div>
154136
<div class="form_item_block">
155137
<label>Azure Subnet Name to be used within the Virtual Network.</label>
156138
<input type="text" ng-model="AZURE_SUBNET">
157-
</input>
158139
</div>
159140
<div class="form_item_block">
160141
<label>Private CIDR block. Used to create subnet if it does not exist. Must match in the case that the
161142
subnet does exist.</label>
162143
<input type="text" ng-model="AZURE_SUBNET_PREFIX">
163-
</input>
164144
</div>
165145
<div class="form_item_block">
166146
<label>Azure Availability Set to place the virtual machine into</label>
167147
<input type="text" ng-model="AZURE_AVAILABILITY_SET">
168-
</input>
169148
</div>
170149
<div class="form_item_block">
171150
<label>Port number for Docker engine </label>
172151
<input type="text" ng-model="AZURE_DOCKER_PORT">
173-
</input>
174152
</div>
175153
</div>
176154
</div>

fortify-plugin/resources/views/task.template.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
<style>
2+
.asterisk {
3+
color :red;
4+
}
5+
</style>
16
<div class="form_item_block">
27
<label>Username: <span class="asterisk">*</span>
38
</label>
Lines changed: 31 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,47 @@
1+
<style>
2+
.asterisk {
3+
color :red;
4+
}
5+
</style>
16
<div class="form_item_block">
2-
<label>IP of server to scan:<span class="asterisk">*</span>
3-
</label>
4-
<input type="text" ng-model="ServerIp" ng-required="true">
5-
</input>
6-
<span class="form_error" ng-show="GOINPUTNAME[ServerIp].$error.ip">Incorrect IP Adress</span>
7+
<label>IP of server to scan:<span class="asterisk">*</span>
8+
</label>
9+
<input type="text" ng-model="ServerIp" ng-required="true">
10+
<span class="form_error" ng-show="GOINPUTNAME[ServerIp].$error.ip">Incorrect IP Adress</span>
711
</div>
812
<div class="form_item_block">
9-
<label>Scan Template:<span class="asterisk">*</span>
10-
</label>
11-
<input type="text" ng-model="ScanTemplate" ng-required="true">
12-
</input>
13+
<label>Scan Template:<span class="asterisk">*</span>
14+
</label>
15+
<input type="text" ng-model="ScanTemplate" ng-required="true">
1316
</div>
1417
<div class="form_item_block">
15-
<label>Policy ID:<span class="asterisk">*</span>
16-
</label>
17-
<input type="text" ng-model="Policy" ng-required="true">
18-
</input>
18+
<label>Policy ID:<span class="asterisk">*</span>
19+
</label>
20+
<input type="text" ng-model="Policy" ng-required="true">
1921
</div>
2022
<div class="form_item_block">
21-
<label>Fail issue type:</label>
22-
<select ng-model="IssueTypeFail">
23-
<option value="critical">Critical</option>
24-
<option value="high">High and Critical</option>
25-
<option value="medium">Medium, High and Critical</option>
26-
<option value="any">Any</option>
27-
</select>
23+
<label>Fail issue type:</label>
24+
<select ng-model="IssueTypeFail">
25+
<option value="critical">Critical</option>
26+
<option value="high">High and Critical</option>
27+
<option value="medium">Medium, High and Critical</option>
28+
<option value="any">Any</option>
29+
</select>
2830
</div>
2931
<div class="form_item_block">
30-
<label>Nessus Api Url<span class="asterisk">*</span>
31-
</label>
32-
<input type="text" ng-model="NessusApiUrl" ng-required="true">
33-
</input>
32+
<label>Nessus Api Url<span class="asterisk">*</span>
33+
</label>
34+
<input type="text" ng-model="NessusApiUrl" ng-required="true">
3435
</div>
3536
<div class="form_item_block">
36-
<label>Nessus Api Access Key:<span class="asterisk">*</span>
37-
</label>
38-
<textarea ng-model="NessusApiAccessKey" ng-required="true">
37+
<label>Nessus Api Access Key:<span class="asterisk">*</span>
38+
</label>
39+
<textarea ng-model="NessusApiAccessKey" ng-required="true">
3940
</textarea>
4041
</div>
4142
<div class="form_item_block">
42-
<label>Nessus Api Secret Key<span class="asterisk">*</span>
43-
</label>
44-
<textarea ng-model="NessusApiAccessSecret" ng-required="true">
43+
<label>Nessus Api Secret Key<span class="asterisk">*</span>
44+
</label>
45+
<textarea ng-model="NessusApiAccessSecret" ng-required="true">
4546
</textarea>
4647
</div>
Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
1+
<style>
2+
.asterisk {
3+
color :red;
4+
}
5+
</style>
16
<div class="form_item_block">
2-
<label>Stage name where the sonar scan is executed</label>
3-
<input type="text" ng-model="StageName" ng-required="false">
4-
</input>
7+
<label>Stage name where the sonar scan is executed</label>
8+
<input type="text" ng-model="StageName" ng-required="false">
59
</div>
610
<div class="form_item_block">
7-
<label>Job name where the sonar scan is executed</label>
8-
<input type="text" ng-model="JobName" ng-required="false">
9-
</input>
11+
<label>Job name where the sonar scan is executed</label>
12+
<input type="text" ng-model="JobName" ng-required="false">
1013
</div>
1114
<div class="form_item_block">
12-
<label>Stage counter</label>
13-
<input type="text" ng-model="JobCounter" ng-required="false">
14-
</input>
15+
<label>Stage counter</label>
16+
<input type="text" ng-model="JobCounter" ng-required="false">
1517
</div>
1618
<div class="form_item_block">
17-
<label>Key of Sonar Project<span class="asterisk">*</span>
18-
</label>
19-
<input type="text" ng-model="SonarProjectKey" ng-required="true">
20-
</input>
19+
<label>Key of Sonar Project<span class="asterisk">*</span>
20+
</label>
21+
<input type="text" ng-model="SonarProjectKey" ng-required="true">
2122
</div>
2223
<div class="form_item_block">
23-
<label>Fail Quality Gate result:</label>
24-
<select ng-model="IssueTypeFail">
25-
<option value="error">Error and Missing</option>
26-
<option value="warning">Warning, Error and Missing</option>
27-
</select>
24+
<label>Fail Quality Gate result:</label>
25+
<select ng-model="IssueTypeFail">
26+
<option value="error">Error and Missing</option>
27+
<option value="warning">Warning, Error and Missing</option>
28+
</select>
2829
</div>
2930
<div class="form_item_block">
30-
<label>SonarQube Api Url<span class="asterisk">*</span>
31-
</label>
32-
<input type="text" ng-model="SonarApiUrl" ng-required="true">
33-
</input>
31+
<label>SonarQube Api Url<span class="asterisk">*</span>
32+
</label>
33+
<input type="text" ng-model="SonarApiUrl" ng-required="true">
3434
</div>
3535

0 commit comments

Comments
 (0)