mirror of
https://github.com/bitwarden/browser
synced 2025-01-15 11:58:21 +01:00
share modal
This commit is contained in:
parent
3905b2b945
commit
63c136a1ff
@ -195,6 +195,7 @@
|
|||||||
animation: true,
|
animation: true,
|
||||||
templateUrl: 'app/vault/views/vaultShare.html',
|
templateUrl: 'app/vault/views/vaultShare.html',
|
||||||
controller: 'vaultShareController',
|
controller: 'vaultShareController',
|
||||||
|
size: 'lg',
|
||||||
resolve: {
|
resolve: {
|
||||||
id: function () { return id; },
|
id: function () { return id; },
|
||||||
name: function () { return name; },
|
name: function () { return name; },
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
isFolder: isFolder
|
isFolder: isFolder
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.savePromise = null;
|
$scope.sharePromise = null;
|
||||||
$scope.save = function (model) {
|
$scope.share = function () {
|
||||||
$uibModalInstance.close({});
|
$uibModalInstance.close({});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
<small>{{cipher.name}}</small>
|
<small>{{cipher.name}}</small>
|
||||||
</h4>
|
</h4>
|
||||||
</div>
|
</div>
|
||||||
<form name="shareForm" ng-submit="shareForm.$valid && save(folder)" api-form="savePromise">
|
<form name="shareForm" ng-submit="shareForm.$valid && share()" api-form="savePromise">
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<div class="callout callout-danger validation-errors" ng-show="shareForm.$errors">
|
<div class="callout callout-danger validation-errors" ng-show="shareForm.$errors">
|
||||||
<h4>Errors have occured</h4>
|
<h4>Errors have occured</h4>
|
||||||
@ -15,7 +15,30 @@
|
|||||||
<li ng-repeat="e in shareForm.$errors">{{e}}</li>
|
<li ng-repeat="e in shareForm.$errors">{{e}}</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group" show-errors>
|
||||||
|
<label for="email">Recipient Email address</label> <span>*</span>
|
||||||
|
<input type="email" id="email" name="Email" ng-model="cipher.email" class="form-control"
|
||||||
|
placeholder="bob@example.com" required api-field />
|
||||||
|
</div>
|
||||||
|
<div class="checkbox">
|
||||||
|
<label>
|
||||||
|
<input type="checkbox" ng-model="cipher.readonly" name="Edit" />
|
||||||
|
Recipient can edit?
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
<div class="checkbox">
|
||||||
|
<label>
|
||||||
|
<input type="checkbox" ng-model="cipher.reshare" name="Reshare" />
|
||||||
|
Recipient can re-share with others?
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button type="submit" class="btn btn-primary btn-flat" ng-disabled="shareForm.$loading">
|
<button type="submit" class="btn btn-primary btn-flat" ng-disabled="shareForm.$loading">
|
||||||
|
Loading…
Reference in New Issue
Block a user