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

Commit

Permalink
Add plugin view specific styles
Browse files Browse the repository at this point in the history
Github Issue: gocd/gocd#7801
  • Loading branch information
Akanksha Kutal authored and akankshakutal committed Mar 31, 2020
1 parent 7f96dd7 commit 7d09748
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 90 deletions.
8 changes: 1 addition & 7 deletions check_mk-plugin/resources/views/checkMk.template.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
textarea {
min-height: 100px;
}

</style>
<div class="form_item_block">
<label>CheckMK server:<span class="asterisk">*</span>
Expand Down Expand Up @@ -44,7 +45,6 @@
<label>Hostname:<span class="asterisk">*</span>
</label>
<input type="text" ng-model="Hostname" ng-required="true">
</input>
<div role="alert">
<span class="error" color="red" ng-show="GOINPUTNAME[Hostname].$error.required">Required!</span>
</div>
Expand All @@ -53,7 +53,6 @@
<label>Host ip:<span class="asterisk">*</span>
</label>
<input type="text" ng-model="HostIp" ng-required="true">
</input>
<div role="alert">
<span class="error" color="red" ng-show="GOINPUTNAME[HostIp].$error.required">Required!</span>
</div>
Expand All @@ -62,7 +61,6 @@
<label>Folder path:<span class="asterisk">*</span>
</label>
<input type="text" ng-model="FolderPath" ng-required="true">
</input>
<div role="alert">
<span class="error" color="red" ng-show="GOINPUTNAME[FolderPath].$error.required">Required!</span>
</div>
Expand All @@ -73,7 +71,6 @@
<label>Hostname:<span class="asterisk">*</span>
</label>
<input type="text" ng-model="Hostname" ng-required="true">
</input>
<div role="alert">
<span class="error" color="red" ng-show="GOINPUTNAME[Hostname].$error.required">Required!</span>
</div>
Expand All @@ -82,7 +79,6 @@
<label>New Host ip:<span class="asterisk">*</span>
</label>
<input type="text" ng-model="HostIp" ng-required="true">
</input>
<div role="alert">
<span class="error" color="red" ng-show="GOINPUTNAME[HostIp].$error.required">Required!</span>
</div>
Expand All @@ -91,7 +87,6 @@
<label>New Folder path:<span class="asterisk">*</span>
</label>
<input type="text" ng-model="FolderPath" ng-required="true">
</input>
<div role="alert">
<span class="error" color="red" ng-show="GOINPUTNAME[FolderPath].$error.required">Required!</span>
</div>
Expand All @@ -102,7 +97,6 @@
<label>Hostname:<span class="asterisk">*</span>
</label>
<input type="text" ng-model="Hostname" ng-required="true">
</input>
<div role="alert">
<span class="error" color="red" ng-show="GOINPUTNAME[Hostname].$error.required">Required!</span>
</div>
Expand Down
40 changes: 9 additions & 31 deletions docker-machine-plugin/resources/views/task.template.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
<style>
.asterisk {
color : red;
}
</style>
<a href="https://docs.docker.com/machine/reference/create/">Docker create documentation</a>
<br>
<div class="form_item_block">
<div class="form_item_block">
<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>
<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>
<input type="text" ng-model="VMNAME" ng-required="true">
</input>
</div>
</div>
<div class="form_item_block">
Expand All @@ -16,12 +21,11 @@
<div class="form_item_block">
<label>Specify environment variables to set in the engine</label>
<input type="text" ng-model="ENGINE_ENV" ng-required="false">
</input>
</div>
<div class="form_item_block">
<label>Specify arbitrary daemon options with the syntax name=value. Multiple pairs can be provided separated by ','</label>
<label>Specify arbitrary daemon options with the syntax name=value. Multiple pairs can be provided separated by
','</label>
<input type="text" ng-model="ENGINE_OPT" ng-required="false">
</input>
</div>
<div class="form_item_block">
<H2>Driver used by create</H2>
Expand All @@ -38,27 +42,22 @@ <H2>Generic Driver</H2>
<div class="form_item_block">
<label>Path to the SSH user private key (must be accessible from go-agent!)</label>
<input type="text" ng-model="GENERIC_SSH_KEY">
</input>
</div>
<div class="form_item_block">
<label>SSH username used to connect</label>
<input type="text" ng-model="GENERIC_SSH_USER">
</input>
</div>
<div class="form_item_block">
<label>IP Address of host</label>
<input type="text" ng-model="GENERIC_IP_ADDRESS">
</input>
</div>
<div class="form_item_block">
<label>Port to use for SSH</label>
<input type="text" ng-model="GENERIC_SSH_PORT">
</input>
</div>
<div class="form_item_block">
<label>Port to use for Docker Daemon (Note: This flag will not work with boot2docker).</label>
<input type="text" ng-model="GENERIC_ENGINE_PORT">
</input>
</div>
</div>
</div>
Expand All @@ -68,43 +67,34 @@ <H2>VMWare VSphere Driver</H2>
<div class="form_item_block">
<label>Username</label>
<input type="text" ng-model="VSPHERE_USERNAME">
</input>
</div>
<div class="form_item_block">
<label>Password</label>
<input type="password" ng-model="VSPHERE_PASSWORD">
</input>
</div>
<div class="form_item_block">
<label>IP/hostname for vCenter or ESXi</label>
<input type="text" ng-model="VSPHERE_VCENTER">
</input>
</div>
<div class="form_item_block">
<label>DataCenter (for ESXi use ha-datacenter)</label>
<input type="text" ng-model="VSPHERE_DATACENTER">
</input>
</div>

