You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
executaveis/GCI.PortalCondomino/Views/Documentos/Index.cshtml

49 lines
1.6 KiB
Plaintext

@using GCI.PortalCondomino.Models
@using GCI.PortalCondomino.Helpers
@model DocumentsModel
@{
ViewBag.Title = "Documentos do Condomínio";
Layout = "~/Views/BackOffice/_Layout.cshtml";
}
@using (Html.BeginForm("Index", "Documentos", FormMethod.Get, null))
{
@Html.Hidden("commonholdid", @Model.CodCondominio, new { id = "commonholdid" })
}
<h3 class="oswald mt0 mb40 ac">@ViewBag.Title</h3>
@if (!string.IsNullOrEmpty(TempData["Feedback"] as string))
{
<h4 class="oswald mt0 mb40 ac" style="color: #98dd22;">@TempData["Feedback"].ToString()</h4>
}
<div class="table-responsive">
<table id="despesas" border="0" cellspacing="0" cellpadding="0" class="table table-striped mb40">
<thead>
<tr>
<th>Tipo</th>
<th>Documento</th>
<th class="text-center">Download</th>
</tr>
</thead>
<tbody>
@foreach (var linha in Model.Documents)
{
<tr>
<td>@linha.Type</td>
<td>@linha.Name</td>
<td class="text-center"><a href="/Documentos/Download/@linha.Id?commonholdid=@Model.CodCondominio" aria-label="Download"><i class='glyphicon glyphicon-download-alt' aria-hidden="true"></i></a></td>
</tr>
}
</tbody>
</table>
</div>
@section footer {
@Html.Partial("_ContactosAdminPartial", Model.AdminData)
}
@section scripts {
<script src="~/Content/js/binder.js" type="text/javascript" nonce="@Html.ScriptNonce()"></script>
}