init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
71
KretaWeb/Areas/Tanar/Views/TanarDashboard/Index.cshtml
Normal file
71
KretaWeb/Areas/Tanar/Views/TanarDashboard/Index.cshtml
Normal file
|
@ -0,0 +1,71 @@
|
|||
@using Kreta.Web.Areas.Tanar.Models
|
||||
|
||||
@model TanarDashboardModel
|
||||
|
||||
@{
|
||||
Layout = "~/Views/Shared/_MasterLayout.cshtml";
|
||||
}
|
||||
|
||||
@section AddCss {
|
||||
@Styles.Render("~/Content/RendszerHibaErtesitesek")
|
||||
}
|
||||
|
||||
@functions {
|
||||
private void RenderContent(TanarDashboardItemModel item)
|
||||
{
|
||||
item.Content = string.Format("<div class='content'>{0}</div>", item.Content);
|
||||
Html.RenderPartial("TanarDashboardItem", item);
|
||||
}
|
||||
|
||||
private void RenderTableContent(TanarDashboardTableModel item)
|
||||
{
|
||||
Html.RenderPartial("TanarDashboardTable", item);
|
||||
}
|
||||
}
|
||||
|
||||
<div class="rendszerContainer">
|
||||
@{
|
||||
if ((bool)ViewData["IsTanarTTFfelVagySzuperOsztalyFonok"])
|
||||
{
|
||||
RenderTableContent(Model.BeNemIrtOrak);
|
||||
RenderTableContent(Model.KiirtHelyettesitesek);
|
||||
|
||||
if ((bool)ViewData["UzenetekEnabled"])
|
||||
{
|
||||
RenderTableContent(Model.Uzenetek);
|
||||
}
|
||||
|
||||
if ((bool)ViewData["UgyekEnabled"])
|
||||
{
|
||||
RenderTableContent(Model.Ugyek);
|
||||
}
|
||||
|
||||
if ((bool)ViewData["IsOsztalyFonokVagyCsoportVezeto"])
|
||||
{
|
||||
RenderTableContent(Model.Mulasztasok);
|
||||
RenderTableContent(Model.BukasraAlloTanulok);
|
||||
}
|
||||
|
||||
foreach (var item in Model.DashBoardUzenetek)
|
||||
{
|
||||
if (Constants.AdminDashboardEgyediAzonositok.RENDSZERFRISSITESI.Equals(item.EgyediAzonosito))
|
||||
{
|
||||
item.Content = string.Format(item.Content, Html.Raw(ViewBag.ShortMainVersion), Html.Raw(ViewBag.NextUpdateDateTimeText));
|
||||
}
|
||||
else if (Constants.AdminDashboardEgyediAzonositok.COVIDINFO.Equals(item.EgyediAzonosito))
|
||||
{
|
||||
if (Model.VanCovidFertozott)
|
||||
{
|
||||
item.Content = string.Format(item.Content, Url.Action("DownloadCovidFertozott", Constants.Controllers.TanarDashboard, new { area = Constants.Areas.Tanar }));
|
||||
}
|
||||
else
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
RenderContent(item);
|
||||
}
|
||||
}
|
||||
}
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue