<xf:title>{{ phrase('email_transport_setup') }}</xf:title>

<xf:form action="{{ link('options/email-transport-setup', $option) }}" ajax="true" class="block">
	<div class="block-container">
		<div class="block-body">
			<xf:radiorow label="{$option.title}" name="new_type" value="unchanged">
				<xf:set var="$unchangedHint">
					<ul class="listInline listInline--bullet listInline--selfInline">
						<li>{{ $option.option_value.emailTransport == 'sendmail' ? phrase('php_built_in_mail_system') : $option.option_value.emailTransport|to_upper }}</li>
						<xf:if is="$option.option_value.smtpHost">
							<li>{$option.option_value.smtpHost}:{$option.option_value.smtpPort}</li>
						</xf:if>
						<xf:if is="$option.option_value.smtpLoginUsername">
							<li>{$option.option_value.smtpLoginUsername}</li>
						</xf:if>
						<xf:if is="$option.option_value.oauth AND $option.option_value.oauth.provider == 'Google'">
							<li>{{ phrase('google_oauth') }}</li>
						</xf:if>
					</ul>
				</xf:set>

				<xf:option value="unchanged" label="{{ phrase('do_not_change') }}" hint="{$unchangedHint}" />
				<xf:option value="sendmail" label="{{ phrase('php_built_in_mail_system') }}" />
				<xf:option value="smtp" label="SMTP" />
				<xf:option value="google">{{ phrase('google_oauth') }}</xf:option>
			</xf:radiorow>
		</div>
		<xf:submitrow submit="{{ phrase('continue') }}" />
	</div>
</xf:form>