<form id="viewfolder" method="post" action="{{ S_PM_ACTION }}" class="iz-form">

	<section class="iz-card iz-card--ucp iz-card--pm">
		<header class="iz-card__header">
			<h2 class="iz-card__title">
				{{ L_TITLE }}{% if CUR_FOLDER_NAME %}{{ L_COLON }}&nbsp;{{ CUR_FOLDER_NAME }}{% endif %}
			</h2>
		</header>

		<div class="iz-card__body">

			{% if FOLDER_STATUS and FOLDER_MAX_MESSAGES != 0 %}
				<p class="iz-prose">{{ FOLDER_STATUS }}</p>

				<div class="iz-progress" role="group" aria-label="{{ L_FOLDER_STATUS }}">
					<div class="iz-progress__bar"
						role="progressbar"
						aria-valuenow="{{ FOLDER_PERCENT }}"
						aria-valuemin="0"
						aria-valuemax="100"
						style="width: {{ FOLDER_PERCENT }}%;"
					>
						<span class="iz-visually-hidden">{{ FOLDER_PERCENT }}%</span>
					</div>
				</div>
			{% endif %}

			<div class="iz-space iz-space--sm"></div>

			<div class="iz-toolbar iz-toolbar--ucp-actions" aria-label="{{ L_OPTIONS }}">
				<div class="iz-toolbar__left">
					{% if U_POST_REPLY_PM or U_POST_NEW_TOPIC or U_FORWARD_PM %}
						<div class="iz-actions">
							{% if U_POST_REPLY_PM %}
								<a class="iz-btn iz-btn--primary iz-btn--sm" href="{{ U_POST_REPLY_PM }}">
									{{ L_POST_REPLY_PM }}
								</a>
							{% elseif U_POST_NEW_TOPIC %}
								<a class="iz-btn iz-btn--primary iz-btn--sm" href="{{ U_POST_NEW_TOPIC }}" accesskey="n">
									{{ L_UCP_PM_COMPOSE }}
								</a>
							{% endif %}

							{% if U_FORWARD_PM %}
								<a class="iz-btn iz-btn--ghost iz-btn--sm" href="{{ U_FORWARD_PM }}">
									{{ L_POST_FORWARD_PM }}
								</a>
							{% endif %}

							{% if U_POST_REPLY_PM and S_PM_RECIPIENTS gt 1 %}
								<a class="iz-btn iz-btn--ghost iz-btn--sm" href="{{ U_POST_REPLY_ALL }}">
									{{ L_REPLY_TO_ALL }}
								</a>
							{% endif %}
						</div>
					{% endif %}
				</div>

				<div class="iz-toolbar__right">
					{% if TOTAL_MESSAGES or S_VIEW_MESSAGE %}
						<nav class="iz-pager" aria-label="{{ L_PAGINATION }}">
							{% if S_VIEW_MESSAGE %}
								<a class="iz-link" href="{{ U_CURRENT_FOLDER }}">{{ L_RETURN_TO_FOLDER }}</a>
							{% elseif FOLDER_CUR_MESSAGES != 0 %}
								{% if U_MARK_ALL %}
									<a class="iz-link" href="{{ U_MARK_ALL }}">{{ L_PM_MARK_ALL_READ }}</a>
									<span class="iz-sep">•</span>
								{% endif %}

								<span class="iz-pager__meta">{{ TOTAL_MESSAGES }}</span>

								<span class="iz-sep">•</span>

								<span class="iz-pager__nav">
									{% if pagination %}
										{% include 'pagination.html' %}
									{% else %}
										<span class="iz-pager__current" aria-current="page">{{ PAGE_NUMBER }}</span>
									{% endif %}
								</span>
							{% endif %}
						</nav>
					{% endif %}
				</div>
			</div>

			<div class="iz-space iz-space--sm"></div>
