cleaning up form list css

This commit is contained in:
David Baldwynn 2015-06-30 01:54:00 -07:00
parent 989f4b8e36
commit 46d958a95d
6 changed files with 75 additions and 6868 deletions

View file

@ -38,6 +38,8 @@
{% for cssFile in cssFiles %}
<link rel="stylesheet" href="{{cssFile}}">
{% endfor %}
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<!-- HTML5 Shim -->
<!--[if lt IE 9]>

View file

@ -18,3 +18,7 @@ body.ng-cloak
{
display: block;
}
section > .jumbotron {
padding-top: 15px;
}

View file

@ -10,7 +10,7 @@ angular.module('forms').controller('ViewFormController', ['$scope', '$stateParam
// Return all user's Forms
$scope.find = function() {
$scope.findAll = function() {
$scope.forms = Forms.query();
};

File diff suppressed because it is too large Load diff

View file

@ -8,14 +8,7 @@ angular.module('forms').factory('Forms', ['$resource',
}, {
'query' : {
method: 'GET',
isArray: false,
// "transformResponse": function (data) {
// var _data = JSON.parse(data);
// var _pdf = JSON.parse(data).pdf;
// _data.pdf = _pdf;
// return _data;
// }
isArray: true,
},
'update': {
method: 'PUT'

View file

@ -1,16 +1,35 @@
<section data-ng-controller="ViewFormController" data-ng-init="find()">
<section data-ng-controller="ViewFormController" data-ng-init="findAll()">
<div class="page-header">
<h1>Forms</h1>
</div>
<div class="list-group">
<a data-ng-repeat="form in forms" data-ng-href="#!/forms/{{form._id}}/admin" class="list-group-item">
<small class="list-group-item-text">
Created on
<span data-ng-bind="form.created | date:'mediumDate'"></span>
by
<span data-ng-bind="form.user.displayName"></span>
</small>
<h4 class="list-group-item-heading" data-ng-bind="form.title"></h4>
<div class="list-group container">
<a data-ng-href="/forms/create" class="col-md-2 col-md-offset-1 form-item row create-new">
<div class="title-row col-md-12">
<h4 class=" fa fa-plus fa-6"></h4>
</div>
<div class="col-md-12 details-row">
<small class="list-group-item-text">
Create a new form
</small>
</div>
</a>
<a data-ng-repeat="form in forms" data-ng-href="#!/forms/{{form._id}}/admin" class="col-md-2 col-md-offset-1 form-item row">
<div class="title-row col-md-12">
<h4 class="list-group-item-heading" data-ng-bind="form.title"></h4>
</div>
<div class="col-md-12 details-row">
<small class="list-group-item-text">
Created on
<span data-ng-bind="form.created | date:'mediumDate'"></span>
by
<span data-ng-bind="form.user.displayName"></span>
</small>
</div>
</a>
</div>