client-ui
Version:
Testing implementation of nodeJs Backend, angular frontend, and hopefully in a way that this can be deployed to s3/cloudfront
43 lines (39 loc) • 1.87 kB
HTML
<div ng-init="_ctrl = loanAgreementController;
_ctrl.init()">
<remote-content ng-if="_ctrl.done" class="small-mobile-text" id="tilaDisclosure"
src="_ctrl.requiredDisclosures['promissory-note-tild'].location.html"
client="_ctrl.client" loan="_ctrl.loan" config="_ctrl.config">
</remote-content>
<br>
<div class="col-xs-12">
<form name="_ctrl.laform" role="form" novalidate class="form-horizontal"
ng-submit="_ctrl.acceptOffer()"
ng-if="_ctrl.requiredDisclosures">
<div ng-if="_ctrl.done" class="form-group">
<label class="checkbox">
<input type="checkbox" name="agreement" id="agreement" data-toggle="checkbox"
ng-model="_ctrl.laform.agreement" required>
Checking this box constitutes your agreement with all of the above.
</label>
</div>
<div ng-if="!_ctrl.done && !_ctrl.errorMessage" class="form-group text-center">
<h5>Preparing your Federal Truth in Lending Disclosure and Promissory Note</h5>
<br>
<i class="fa fa-spinner fa-pulse fa-4x"></i>
</div>
<div class="form-group">
<div ng-if="_ctrl.errorMessage" class="alert alert-danger">
{{_ctrl.errorMessage}}
</div>
</div>
<div ng-if="_ctrl.done" class="text-center">
<button type="submit" id="submit" class="btn btn-success large-btn"
ladda="_ctrl.working" data-style="expand-left"
ng-disabled="_ctrl.laform.$invalid">
Accept Offer
</button>
</div>
</form>
</div>
</div>
<script> config.enableBootstrapJsElements();</script>