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/repo-state/repo-state.component.html
2019-11-21 16:37:20 -05:00

16 lines
715 B
HTML

<div class="new-repo-state btn-group btn-group-sm">
<div class="dropdown" style="text-align: left;">
<button class="btn btn-default" ng-class="$ctrl.selectedState.value" data-toggle="dropdown">
<span ng-if="$ctrl.selectedState" class="repo-state-title">{{ $ctrl.selectedState.title }}</span>
<span ng-if="!$ctrl.selectedState">(Select)</span>
<span class="caret"></span>
</button>
<ul class="dropdown-menu">
<li ng-repeat="option in $ctrl.options" ng-class="option.value">
<a ng-click="$ctrl.onChange.emit({state: option})">{{ option.title }}
<div class="repo-state-help-text">{{ option.description }}</div>
</a>
</li>
</ul>
</div>
</div>