1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-28 12:45:45 +01:00

validation summary on payment

This commit is contained in:
Kyle Spearrin 2017-07-26 10:12:20 -04:00
parent a1dfd7493a
commit fd9fcbea38
2 changed files with 12 additions and 6 deletions

View File

@ -7,17 +7,17 @@
for a specific entity (such as a family, small team, or large company). for a specific entity (such as a family, small team, or large company).
</p> </p>
<form name="createOrgForm" ng-submit="createOrgForm.$valid && submit(model)" api-form="submitPromise"> <form name="createOrgForm" ng-submit="createOrgForm.$valid && submit(model)" api-form="submitPromise">
<div class="box box-default">
<div class="box-header with-border">
<h3 class="box-title">General Information</h3>
</div>
<div class="box-body">
<div class="callout callout-danger validation-errors" ng-show="createOrgForm.$errors"> <div class="callout callout-danger validation-errors" ng-show="createOrgForm.$errors">
<h4>Errors have occurred</h4> <h4>Errors have occurred</h4>
<ul> <ul>
<li ng-repeat="e in createOrgForm.$errors">{{e}}</li> <li ng-repeat="e in createOrgForm.$errors">{{e}}</li>
</ul> </ul>
</div> </div>
<div class="box box-default">
<div class="box-header with-border">
<h3 class="box-title">General Information</h3>
</div>
<div class="box-body">
<div class="row"> <div class="row">
<div class="col-md-6"> <div class="col-md-6">
<div class="form-group" show-errors> <div class="form-group" show-errors>

View File

@ -3,6 +3,12 @@
</section> </section>
<section class="content"> <section class="content">
<form name="form" ng-submit="form.$valid && submit(model)" api-form="submitPromise"> <form name="form" ng-submit="form.$valid && submit(model)" api-form="submitPromise">
<div class="callout callout-danger validation-errors" ng-show="form.$errors">
<h4>Errors have occurred</h4>
<ul>
<li ng-repeat="e in form.$errors">{{e}}</li>
</ul>
</div>
<div class="box box-default"> <div class="box box-default">
<div class="box-body"> <div class="box-body">
<div class="row"> <div class="row">