<?php
/**
 * @package	AcyMailing for Joomla
 * @version	6.2.2
 * @author	acyba.com
 * @copyright	(C) 2009-2019 ACYBA S.A.R.L. All rights reserved.
 * @license	GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */

defined('_JEXEC') or die('Restricted access');
?><h2 class="acym__walkthrough__title cell"><?php echo acym_translation('ACYM_YOUR_EMAIL_CONFIGURATION'); ?></h2>

<div class="cell grid-x margin-top-2">
	<p class="cell text-center acym__walkthrough__text">
        <?php echo acym_translation('ACYM_WALKTHROUGH_MAIL_CONFIG_TEXT'); ?>
		<br>
        <?php echo acym_translation('ACYM_WALKTHROUGH_PHPMAIL_TEXT'); ?>
	</p>
</div>

<div class="cell medium-2 hide-for-small-only"></div>
<div class="cell medium-auto small-12 grid-x margin-top-3 text-left">
	<div class="cell">
		<label>
            <?php echo acym_translation('ACYM_FROM_NAME').acym_info(acym_translation('ACYM_FROM_NAME_INFO')); ?>
			<input type="text" name="from_name" class="acym__light__input" required>
		</label>
	</div>

	<div class="cell">
		<label>
            <?php echo acym_translation('ACYM_FROM_MAIL_ADDRESS').acym_info(acym_translation('ACYM_FROM_ADDRESS_INFO')); ?>
			<input type="email" name="from_address" class="acym__light__input" value="<?php echo empty($data['userEmail']) ? '' : acym_escape($data['userEmail']); ?>" required>
		</label>
	</div>
</div>
<div class="cell medium-2 hide-for-small-only"></div>

<div class="cell grid-x align-center margin-top-3">
	<button type="submit" class="acy_button_submit button" data-task="saveStepPhpmail"><?php echo acym_translation('ACYM_SEND_TEST'); ?></button>
</div>

