Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>
<div class="container">
<div>
<div ui-view></div>
</div>
</body>
Expand Down
14 changes: 8 additions & 6 deletions public/partials/home.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<h2>Welcome to the Todo App</h2>
<button ui-sref='home.profile'>Link Your Profile</button>
<div ng-controller="SessionController" class="col-lg-1 col-lg-offset-8 ng-scope">
<button ng-click="logout()">Logout</button>
<div class="headerStyle">
<h2 class="pull-left leftStyle">Welcome to the Todo App</h2>
<div ng-controller="SessionController" class="pull-right rightStyle">
<button ui-sref='home.todos' class="btn btn-info">Todos</button>
<button ui-sref='home.profile' class="btn btn-info">Link Your Profile</button>
<button ng-click="logout()" class="btn btn-danger">Logout</button>
</div>
</div>
<a ui-sref='home.todos'>Todos</a>
<div ui-view='content'></div>
<div ui-view='content'></div>
12 changes: 6 additions & 6 deletions public/partials/todos.create.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<div controller="TodoListCtrl">
<form name="createTodoForm" novalidate ng-submit="createtodo()">
<div class="container" controller="TodoListCtrl">
<form name="createTodoForm" novalidate ng-submit="createtodo()" class="formAlignment">
<h2 class="titleColor">Create Todo</h2>
<div class="input-group">
<span class="label label-default" style="background-color:green">Title</span>
<span class="label label-default">Title</span>
<input type="text" name="title" class="form-control" ng-model='title' required ng-class="{error: submitted && createTodoForm.title.$invalid}">
<small ng-show="createTodoForm.title.$error.required && submitted">Please enter title</small>
</div>

<div class="input-group">
<span class="label label-default" style="background-color:green">Description</span>
<input type="text" name="description" class="form-control" ng-model='description' required ng-class="{error: submitted && createTodoForm.description.$invalid}">
<span class="label label-default">Description</span>
<textarea type="text" name="description" class="form-control" ng-model='description' required ng-class="{error: submitted && createTodoForm.description.$invalid}"></textarea>
<small ng-show="createTodoForm.description.$error.required && submitted">Please enter description</small>
</div>

<div class="input-group">
<span class="label label-default" style="background-color:green">Image URL</span>
<span class="label label-default">Image URL</span>
<input type="url" name="url" class="form-control" ng-model='image_url' required ng-class="{error: submitted && createTodoForm.url.$invalid}">
<small ng-show="createTodoForm.url.$error.required && submitted">Please enter URL</small>
<small ng-show="createTodoForm.url.$error.url && submitted">Please enter Valid URL</small>
Expand Down
4 changes: 2 additions & 2 deletions public/partials/todos.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="row">
<div class="col-xs-12 col-md-3 well ">
<div class="col-xs-12 col-md-2 well ">
<h1>Todos</h1>
<div ng-controller = 'TodoListCtrl'>
<a ui-sref='home.todos.create'>Create New Todo</a>
Expand All @@ -13,4 +13,4 @@ <h1>Todos</h1>
<div class="col-xs-7 col-md-4 ">
<div ui-view></div>
</div>
</div>
</div>
31 changes: 21 additions & 10 deletions public/partials/todos.show.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
<h2>This is a todo show page</h2>
<br/>
Title: {{todo.title}}
<br/>
Description: {{todo.description}}
<br/>
Image: <img src="{{todo.image_url}}" width='150px' height='150px'/>
<br/>
<button ng-click="fbShare('share', todo)" id="fbBtn">Fb Share</button>
<button id="dummygplusBtn" ng-click="gPlusShare('share', todo)">G+ Share</button>
<div class="formAlignment">
<h2>This is a todo show page</h2>
<br/>
<p>
<span class="titleColor">Title:</span>
{{todo.title}}
</p>
<br/>
<p>
<span class="titleColor">Description:</span>
{{todo.description}}
</p>
<br/>
<p>
<span class="titleColor">Image:</span>
<img src="{{todo.image_url}}" width='150px' height='150px'/>
</p>
<br/>
<button class="btn btn-google-plus" ng-click="fbShare('share', todo)" id="fbBtn">Fb Share</button>
<button class="btn btn-facebook" id="dummygplusBtn" ng-click="gPlusShare('share', todo)">G+ Share</button>
</div>
18 changes: 18 additions & 0 deletions public/stylesheets/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,21 @@ input.error {
.titleColor {
font-weight:bold;
}
.container {
width: 540px;
}
.formAlignment {
position:relative;
left:260px
}
.headerStyle {
background-color:black;
height:65px
}
.leftStyle {
color:white;
}
.rightStyle {
position: relative;
top: 22%;
}