2024-03-03 00:21:51 +03:00
|
|
|
<?php
|
2024-03-09 18:58:35 +03:00
|
|
|
/**
|
|
|
|
* @package Joomla.Administrator
|
|
|
|
* @subpackage com_oauthserver
|
|
|
|
*
|
|
|
|
* @copyright (c) 2024. Webmasterskaya. <https://webmasterskaya.xyz>
|
|
|
|
* @license MIT; see LICENSE.txt
|
|
|
|
**/
|
2024-03-03 00:21:51 +03:00
|
|
|
|
|
|
|
use Joomla\CMS\HTML\HTMLHelper;
|
|
|
|
use Joomla\CMS\Language\Text;
|
|
|
|
use Joomla\CMS\Router\Route;
|
|
|
|
|
|
|
|
defined('_JEXEC') or die;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var \Webmasterskaya\Component\OauthServer\Administrator\View\Client\HtmlView $this
|
|
|
|
*/
|
|
|
|
|
|
|
|
$wa = $this->document->getWebAssetManager();
|
|
|
|
$wa->useScript('keepalive')
|
|
|
|
->useScript('form.validate');
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
2024-03-09 18:58:35 +03:00
|
|
|
<form action="<?php echo Route::_('index.php?option=com_oauthserver&layout=edit&id=' . (int) $this->item->id); ?>"
|
|
|
|
method="post" name="adminForm" id="client-form"
|
|
|
|
aria-label="<?php echo Text::_('COM_OAUTHSERVER_CLIENT_FORM_' . ((int) $this->item->id === 0 ? 'NEW' : 'EDIT'), true); ?>"
|
|
|
|
class="form-validate">
|
2024-03-03 00:21:51 +03:00
|
|
|
|
|
|
|
<div class="main-card">
|
|
|
|
<?php echo HTMLHelper::_('uitab.startTabSet', 'myTab', ['active' => 'details', 'recall' => true, 'breakpoint' => 768]); ?>
|
|
|
|
|
2024-03-03 22:48:22 +03:00
|
|
|
<?php echo HTMLHelper::_('uitab.addTab', 'myTab', 'details', Text::_('COM_OAUTHSERVER_CLIENT_DETAILS')); ?>
|
2024-03-03 00:21:51 +03:00
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12">
|
|
|
|
<fieldset id="fieldset-publishingdata" class="options-form">
|
|
|
|
<legend><?php echo Text::_('COM_OAUTHSERVER_CLIENT'); ?></legend>
|
|
|
|
<div>
|
2024-03-03 22:48:22 +03:00
|
|
|
<?php echo $this->form->renderField('name'); ?>
|
|
|
|
<?php echo $this->form->renderField('public'); ?>
|
2024-03-07 23:38:11 +03:00
|
|
|
<?php echo $this->form->renderField('redirect_uris'); ?>
|
2024-03-03 22:48:22 +03:00
|
|
|
<?php echo $this->form->renderField('allow_plain_text_pkce'); ?>
|
|
|
|
<?php echo $this->form->renderField('identifier'); ?>
|
|
|
|
<?php echo $this->form->renderField('secret'); ?>
|
2024-03-03 00:21:51 +03:00
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<?php echo HTMLHelper::_('uitab.endTab'); ?>
|
|
|
|
|
|
|
|
<?php echo HTMLHelper::_('uitab.endTabSet'); ?>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<input type="hidden" name="task" value="">
|
|
|
|
<?php echo HTMLHelper::_('form.token'); ?>
|
|
|
|
</form>
|
|
|
|
|