-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from nss-evening-cohort-04/pin-hn
added general view
- Loading branch information
Showing
12 changed files
with
154 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
"use strict"; | ||
|
||
var app = angular.module("PinThisApp",["ngRoute"]); | ||
var app = angular.module("PinThisApp", ["ngRoute"]); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<h3>New Todo</h3> | ||
<form> | ||
<div class="form-group"> | ||
<label>Pin</label> | ||
<input type="text" class="form-control" placeholder="New Pin" ng-model="newPin.pin"> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label>Assigned To</label> | ||
<input type="text" class="form-control" placeholder="My Pins" ng-model="newPin.assignedTo"> | ||
</div> | ||
|
||
<button type="button" class="btn btn-primary btn-lg col-xs-2" ng-click="addNewBoard()">New Board</button> | ||
</form> |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<div class="row"> | ||
<div class="col-xs-offset-2 col-xs-8" > | ||
<div class="input-group"> | ||
<span class="input-group-btn"> | ||
<button class="btn btn-default"><i class="fa fa-search"></i></button> | ||
</span> | ||
<input type="text" class="form-control" placeholder="Search for ..." ng-model="searchText"> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<h3>Boards</h3> | ||
<div ng-repeat="board in boards | filter: {isSelected:false} | filter:searchText"> | ||
<div class="panel panel-default"> | ||
<div class="panel-body"> | ||
<!-- boards start --> | ||
|
||
<div class="col-xs-1"><input type="checkbox" name="" ng-model="board.isSelected" ng-change="inputChange(board)"></div> | ||
|
||
<div class="col-xs-9"><a href="#/boards/view/{{board.id}}">{{board.pin}}</a></div> | ||
<div class="col-xs-1">{{board.assignedTo}}</div> | ||
<div class="col-xs-1"><button class="btn btn-danger fa fa-trash-o" ng-click="deleteBoard(board.id)"></button></div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<h3>My Boards</h3> | ||
<div ng-repeat="board in boards | filter: {isSelected:true} | filter:searchText"> | ||
<div class="panel panel-default"> | ||
<div class="panel-body"> | ||
<div class="col-xs-1"><input type="checkbox" name="" ng-model="board.isSelected" ng-change="inputChange()"></div> | ||
<div class="col-xs-9"><a href="#/boards/view/{{board.id}}">{{board.pin}}</a></div> | ||
<div class="col-xs-1">{{board.assignedTo}}</div> | ||
<div class="col-xs-1"><button class="btn btn-danger fa fa-trash-o" ng-click="deleteBoard(board.id)"></button></div> | ||
</div> | ||
</div> | ||
</div> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,20 @@ | ||
<img src=# alt="logo"/></img><form class="navbar-form navbar-left" role="search"> | ||
<div class="form-group"> | ||
<nav> | ||
<input type="text" class="form-control" placeholder="Search"> | ||
</nav> | ||
</div> | ||
<button type="submit" class="btn btn-default">Submit</button> | ||
</form> | ||
<nav class="navbar navbar-default" ng-controller="NavCtrl"> | ||
<div class="container-fluid"> | ||
<!-- Brand and toggle get grouped for better mobile display --> | ||
<div class="navbar-header"> | ||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false"> | ||
<span class="sr-only">Toggle navigation</span> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
</button> | ||
<a class="navbar-brand" href="#">Todo App</a> | ||
</div> | ||
<!-- Collect the nav links, forms, and other content for toggling --> | ||
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> | ||
<ul class="nav navbar-nav navbar-right" ng-repeat="thingy in navItems" ng-show="user"> | ||
<li><a href="{{thingy.url}}">{{thingy.name}}</a></li> | ||
</ul> | ||
</div><!-- /.navbar-collapse --> | ||
</div><!-- /.container-fluid --> | ||
</nav> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
body h1 { | ||
color: green; | ||
text-align: center; } | ||
|
||
.search-bar { | ||
text-align: center; } | ||
.search-bar input { | ||
margin-bottom: 20px; } | ||
|
||
#incomplete-tasks, #completed-tasks { | ||
padding-left: 40px; | ||
padding-right: 40px; } | ||
|
||
.new-text-container { | ||
padding: 20px 0px; } | ||
|
||
.newtodo-input { | ||
padding-top: 5px; } | ||
|
||
.inputTask { | ||
display: none; | ||
width: 93%; | ||
margin-left: 10px; | ||
margin-top: 6px; } | ||
|
||
.inputLabel { | ||
font-size: 18px; | ||
line-height: 40px; | ||
width: 237px; | ||
padding: 0 0 0 11px; } | ||
|
||
.checkboxStyle { | ||
margin-top: 15px !important; } | ||
|
||
h3 { | ||
color: #333; | ||
font-weight: 700; | ||
font-size: 15px; | ||
border-bottom: 2px solid #333; | ||
padding: 30px 0 10px; | ||
margin: 0; } | ||
|
||
li * { | ||
float: left; } | ||
|
||
li, h3 { | ||
clear: both; | ||
list-style: none; } | ||
|
||
label[for='new-task'] { | ||
display: block; | ||
margin: 0 0 20px; } | ||
|
||
input#new-task { | ||
float: left; | ||
width: 318px; } | ||
|
||
li { | ||
overflow: hidden; | ||
padding: 20px 0; | ||
border-bottom: 1px solid #eee; } | ||
|
||
#completed-tasks label { | ||
text-decoration: line-through; | ||
color: #888; } | ||
|
||
ul li.editMode input[type=text] { | ||
display: block; } | ||
|
||
ul li.editMode label { | ||
display: none; } |