This repository has been archived on 2020-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
quay/static/js/directives/ui/linear-workflow/linear-workflow.component.html

39 lines
1.3 KiB
HTML
Raw Normal View History

2017-02-21 23:59:26 +00:00
<div class="linear-workflow-element">
<!-- Contents -->
<div ng-transclude />
<div class="bottom-controls">
<table class="upcoming-table">
<tr>
<td>
<!-- Next button -->
<button class="btn btn-primary"
ng-disabled="!$ctrl.currentSection.component.sectionValid"
ng-click="$ctrl.onNextSection()"
ng-class="{
'btn-success': $ctrl.currentSection.index == $ctrl.sections.length - 1,
'btn-lg': $ctrl.currentSection.index == $ctrl.sections.length - 1
}">
2017-02-21 23:59:26 +00:00
<span ng-if="$ctrl.currentSection.index != sections.length - 1">Continue</span>
<span ng-if="$ctrl.currentSection.index == sections.length - 1">
<i class="fa fa-check-circle"></i>{{ ::$ctrl.doneTitle }}
2017-02-21 23:59:26 +00:00
</span>
</button>
</td>
<td>
<!-- Next sections -->
<div class="upcoming"
ng-if="$ctrl.currentSection.index < $ctrl.sections.length - 1">
2017-02-21 23:59:26 +00:00
<b>Next:</b>
<ul>
<li ng-repeat="section in $ctrl.sections"
ng-if="section.index > $ctrl.currentSection.index">
{{ section.component.sectionTitle }}
2017-02-21 23:59:26 +00:00
</li>
</ul>
</div>
</td>
</tr>
</table>
</div>
</div>