Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/1.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghosts committed Jan 18, 2018
2 parents 3940e03 + e2ea097 commit 98a67f3
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions app/views/dashboard.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
UserController.getCurrentUser
}
@main("Dashboard", "Your Dashboard") {

<script type="text/javascript">
$(document).ready(function(){
if (Cookies.get('newUser') === "true") {
Expand Down Expand Up @@ -39,6 +38,18 @@ <h4>Hello, @{
</div>
</div>
</div>
<div class="mb-3 col-md-4">
<div class="card text-center">
<div class="card-header">
<h4>Quick-Schedule</h4>
</div>
<div class="card-block">
<button onclick="createNewAppointment()" class="btn btn-primary mb-3 col-12">
Schedule New Appointment
</button>
</div>
</div>
</div>
<div class="mb-3 col-md-4">
<div class="card">
<div class="card-header">
Expand All @@ -59,18 +70,6 @@ <h6>Notifications:</h6>
</div>
</div>
</div>
<div class="mb-3 col-md-4">
<div class="card text-center">
<div class="card-header">
<h4>Quick-Schedule</h4>
</div>
<div class="card-block">
<button onclick="createNewAppointment()" class="btn btn-primary mb-3 col-12">
Schedule New Appointment
</button>
</div>
</div>
</div>
</div>
<br/>
<div class="row">
Expand Down Expand Up @@ -139,9 +138,9 @@ <h4 class="float-left">Next Five Appointments</h4>
success: function (response) {
const events = [];
$(response).each(function () {
var userID = '@currentUser.getUid';
var role = '@currentUser.getRole';
var title = "";
const userID = '@currentUser.getUid';
const role = '@currentUser.getRole';
let title = "";
if (userID === $(this).attr("studentId")) {
if (role !== "Student") {
title = $(this).attr("studentName")
Expand Down

0 comments on commit 98a67f3

Please sign in to comment.