forked from gertie-sheshe/techinpink
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#118543823] Styles dashboard and code clean up
- Loading branch information
andela-gnyenyeshi
committed
Apr 29, 2016
1 parent
01790dc
commit 4f13304
Showing
2 changed files
with
38 additions
and
15 deletions.
There are no files selected for viewing
Binary file not shown.
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 |
---|---|---|
|
@@ -66,21 +66,44 @@ $(function () { | |
|
||
// GET STARTED button function | ||
$('#get-started').on('click', function() { | ||
document.getElementById('o').innerHTML = "<h4 id='register'>Enter Attendee: </h4> " + | ||
"<form class='col s12'> <div class='row'> <div class='input-field col s6'> " + | ||
" <input type='text' id='attendee'> <label for='attendee'> Attendee" + | ||
"</label> <a id='post-button' class='waves-effect waves-light btn #880e4f pink darken-4'>Add</a>" + | ||
"</div> " + | ||
"<div class='row'> <div class='col s6'>" + | ||
"<input type='text' id='email'> <label for='email'> Email" + | ||
"</div> </div>" + | ||
"</div> </form> <a id='get-button' class='waves-effect waves-light btn #880e4f pink darken-4 col s2 offset-s8'>View all</a><hr>" + | ||
"<div class='row'><table class='striped col s10 offset-s1' id='list'> " + | ||
"<thead><tr><th>Name</th><th>Email</th><th>Venue</th><th>Day</th>" + | ||
"</tr></thead><tbody><tr><td class='name'>Gertrude</td><td>[email protected]</td><td>Andela</td><td>Saturday</td><td>" + | ||
"<i class='material-icons delete'>delete</i></td></tr></tbody></table></div>"; | ||
|
||
document.getElementById('o').innerHTML = "<h4 id='register'>Register Attendee: </h4> " + | ||
"<form class='col s12'> " + | ||
"<div class='row'> " + | ||
"<div class='input-field col s6'> " + | ||
"<input type='text' id='attendee'> " + | ||
"<label for='attendee'> Attendee </label>" + | ||
"</div> " + | ||
"</div>" + | ||
"<div class='row'> " + | ||
"<div class='input-field col s6'> " + | ||
"<input type='email' id='email'> " + | ||
"<label for='email'> Email </label>" + | ||
"<a id='post-button' class='waves-effect waves-light btn #880e4f pink darken-4'>Add</a>" + | ||
"</div> " + | ||
"</div>" + | ||
"</form> " + | ||
"<a id='get-button' class='waves-effect waves-light btn #880e4f pink darken-4 col s2 offset-s8'>View all</a><hr>" + | ||
"<div class='row'> " + | ||
"<table class='striped col s10 offset-s1' id='list'> " + | ||
"<thead> " + | ||
"<tr> " + | ||
"<th>Name</th> " + | ||
"<th>Email</th> " + | ||
"<th>Venue</th> " + | ||
"<th>Day</th>" + | ||
"</tr> " + | ||
"</thead> " + | ||
"<tbody> " + | ||
"<tr> " + | ||
"<td class='name'>Gertrude</td> " + | ||
"<td>[email protected]</td>" + | ||
"<td>Andela</td>" + | ||
"<td>Saturday</td> " + | ||
"<td><i class='material-icons delete'>delete</i></td> " + | ||
"</tr> " + | ||
"</tbody> " + | ||
"</table> " + | ||
"</div>"; | ||
$('#get-started').text(''); | ||
// this.id = "go-back"; | ||
}); | ||
}); |