{% if draftrow %}
<section class="iz-drafts" aria-labelledby="iz-drafts-title">
	<header class="iz-drafts__header">
		<h3 class="iz-drafts__title" id="iz-drafts-title">{{ L_LOAD_DRAFT }}</h3>
	</header>

	<div class="iz-alert iz-alert--info" role="status">
		<strong class="iz-alert__title">{{ L_DRAFT_LOADED }}</strong>
		<p class="iz-alert__text">{{ L_LOAD_DRAFT_EXPLAIN }}</p>
	</div>

	<div class="iz-card iz-card--drafts">
		<div class="iz-card__header">
			<h4 class="iz-card__title">{{ L_DRAFT }}</h4>
		</div>

		<div class="iz-card__body">
			<div class="iz-tablewrap" role="region" aria-label="{{ L_DRAFT }}">
				<table class="iz-table">
					<thead>
						<tr>
							<th scope="col">{{ L_LOAD_DRAFT }}</th>
							<th scope="col">{{ L_SAVE_DATE }}</th>
						</tr>
					</thead>
					<tbody>
						{% for draftrow in draftrow %}
						<tr>
							<td>
								<a class="iz-link iz-link--strong topictitle" href="{{ draftrow.U_INSERT }}" title="{{ L_LOAD_DRAFT }}">
									{{ draftrow.DRAFT_SUBJECT }}
								</a>
								<div class="iz-drafts__meta">
									{% if not S_PRIVMSGS %}
										{% if draftrow.S_LINK_TOPIC %}
											{{ L_TOPIC }}{{ L_COLON }}&nbsp;<a class="iz-link" href="{{ draftrow.U_VIEW }}">{{ draftrow.TITLE }}</a>
										{% elseif draftrow.S_LINK_FORUM %}
											{{ L_FORUM }}{{ L_COLON }}&nbsp;<a class="iz-link" href="{{ draftrow.U_VIEW }}">{{ draftrow.TITLE }}</a>
										{% else %}
											{{ L_NO_TOPIC_FORUM }}
										{% endif %}
									{% endif %}
								</div>
							</td>
							<td class="iz-drafts__date">{{ draftrow.DATE }}</td>
						</tr>
						{% endfor %}
					</tbody>
				</table>
			</div>
		</div>
	</div>
</section>
{% endif %}
