ui tweaks

This commit is contained in:
Kyle Spearrin 2017-05-08 22:18:07 -04:00
parent cd5ad9f85b
commit f7d1b8821c
4 changed files with 20 additions and 29 deletions

View File

@ -47,10 +47,6 @@
}; };
$scope.collections = function (collection) {
};
$scope.delete = function (group) { $scope.delete = function (group) {
if (!confirm('Are you sure you want to delete this group (' + group.name + ')?')) { if (!confirm('Are you sure you want to delete this group (' + group.name + ')?')) {
return; return;

View File

@ -4,16 +4,6 @@
</div> </div>
<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="modal-body"> <div class="modal-body">
<div class="callout callout-danger validation-errors" ng-show="form.$errors">
<h4>Errors have occured</h4>
<ul>
<li ng-repeat="e in form.$errors">{{e}}</li>
</ul>
</div>
<div class="form-group" show-errors>
<label for="email">Name</label>
<input type="text" id="name" name="Name" ng-model="model.name" class="form-control" required api-field />
</div>
<div class="callout callout-default"> <div class="callout callout-default">
<h4><i class="fa fa-info-circle"></i> Note</h4> <h4><i class="fa fa-info-circle"></i> Note</h4>
<p> <p>
@ -24,6 +14,16 @@
login from "My vault". login from "My vault".
</p> </p>
</div> </div>
<div class="callout callout-danger validation-errors" ng-show="form.$errors">
<h4>Errors have occured</h4>
<ul>
<li ng-repeat="e in form.$errors">{{e}}</li>
</ul>
</div>
<div class="form-group" show-errors>
<label for="email">Name</label>
<input type="text" id="name" name="Name" ng-model="model.name" class="form-control" required api-field />
</div>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button type="submit" class="btn btn-primary btn-flat" ng-disabled="form.$loading"> <button type="submit" class="btn btn-primary btn-flat" ng-disabled="form.$loading">

View File

@ -4,16 +4,6 @@
</div> </div>
<form name="form" ng-submit="form.$valid && submit(collection)" api-form="submitPromise"> <form name="form" ng-submit="form.$valid && submit(collection)" api-form="submitPromise">
<div class="modal-body"> <div class="modal-body">
<div class="callout callout-danger validation-errors" ng-show="form.$errors">
<h4>Errors have occured</h4>
<ul>
<li ng-repeat="e in form.$errors">{{e}}</li>
</ul>
</div>
<div class="form-group" show-errors>
<label for="email">Name</label>
<input type="text" id="name" name="Name" ng-model="collection.name" class="form-control" required api-field />
</div>
<div class="callout callout-default"> <div class="callout callout-default">
<h4><i class="fa fa-info-circle"></i> Note</h4> <h4><i class="fa fa-info-circle"></i> Note</h4>
<p> <p>
@ -25,6 +15,16 @@
login from "My vault". login from "My vault".
</p> </p>
</div> </div>
<div class="callout callout-danger validation-errors" ng-show="form.$errors">
<h4>Errors have occured</h4>
<ul>
<li ng-repeat="e in form.$errors">{{e}}</li>
</ul>
</div>
<div class="form-group" show-errors>
<label for="email">Name</label>
<input type="text" id="name" name="Name" ng-model="collection.name" class="form-control" required api-field />
</div>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button type="submit" class="btn btn-primary btn-flat" ng-disabled="form.$loading"> <button type="submit" class="btn btn-primary btn-flat" ng-disabled="form.$loading">

View File

@ -48,11 +48,6 @@
<i class="fa fa-fw fa-users"></i> Users <i class="fa fa-fw fa-users"></i> Users
</a> </a>
</li> </li>
<li>
<a href="javascript:void(0)" ng-click="collections(group)">
<i class="fa fa-fw fa-cubes"></i> Collections
</a>
</li>
<li> <li>
<a href="javascript:void(0)" ng-click="delete(group)" class="text-red"> <a href="javascript:void(0)" ng-click="delete(group)" class="text-red">
<i class="fa fa-fw fa-trash"></i> Delete <i class="fa fa-fw fa-trash"></i> Delete