custom trigger: initial setup wizard
This commit is contained in:
parent
c5272f3545
commit
7d1d53ebcb
8 changed files with 86 additions and 31 deletions
|
@ -88,7 +88,7 @@
|
|||
</button>
|
||||
<ul class="dropdown-menu dropdown-menu-right pull-right">
|
||||
<li ng-repeat="type in TriggerService.getTypes()">
|
||||
<a href="{{ TriggerService.getRedirectUrl(type, repository.namespace, repository.name) }}">
|
||||
<a href="{{ TriggerService.getRedirectUrl(type, repository.namespace, repository.name) }}" target="{{ TriggerService.getMetadata(type).target }}">
|
||||
<i class="fa fa-lg" ng-class="TriggerService.getMetadata(type).icon"></i>
|
||||
{{ TriggerService.getTitle(type) }}
|
||||
</a>
|
||||
|
@ -184,4 +184,4 @@
|
|||
counter="showTriggerStartDialogCounter"
|
||||
start-build="startTrigger(trigger, parameters)"></div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -19,6 +19,11 @@
|
|||
next-step-counter="nextStepCounter" current-step-valid="state.stepValid"
|
||||
analyze="checkAnalyze(isValid)"></div>
|
||||
</div>
|
||||
<div ng-switch-when="custom">
|
||||
<div class="trigger-setup-custom" repository="repository" trigger="trigger"
|
||||
next-set-counter="nextStepCounter" current-setp-valid="state.stepValid"
|
||||
analyze="checkAnalyze(isValid)"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Loading pull information -->
|
||||
|
|
16
static/directives/trigger-setup-custom.html
Normal file
16
static/directives/trigger-setup-custom.html
Normal file
|
@ -0,0 +1,16 @@
|
|||
<div class="trigger-setup-custom-element">
|
||||
<!-- Current selected info, is this even necessary? -->
|
||||
<div class="selected-info" ng-show="nextStepCounter > 0">
|
||||
</div>
|
||||
|
||||
<!-- Step view -->
|
||||
<div class="step-view" next-step-counter="nextStepCounter" current-step-valid="currentStepValid"
|
||||
steps-completed="stepsCompleted()">
|
||||
|
||||
<!-- Git URL Input -->
|
||||
<div class="step-view-step" complete-condition="state.gitURL">
|
||||
<div style="margin-bottom: 12px;">Please enter the URL used to clone the your git repository:</div>
|
||||
<input type="text" ng-pattern="">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
Reference in a new issue