-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·77 lines (71 loc) · 3.38 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!DOCTYPE html>
<html ng-app="app">
<head>
<link rel="stylesheet" href="/lib/bootstrap.min.css" />
<script src="/lib/jquery-2.0.3.min.js"></script>
<script src="/lib/angular.min.js"></script>
<script src="script.js"></script>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div class="ng-cloak" ng-controller="MainCtrl">
<div class="container">
<h3>Project backlog</h3>
<button class="btn btn-danger" ng-click="create('Bug')">Report a bug</button>
<button class="btn btn-success" ng-click="create('Feature')">Request a feature</button>
<table class="table table-striped">
<thead>
<th>Type</th>
<th>Title</th>
<th>Story points</th>
<th>Created date</th>
<th>Actions</th>
</thead>
<tbody ng-repeat="issue in issues">
<tr >
<td>
<span class="label label-danger" ng-if="issue.type === 'Bug'">BUG</span>
<span class="label label-success" ng-if="issue.type === 'Feature'">FEATURE</span>
</td>
<td>{{issue.title}}</td>
<td>{{issue.storypoints}}</td>
<td>{{issue.created | date:'yyyy/MM/dd HH:mm'}}</td>
<td>
<button class="btn btn-danger" ng-click="delete(issue)">Delete</button>
<button class="btn btn-link" ng-click="edit(issue)">Edit</button>
<button class="btn btn-link" ng-click="show(issue)">Show</button>
</td>
</tr>
<tr ng-if="issue.show">
<td colspan="5">
<label> Description</label>
<blockquote>
<p>{{issue.description}}</p>
</blockquote>
</td>
</tr>
</tbody>
</table>
<div ng-if="selectedIssue !== null">
<h3>New Issue</h3>
<form name="newIssueForm" ng-submit="newIssueForm.$valid && save(selectedIssue)" novalidate>
<div class="form-group">
<label for="issueTitle">Title</label>
<input id="issueTitle" ng-model="selectedIssue.title" placeholder="Enter title" class="form-control" required></input>
</div>
<div class="form-group">
<label for="issueSp">Story points</label>
<input id="issueSp" ng-model="selectedIssue.storypoints" placeholder="Enter story points" class="form-control" required></input>
</div>
<div class="form-group">
<label for="issueDesc">Story points</label>
<textarea id="issueDesc" ng-model="selectedIssue.description" placeholder="Enter description" class="form-control" ></textarea>
</div>
<br/>
<button class="btn btn-primary" type="submit">Save</button>
</form>
</div>
</div>
</div>
</body>
</html>