custom trigger: initial setup wizard

This commit is contained in:
Jimmy Zelinskie 2015-03-27 17:07:06 -04:00
parent c5272f3545
commit 7d1d53ebcb
8 changed files with 86 additions and 31 deletions

View file

@ -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>

View file

@ -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 -->

View 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>