@Master['master.html']
@Model['OrderLogMailOverviewViewModel']
@Section['Content']
<form class="mt-3" method="post">
    <div class="row mt-2">
        <h3>
            Bounce-Objekte inaktivieren
            <small class="text-muted">Auftrag "@Model.OrderName, Auftragsstart am @Model.OrderStartedAt"</small>
        </h3>
    </div>
    <div class="row mt-2">
        <div class="control-group mb-3">
            <div class="controls">
                <button type="submit" class="btn btn-primary"><img src="/static/iconic/svg/wrench.svg" style="width:16px;height:16px;fill:white;stroke:white" alt="reload">&nbsp;Bounce-Objekte unwiederruflich inaktivieren</button>
            </div>
        </div>
    </div>
    <p></p>
    <div class="list-group">
        @Each.FoundBounces
        <div class="list-group-item list-group-item-action">
            <div class="d-flex w-100 justify-content-between">
                <div class="d-flex w-75 flex-grow-1 justify-content-between" style="margin-right:10px;">
                    <div class="d-flex align-items-start flex-column">
                        <h5 class="mb-1">Sendezeitpunkt: @Current.MailSentAt</h5>
                        <p class="mb-1">Empfänger: @Current.AllRecipients</p>
                        @If.HasCcRecipients <p class="mb-1">CC: @Current.AllCcRecipients</p> @EndIf
                        @If.HasBccRecipients <p class="mb-1">BCC: @Current.AllBccRecipients</p> @EndIf
                    </div>
                    <div class="d-flex align-items-end flex-column">
                        <p class="mb-1">Bounce-Status: @Current.BounceActionAsString</p>
                        <p><a href="vertec://@!Current.VertecId"><img src="/static/Vertec.png" title="Objekt mit Vertec-Link öffnen" /></a></p>
                        @If.HasEmailFile
                        <a href="/OrderLog/DownloadOrderLogMail?OrderId=@Current.OrderId&OrderLogId=@Current.OrderLogId&Id=@Current.Id" class="btn btn-success" disabled><img class="iconic" src="/static/iconic/svg/wrench.svg" style="width:16px;height:16px;fill:white;stroke:white" alt="wrench">&nbsp;E-Mail herunterladen</a>
                        @EndIf
                        &nbsp;
                    </div>
                </div>
            </div>
        </div>
        @EndEach
    </div>
</form>
@EndSection
