Skip to content

Instantly share code, notes, and snippets.

@serpel
Created September 7, 2020 07:11
Show Gist options
  • Select an option

  • Save serpel/7ebe7b5ab91e6bce6dde9b9ecb498fbe to your computer and use it in GitHub Desktop.

Select an option

Save serpel/7ebe7b5ab91e6bce6dde9b9ecb498fbe to your computer and use it in GitHub Desktop.
@model Servpro.FranchiseSystems.Framework.Messaging.Events.Jobs.DryingReport.Models.DailyNarrativeDto
@if (Model?.DailyNarratives != null && Model.DailyNarratives.Count > 0)
{
<div class="floatLeft">
<p class="title">Daily Narrative</p>
<table class="daily-narrative-table" summary="Daily Narrative">
<tr>
<th scope="col" class="table-caption leftColumn">Timestamp</th>
<th scope="col" class="table-caption rightColumn">Narrative</th>
</tr>
@foreach (var narrative in Model.DailyNarratives)
{
var narrativeTimeStamp = $"{narrative.CreatedDate:M/d/yyyy h:mm tt}" + $" ({narrative.Timezone})";
<tr class="row-data">
<td>@narrativeTimeStamp</td>
<td>@narrative.NarrativeText</td>
</tr>
}
</table>
</div>
<div style='page-break-before: always;'></div>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment