scottohara/loot

View on GitHub
src/securities/views/delete.html

Summary

Maintainability
Test Coverage
<form role="form" name="securityForm">
    <div class="modal-header">
        <h4>Delete Security?</h4>
    </div>
    <div class="modal-body">
        <dl class="dl-horizontal">
            <dt>Name</dt>
            <dd>{{::vm.security.name}}</dd>
            <dt>Code</dt>
            <dd>{{::vm.security.code}}</dd>
        </dl>
    </div>
    <div class="modal-footer">
        <span ng-if="vm.errorMessage" class="text-danger">{{vm.errorMessage}}</span>
        <button class="btn btn-default" type="button" ng-click="vm.cancel()">
            Cancel
        </button>
        <button
            class="btn btn-danger"
            type="submit"
            ng-click="vm.deleteSecurity()"
            autofocus
        >
            <i class="glyphicon glyphicon-remove"></i> Delete
        </button>
    </div>
</form>