HTML style.

This commit is contained in:
Alexis Lahouze 2017-06-10 18:04:46 +02:00
parent de5e89b155
commit d24da8d56b
2 changed files with 5 additions and 7 deletions

View File

@ -15,16 +15,14 @@
You should have received a copy of the GNU Affero General Public License
along with Accountant. If not, see <http://www.gnu.org/licenses/>.
-->
<form class="form-horizontal" ng-submit="submitForm()"
role="form" name="form" novalidate>
<form class="form-horizontal" ng-submit="submitForm()" name="form" novalidate>
<div class="form-group" ng-class="{ 'has-error' : form.name.$invalid && !form.name.$pristine }">
<label class="col-sm-4 control-label" for="name">Account name</label>
<div class="col-sm-8">
<input class="form-control" id="name" name="name"
ng-model="data.name"
type="text" placeholder="Account name"
required>
</input>
required />
<div class="help-block" ng-messages="form.name.$error" ng-if="form.name.$invalid">
<p ng-message="required">The account name is required.</p>
</div>
@ -40,8 +38,7 @@ role="form" name="form" novalidate>
name="authorized_overdraft"
ng-model="data.authorized_overdraft"
type="number" placeholder="Authorized overdraft"
required min="0">
</input>
required min="0"/>
<div class="input-group-addon">.00€</div>
</div>
<div class="help-block" ng-messages="form.authorized_overdraft.$error" ng-if="form.authorized_overdraft.$invalid">

View File

@ -1,3 +1,5 @@
<!DOCTYPE html>
<!-- vim: set tw=80 ts=2 sw=2 sts=2: -->
<!--
This file is part of Accountant.
@ -14,7 +16,6 @@
You should have received a copy of the GNU Affero General Public License
along with Accountant. If not, see <http://www.gnu.org/licenses/>.
-->
<!-- vim: set tw=80 ts=2 sw=2 sts=2: -->
<div class="row">
<table class="table table-striped table-condensed table-hover">
<thead>