80 lines
2.2 KiB
Plaintext
80 lines
2.2 KiB
Plaintext
@using BS.Shared
|
|
@model BeWoPlanerMobil.Models.AppointmentModel
|
|
|
|
<script type="text/javascript">
|
|
|
|
</script>
|
|
|
|
@functions
|
|
{
|
|
string GetParticipationColor(ParticipationAnswer participationAnswer)
|
|
{
|
|
var background = "";
|
|
|
|
switch(participationAnswer)
|
|
{
|
|
case ParticipationAnswer.Zusage:
|
|
background = "#48D44E";
|
|
break;
|
|
case ParticipationAnswer.Vorbehalt:
|
|
background = "#B927D9";
|
|
break;
|
|
case ParticipationAnswer.Absage:
|
|
background = "#AB0030";
|
|
break;
|
|
}
|
|
|
|
return background;
|
|
}
|
|
}
|
|
|
|
<div class="dropdown">
|
|
<button class="btn btn-bewo-employee dropdown-toggle" type="button" data-toggle="dropdown">
|
|
Mitarbeiter
|
|
</button>
|
|
<div class="dropdown-menu">
|
|
<a class="dropdown-item" href="#">Action</a>
|
|
<a class="dropdown-item" href="#">Another action</a>
|
|
<a class="dropdown-item" href="#">Something else here</a>
|
|
|
|
@foreach(var employee in Model.PossibleEmployees)
|
|
{
|
|
var isChecked = Model.SelectedEmployeeOids.Contains(employee.EmployeeOid) ? "checked" : string.Empty;
|
|
var employee2Appointment = Model.SelectedEmployee2SchedulerAppointments.FirstOrDefault(e2A => e2A.Employee.EmployeeOid.Equals(employee.EmployeeOid));
|
|
|
|
var background = "";
|
|
|
|
if(employee2Appointment != null)
|
|
{
|
|
background = GetParticipationColor(employee2Appointment.ParticipationAnswer);
|
|
}
|
|
|
|
<div class="input-group mb-3">
|
|
<div class="input-group-prepend">
|
|
<div class="input-group-text">
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<a class="dropdown-item" href="#">@employee.DetailDescription</a>
|
|
<form class="form-inline">
|
|
<div class="form-group form-check">
|
|
<input type="checkbox" @isChecked id="apt-edit-emp-@employee.EmployeeOid" />
|
|
<label class="form-check-label" for="apt-edit-emp-@employee.EmployeeOid">@employee.DetailDescription</label>
|
|
</div>
|
|
</form>
|
|
/*
|
|
*<form class="form-inline">
|
|
<div class="form-group form-check">
|
|
<input type="checkbox" class="form-check-input" id="only-my-own-appointments-cb2" @isOnlyOwnAptsChecked onclick="filterAppointments()">
|
|
<label class="form-check-label" for="only-my-own-appointments-cb2">Nur meine Termine</label>
|
|
</div>
|
|
</form>
|
|
*/
|
|
}
|
|
</div>
|
|
</div> |