<?php
/*
 * @component UserPoints
 * @copyright Copyright (C) 2015-2022 Bernard Gilly - Adrien Roussel - Martin Brampton
 * @license : GNU/GPL
 * @Website : https://remository.com
 */

defined( '_JEXEC' ) or die( 'Restricted access' );

use Joomla\CMS\Language\Text;

?>
<form action="index.php" method="post" name="adminForm" autocomplete="off">
		<fieldset>
			<div style="float: right">
				<button type="submit" onclick="Joomla.submitform('savecustompoints', this.form);document.location.reload(true);">
					<?php echo Text::_( 'Save' );?></button>
				<!--<button type="submit" onclick="window.parent.SqueezeBox.close();window.top.location='index.php?option=com_userpoints&task=showdetails&cid=<?php echo $this->cid; ?>&name=<?php echo $this->name; ?>';window.top.location.reload(true);history.go(0);window.top.location.reload(true);">
					<?php //echo Text::_( 'Save' );?></button>-->
				<!--<button type="button" onclick="window.parent.SqueezeBox.close();">-->
				<!--<button type="button" onclick="window.close();">
					<?php echo Text::_( 'Cancel' );?></button>-->
			</div>
			<div class="configuration" >
				<?php echo Text::_( 'AUP_CUSTOM_POINTS' ); ?>
			</div>
		</fieldset>
<br /><br />
	<fieldset>
		<legend><?php echo Text::_( 'AUP_CUSTOM_POINTS' ); ?></legend>
		<table class="admintable">
		<tbody>
		<tr>
			<td class="key">
				<span class="editlinktip hasTip" title="<?php echo Text::_( 'AUP_POINTS' ); ?>::<?php echo Text::_('AUP_CUSTOM_POINTS_DESCRIPTION'); ?>">
					<?php echo Text::_( 'AUP_POINTS' ); ?>:
				</span>
			</td>
			<td>				
				<input class="inputbox" type="text" name="points" id="points" size="20" maxlength="255" value="" />
			</td>
		</tr>
		<tr>
			<td class="key">
				<span class="editlinktip hasTip" title="<?php echo Text::_( 'AUP_DESCRIPTION' ); ?>::<?php echo Text::_('AUP_DESCRIPTION'); ?>">
					<?php echo Text::_( 'AUP_DESCRIPTION' ); ?>:
				</span>
			</td>
			<td>
				<input class="inputbox" type="text" name="reason" id="reason" size="80" maxlength="255" value="" />
			</td>
		</tr>
		</tbody>
		</table>
	</fieldset>
	<input type="hidden" name="option" value="com_userpoints" />
	<input type="hidden" name="task" value="savecustompoints" />
	<input type="hidden" name="cid" value="<?php echo $this->cid; ?>" />
	<input type="hidden" name="name" value="<?php echo $this->name; ?>" />
</form><br /><br />