<div class="form_item_block">
<label>CPU count</label>
<input type="text" ng-model="VSPHERE_CPU_COUNT">
</input>
</div>
<div class="form_item_block">
<label>Memory size</label>
<input type="text" ng-model="VSPHERE_MEMORY_SIZE">
</input>
</div>
<div class="form_item_block">
<label>Disk size</label>
<input type="text" ng-model="VSPHERE_DISK_SIZE">
</input>
</div>
<div class="form_item_block">
<label>URL of BootImage</label>
<input type="text" ng-model="VSPHERE_BOOT2DOCKER_URL">
</input>
</div>
</div>
</div>
Expand All @@ -114,63 +104,51 @@ <H2>Azure Driver</H2>
<div class="form_item_block">
<label>Your Azure Subscription ID</label>
<input type="text" ng-model="AZURE_SUBSCRIPTION_ID">
</input>
</div>
<div class="form_item_block">
<label>Azure environment (e.g. AzurePublicCloud, AzureChinaCloud)</label>
<input type="text" ng-model="AZURE_ENVIRONMENT">
</input>
</div>
<div class="form_item_block">
<label>Azure virtual machine image in the format of Publisher:Offer:Sku:Version</label>
<input type="text" ng-model="AZURE_IMAGE">
</input>
</div>
<div class="form_item_block">
<label>Azure region to create the virtual machine</label>
<input type="text" ng-model="AZURE_LOCATION">
</input>
</div>
<div class="form_item_block">
<label>Azure Resource Group name to create the resources in.</label>
<input type="text" ng-model="AZURE_RESOURCE_GROUP">
</input>
</div>
<div class="form_item_block">
<label>Size for Azure Virtual Machine</label>
<input type="text" ng-model="AZURE_SIZE">
</input>
</div>
<div class="form_item_block">
<label>Username for SSH login</label>
<input type="text" ng-model="AZURE_SSH_USER">
</input>
</div>
<div class="form_item_block">
<label>Azure Virtual Network name to connect the virtual machine</label>
<input type="text" ng-model="AZURE_VNET">
</input>
</div>
<div class="form_item_block">
<label>Azure Subnet Name to be used within the Virtual Network.</label>
<input type="text" ng-model="AZURE_SUBNET">
</input>
</div>
<div class="form_item_block">
<label>Private CIDR block. Used to create subnet if it does not exist. Must match in the case that the
subnet does exist.</label>
<input type="text" ng-model="AZURE_SUBNET_PREFIX">
</input>
</div>
<div class="form_item_block">
<label>Azure Availability Set to place the virtual machine into</label>
<input type="text" ng-model="AZURE_AVAILABILITY_SET">
</input>
</div>
<div class="form_item_block">
<label>Port number for Docker engine </label>
<input type="text" ng-model="AZURE_DOCKER_PORT">
</input>
</div>
</div>
</div>
5 changes: 5 additions & 0 deletions fortify-plugin/resources/views/task.template.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<style>
.asterisk {
color :red;
}
</style>
<div class="form_item_block">
<label>Username: <span class="asterisk">*</span>
</label>
Expand Down
61 changes: 31 additions & 30 deletions nessus-scan-plugin/resources/views/task.template.html
Original file line number Diff line number Diff line change
@@ -1,46 +1,47 @@
<style>
.asterisk {
color :red;
}
</style>
<div class="form_item_block">
<label>IP of server to scan:<span class="asterisk">*</span>
</label>
<input type="text" ng-model="ServerIp" ng-required="true">
</input>
<span class="form_error" ng-show="GOINPUTNAME[ServerIp].$error.ip">Incorrect IP Adress</span>
<label>IP of server to scan:<span class="asterisk">*</span>
</label>
<input type="text" ng-model="ServerIp" ng-required="true">
<span class="form_error" ng-show="GOINPUTNAME[ServerIp].$error.ip">Incorrect IP Adress</span>
</div>
<div class="form_item_block">
<label>Scan Template:<span class="asterisk">*</span>
</label>
<input type="text" ng-model="ScanTemplate" ng-required="true">
</input>
<label>Scan Template:<span class="asterisk">*</span>
</label>
<input type="text" ng-model="ScanTemplate" ng-required="true">
</div>
<div class="form_item_block">
<label>Policy ID:<span class="asterisk">*</span>
</label>
<input type="text" ng-model="Policy" ng-required="true">
</input>
<label>Policy ID:<span class="asterisk">*</span>
</label>
<input type="text" ng-model="Policy" ng-required="true">
</div>
<div class="form_item_block">
<label>Fail issue type:</label>
<select ng-model="IssueTypeFail">
<option value="critical">Critical</option>
<option value="high">High and Critical</option>
<option value="medium">Medium, High and Critical</option>
<option value="any">Any</option>
</select>
<label>Fail issue type:</label>
<select ng-model="IssueTypeFail">
<option value="critical">Critical</option>
<option value="high">High and Critical</option>
<option value="medium">Medium, High and Critical</option>
<option value="any">Any</option>
</select>
</div>
<div class="form_item_block">
<label>Nessus Api Url<span class="asterisk">*</span>
</label>
<input type="text" ng-model="NessusApiUrl" ng-required="true">
</input>
<label>Nessus Api Url<span class="asterisk">*</span>
</label>
<input type="text" ng-model="NessusApiUrl" ng-required="true">
</div>
<div class="form_item_block">
<label>Nessus Api Access Key:<span class="asterisk">*</span>
</label>
<textarea ng-model="NessusApiAccessKey" ng-required="true">
<label>Nessus Api Access Key:<span class="asterisk">*</span>
</label>
<textarea ng-model="NessusApiAccessKey" ng-required="true">
</textarea>
</div>
<div class="form_item_block">
<label>Nessus Api Secret Key<span class="asterisk">*</span>
</label>
<textarea ng-model="NessusApiAccessSecret" ng-required="true">
<label>Nessus Api Secret Key<span class="asterisk">*</span>
</label>
<textarea ng-model="NessusApiAccessSecret" ng-required="true">
</textarea>
</div>
44 changes: 22 additions & 22 deletions sonar-qualitygates-plugin/resources/views/task.template.html
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
<style>
.asterisk {
color :red;
}
</style>
<div class="form_item_block">
<label>Stage name where the sonar scan is executed</label>
<input type="text" ng-model="StageName" ng-required="false">
</input>
<label>Stage name where the sonar scan is executed</label>
<input type="text" ng-model="StageName" ng-required="false">
</div>
<div class="form_item_block">
<label>Job name where the sonar scan is executed</label>
<input type="text" ng-model="JobName" ng-required="false">
</input>
<label>Job name where the sonar scan is executed</label>
<input type="text" ng-model="JobName" ng-required="false">
</div>
<div class="form_item_block">
<label>Stage counter</label>
<input type="text" ng-model="JobCounter" ng-required="false">
</input>
<label>Stage counter</label>
<input type="text" ng-model="JobCounter" ng-required="false">
</div>
<div class="form_item_block">
<label>Key of Sonar Project<span class="asterisk">*</span>
</label>
<input type="text" ng-model="SonarProjectKey" ng-required="true">
</input>
<label>Key of Sonar Project<span class="asterisk">*</span>
</label>
<input type="text" ng-model="SonarProjectKey" ng-required="true">
</div>
<div class="form_item_block">
<label>Fail Quality Gate result:</label>
<select ng-model="IssueTypeFail">
<option value="error">Error and Missing</option>
<option value="warning">Warning, Error and Missing</option>
</select>
<label>Fail Quality Gate result:</label>
<select ng-model="IssueTypeFail">
<option value="error">Error and Missing</option>
<option value="warning">Warning, Error and Missing</option>
</select>
</div>
<div class="form_item_block">
<label>SonarQube Api Url<span class="asterisk">*</span>
</label>
<input type="text" ng-model="SonarApiUrl" ng-required="true">
</input>
<label>SonarQube Api Url<span class="asterisk">*</span>
</label>
<input type="text" ng-model="SonarApiUrl" ng-required="true">
</div>

0 comments on commit 7d09748

Please sign in to comment.