-
Notifications
You must be signed in to change notification settings - Fork 0
/
myprojects.html
187 lines (158 loc) · 7.69 KB
/
myprojects.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp" crossorigin="anonymous">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB" crossorigin="anonymous">
<link rel="stylesheet" href="css/reset.css"> <!-- CSS reset -->
<link rel="stylesheet" href="css/style.css"> <!-- Resource style -->
<link rel="stylesheet" href="css/album.css"> <!-- Album resource -->
<script src="js/modernizr.js"></script> <!-- Modernizr -->
<script type='text/javascript' src='./bower_components/knockout/dist/knockout.js'></script>
<title>GoCommunity | CrowdFunding Website</title>
</head>
<body>
<ul class="nav justify-content-end nav-pills">
<!-- <li class="nav-item">
<a class="nav-link" href="index.html">HomePage</a>
</li> -->
<li class="nav-item">
<a class="nav-link" data-bind="attr : { href : 'projects.html' + '?id=' + userId() }">Projects</a>
</li>
<li class="nav-item">
<a class="nav-link active" data-bind="attr : { href : 'myprojects.html' + '?id=' + userId() }">My Projects</a>
</li>
<li class="nav-item">
<a class="nav-link" data-bind="attr : { href : 'followed.html' + '?id=' + userId() }">Followed Projects</a>
</li>
<li class="nav-item">
<a class="nav-link" data-bind="attr : { href : 'accountdetails.html' + '?id=' + userId() }">Account Details</a>
</li>
<li class="nav-item">
<a class="nav-link" href="projectsG.html">Log Out</a>
</li>
<!-- <li class="nav-item">
<a class="nav-link disabled" href="#">Disabled</a>
</li> -->
</ul>
<header class="cd-header">
<h1>GoCommunity</h1>
</header>
<!-- <header class="cd-header2">
<h3>Support your favourite social project and keep tracking the evolution</h3>
</header> -->
<main class="cd-main-content">
<section class="cd-gallery">
<div class="album bg-ligth">
<div class="container">
<button class="btn btn-primary"><a data-bind="attr : { href : 'newproject.html?id=' + userId() }">New Project</a></button>
<div class="row">
<!-- ko foreach : projects -->
<div class="mix col-md-4">
<div class="card mb-4 box-shadow">
<img data-bind="attr : { alt : name , src : imgSrc }" class="card-img-top" style="height: 225px; width: 100%; display: block;" data-holder-rendered="true">
<div class="card-body">
<p><strong data-bind="text : name"></strong></p>
<br>
<p class="card-text" data-bind="text : description"></p>
<br>
<div class="d-flex justify-content-between align-items-center">
<div class="btn-group">
<button type="button" class="btn btn-sm btn-outline-secondary"><a data-bind="attr : { href : 'project.html?id='+ $parent.userId() + '&projectId=' + id }">View</a></button>
<button type="button" class="btn btn-sm btn-outline-secondary"><a data-bind="attr : { href : 'editproject.html?id='+$parent.userId()+'&projectId='+id }">Edit</a></button>
<button type="button" class="btn btn-info btn-lg" data-toggle="modal" data-target="#updateModal" data-bind="event : { click : storeElement }">Update</button>
</div>
</div>
</div>
</div>
</div>
<!-- /ko -->
</div>
</div>
</div>
<div id="failMessage">No results found</div>
</section> <!-- cd-gallery -->
<div class="cd-filter">
<form>
<div class="cd-filter-block">
<h4>Search</h4>
<div class="cd-filter-content">
<input id="toSearchName" onchange="filterContentbyName()" type="search" placeholder="Search for project name...">
</div> <!-- cd-filter-content -->
</div> <!-- cd-filter-block -->
<div class="cd-filter-block">
<h4>Check boxes</h4>
<ul class="cd-filter-content cd-filters list">
<!-- ko foreach : categories -->
<li>
<input class="filter" type="checkbox" data-bind="attr : { id : $data }" onchange="filterContentbyCategory()">
<label class="checkbox-label" data-bind="attr : { for : $data }, text : $data"></label>
</li>
<!-- /ko -->
</ul> <!-- cd-filter-content -->
</div> <!-- cd-filter-block -->
<div class="cd-filter-block">
<h4>Select</h4>
<div class="cd-filter-content">
<div class="cd-select cd-filters">
<select class="filter" name="selectThis" id="selectThis" onchange="filterContentbyFunds()">
<option value="0">Choose an option for funds</option>
<!-- ko foreach : funds -->
<option data-bind="attr : { value : value , id : value }, text : fund"></option>
<!-- /ko -->
</select>
</div> <!-- cd-select -->
</div> <!-- cd-filter-content -->
</div> <!-- cd-filter-block -->
<div class="cd-filter-block">
<h4>Radio buttons</h4>
<ul class="cd-filter-content cd-filters list" onchange="filterContentbyLocation()">
<li>
<input class="filter" name="locationFilter" type="radio" id="radioAll" checked>
<label class="radio-label" for="radioAll">All</label>
</li>
<!-- ko foreach : locations -->
<li>
<input class="filter" name="locationFilter" type="radio" data-bind="attr : { id : 'radio' + $data } ">
<label class="radio-label" data-bind="text : $data, attr : { for : 'radio' + $data } "></label>
</li>
<!-- /ko -->
</ul> <!-- cd-filter-content -->
</div> <!-- cd-filter-block -->
</form>
<a href="#0" class="cd-close">Close</a>
</div> <!-- cd-filter -->
<a href="#0" class="cd-filter-trigger">Filters</a>
</main> <!-- cd-main-content -->
<!-- Modal -->
<div class="modal fade" id="updateModal" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-body">
<div class="form-group">
<label for="updateText">Update Description:</label>
<textarea class="form-control" rows="5" id="updateText"></textarea>
</div>
</div>
<div class="modal-footer">
<button class="btn btn-primary" data-dismiss="modal" data-bind="event : { click : update }">Publish Update</button>
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!--End Modal-->
<script src="js/jquery-2.1.1.js"></script>
<script src="js/jquery.mixitup.min.js"></script>
<script src="js/main.js"></script> <!-- Resource jQuery -->
<script type="text/javascript" src="scripts/myprojects.js"></script> <!-- Data Source -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js" integrity="sha384-smHYKdLADwkXOn1EmN1qk/HfnUcbVRZyYmZ4qpPea6sjB/pTJ0euyQp0Mk8ck+5T" crossorigin="anonymous"></script>
</body>
</html>