
With an updated eslint version and the addition of eslint-config-openstack and eslint-plugin-angular, there are several more stylistic guidelines to follow. However, this is what other OpenStack angular projects follow such as Horizon. Some notable changes are: * Wrapped javascript content in anonymous functions. This is a safeguard to keep the code from conflicting with other variables with the same name in other scripts on the same page. * Explicitly inject dependencies and have controllers, factories, etc as explicitly declared functions. * Use angular "controller as" syntax instead of assigning variables to $scope. * Added eslint rule that requires JSDoc for every function declaration. Note these are mainly stylistic changes and all the functionality of RefStack should remain the same. Change-Id: I044b1f473d589681a2ae9d2704700dd85687cbb6
22 lines
829 B
HTML
22 lines
829 B
HTML
<div class="modal-header">
|
|
<h4>Import Public Key</h4>
|
|
</div>
|
|
<div class="modal-body container-fluid">
|
|
<div class="row">
|
|
<div class="col-md-2">Public Key</div>
|
|
<div class="col-md-9 pull-right">
|
|
<textarea type="text" rows="11" cols="42" ng-model="modal.raw_key" required></textarea>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-2">Signature</div>
|
|
<div class="col-md-9 pull-right">
|
|
<textarea type="text" rows="11" cols="42" ng-model="modal.self_signature" required></textarea>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button class="btn btn-warning" ng-click="modal.cancel()">Cancel</button>
|
|
<button type="button" class="btn btn-default btn-sm" ng-click="modal.importPubKey()">Import Public Key</button>
|
|
</div>
|
|
</div>
|