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 for fetch any artifact
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 735c546 commit 7f96dd7
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 15 deletions.
13 changes: 6 additions & 7 deletions docker-compose-plugin/resources/views/task.template.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@
color : red;
}
.checkbox_row {
display: flex;
}
.checkbox_label{
line-height: 1 !important;
margin-left: 5px !important;
}

display: flex;
}
.checkbox_label {
line-height: 1 !important;
margin-left: 5px !important;
}
</style>
<div class="form_item_block">
<h2>Docker Compose</h2>
Expand Down
24 changes: 16 additions & 8 deletions fetch-any-artifact-plugin/resources/views/task.template.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
<style>
.checkbox_row {
display: flex;
}
.checkbox_label {
line-height: 1 !important;
margin-left: 5px !important;
}
.asterisk {
color :red;
}
</style>
<!-- <div class="form_item_block">
<div class="checkbox_row">
<input id="Masking2" type="checkbox" ng-model="Masking2" ng-init="Masking2 = Masking"
Expand All @@ -9,35 +21,32 @@
</div> -->
<div class="form_item_block">
<h1>Prerequisites</h1>
This plugin uses the environment variables <b>GO_BUILD_USER</b> and <b>GO_BUILD_USER_PASSWORD</b> to access the go-servers REST API.
This plugin uses the environment variables <b>GO_BUILD_USER</b> and <b>GO_BUILD_USER_PASSWORD</b> to access the
go-servers REST API.
<a href="https://docs.go.cd/current/faq/dev_use_current_revision_in_build.html">See documentation in GoCD</a>
</div>
<div class="form_item_block">
<label>Pipeline
</label>
<input type="text" ng-model="FAA_PIPELINE_NAME">
</input>
<span class="form_error" ng-show="GOINPUTNAME[FAA_PIPELINE_NAME].$error.server">{{ GOINPUTNAME[FAA_PIPELINE_NAME].$error.server }}</span>
</div>
<div class="form_item_block">
<label>Stage
</label>
<input type="text" ng-model="FAA_STAGE_NAME">
</input>
<span class="form_error" ng-show="GOINPUTNAME[FAA_STAGE_NAME].$error.server">{{ GOINPUTNAME[FAA_STAGE_NAME].$error.server }}</span>
</div>
<div class="form_item_block">
<label>Job
</label>
<input type="text" ng-model="FAA_JOB_NAME">
</input>
<span class="form_error" ng-show="GOINPUTNAME[FAA_JOB_NAME].$error.server">{{ GOINPUTNAME[FAA_JOB_NAME].$error.server }}</span>
</div>
<div class="form_item_block">
<label>Source<span class="asterisk">*</span>
</label>
<input type="text" ng-model="FAA_ARTIFACT_SOURCE" ng-required="true">
</input>
<span class="form_error" ng-show="GOINPUTNAME[FAA_ARTIFACT_SOURCE].$error.server">{{ GOINPUTNAME[FAA_ARTIFACT_SOURCE].$error.server }}</span>
</div>
<div class="form_item_block">
Expand All @@ -46,7 +55,7 @@ <h1>Prerequisites</h1>
ng-init="FAA_ARTIFACT_IS_FILE2 = FAA_ARTIFACT_IS_FILE"
ng-change="FAA_ARTIFACT_IS_FILE = FAA_ARTIFACT_IS_FILE2" ng-true-value="true" ng-false-value="false">
<input id="specifytargets" type="hidden" ng-model="FAA_ARTIFACT_IS_FILE" value="{{FAA_ARTIFACT_IS_FILE}}">
<label>Artifact is file
<label class="checkbox_label">Artifact is file
</label>
</div>
</div>
Expand All @@ -56,14 +65,13 @@ <h1>Prerequisites</h1>
ng-init="FAA_FETCH_IF_FAILED2 = FAA_FETCH_IF_FAILED"
ng-change="FAA_FETCH_IF_FAILED = FAA_FETCH_IF_FAILED2" ng-true-value="true" ng-false-value="false">
<input id="fetchiffailed" type="hidden" ng-model="FAA_FETCH_IF_FAILED" value="{{FAA_FETCH_IF_FAILED}}">
<label>Fetch even if failed
<label class="checkbox_label">Fetch even if failed
</label>
</div>
</div>
<div class="form_item_block">
<label>Destination
</label>
<input type="text" ng-model="FAA_ARTIFACT_DESTINATION">
</input>
<span class="form_error" ng-show="GOINPUTNAME[FAA_ARTIFACT_DESTINATION].$error.server">{{ GOINPUTNAME[FAA_ARTIFACT_DESTINATION].$error.server }}</span>
</div>

0 comments on commit 7f96dd7

Please sign in to comment.