mirror of
https://github.com/bitwarden/browser
synced 2026-01-07 11:03:30 +00:00
55 lines
2.6 KiB
HTML
55 lines
2.6 KiB
HTML
<div class="modal-header">
|
|
<button type="button" class="close" ng-click="close()" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
<h4 class="modal-title"><i class="fa fa-share-alt"></i> Subvaults <small>{{login.name}}</small></h4>
|
|
</div>
|
|
<form name="form" ng-submit="form.$valid && submit(model)" api-form="submitPromise">
|
|
<div class="modal-body">
|
|
<p>This login is shared with the following subvaults.</p>
|
|
<div class="callout callout-danger validation-errors" ng-show="form.$errors">
|
|
<h4>Errors have occured</h4>
|
|
<ul>
|
|
<li ng-repeat="e in form.$errors">{{e}}</li>
|
|
</ul>
|
|
</div>
|
|
<div ng-show="loadingSubvaults && !subvaults.length">
|
|
Loading...
|
|
</div>
|
|
<div ng-show="!loadingSubvaults && !subvaults.length">
|
|
<p>No subvaults to manage.</p>
|
|
</div>
|
|
<div class="table-responsive" ng-show="subvaults.length" style="margin: 0;">
|
|
<table class="table table-striped table-hover" style="margin: 0;">
|
|
<thead>
|
|
<tr>
|
|
<th style="width: 40px;">
|
|
<input type="checkbox"
|
|
ng-checked="allSelected()"
|
|
ng-click="toggleSubvaultSelectionAll($event)">
|
|
</th>
|
|
<th>Subvault</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr ng-repeat="subvault in subvaults | orderBy: ['name']">
|
|
<td valign="middle">
|
|
<input type="checkbox"
|
|
name="selectedSubvaults[]"
|
|
value="{{subvault.id}}"
|
|
ng-checked="subvaultSelected(subvault)"
|
|
ng-click="toggleSubvaultSelection(subvault.id)">
|
|
</td>
|
|
<td valign="middle" ng-click="toggleSubvaultSelection(subvault.id)">
|
|
{{subvault.name}}
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="submit" class="btn btn-primary btn-flat" ng-disabled="form.$loading">
|
|
<i class="fa fa-refresh fa-spin loading-icon" ng-show="form.$loading"></i>Save
|
|
</button>
|
|
<button type="button" class="btn btn-default btn-flat" ng-click="close()">Close</button>
|
|
</div>
|
|
</form> |