0fe28e83ee
Universal: PR Check / Branch Policy (pull_request) Failing after 2s
Generic: Repo Health / Access control (pull_request) Successful in 1s
Generic: Repo Health / Site Health (pull_request) Has been skipped
Joomla: Extension CI / Release Readiness Check (pull_request) Failing after 6s
Universal: Secret Scanning / Gitleaks Secret Scan (pull_request) Successful in 9s
Universal: PR Check / Validate PR (pull_request) Failing after 16s
Generic: Project CI / Lint & Validate (pull_request) Successful in 32s
Joomla: Extension CI / Lint & Validate (pull_request) Failing after 44s
Universal: Pre-Release / Build Pre-Release (${{ inputs.stability || 'development' }}) (pull_request_target) Failing after 8s
RC Revert / Rename rc/ back to dev/ (pull_request) Has been skipped
Branch Cleanup / Delete merged branch (pull_request) Successful in 2s
Universal: Workflow Sync Trigger / Sync workflows to live repos (pull_request) Failing after 3s
Universal: Build & Release / Promote to RC (pull_request) Has been skipped
Generic: Project CI / Tests (pull_request) Has been cancelled
Joomla: Extension CI / Tests (PHP 8.2) (pull_request) Has been cancelled
Joomla: Extension CI / Tests (PHP 8.3) (pull_request) Has been cancelled
Joomla: Extension CI / PHPStan Analysis (pull_request) Has been cancelled
Joomla: Extension CI / Build RC Pre-Release (pull_request) Has been cancelled
Universal: PR Check / Build RC Package (pull_request) Has been cancelled
Universal: PR Check / Report Issues (pull_request) Has been cancelled
Generic: Repo Health / Scripts governance (pull_request) Has been cancelled
Generic: Repo Health / Repository health (pull_request) Has been cancelled
Generic: Repo Health / Report Issues (pull_request) Has been cancelled
48 lines
2.0 KiB
PHP
48 lines
2.0 KiB
PHP
<?php
|
|
/**
|
|
* @package DPCalendar
|
|
* @copyright Copyright (C) 2023 Digital Peak GmbH. <https://www.digital-peak.com>
|
|
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU/GPL
|
|
*/
|
|
|
|
\defined('_JEXEC') or die();
|
|
|
|
use DigitalPeak\Component\DPCalendar\Administrator\Helper\DPCalendarHelper;
|
|
use Joomla\CMS\Uri\Uri;
|
|
use Joomla\CMS\HTML\HTMLHelper;
|
|
|
|
if (!DPCalendarHelper::canCreateEvent()) {
|
|
return;
|
|
}
|
|
?>
|
|
<div class="mod-dpcalendar-mini__quickadd dp-quickadd">
|
|
<form action="<?php echo $router->getEventFormRoute(0, Uri::getInstance()->toString()); ?>" method="post" class="dp-form form-validate">
|
|
<?php echo $quickaddForm->renderField('start_date'); ?>
|
|
<?php echo $quickaddForm->renderField('end_date'); ?>
|
|
<?php echo $quickaddForm->renderField('title'); ?>
|
|
<?php echo $quickaddForm->renderField('catid'); ?>
|
|
<?php echo $quickaddForm->renderField('color'); ?>
|
|
<input type="hidden" name="task" class="dp-input dp-input-hidden">
|
|
<input type="hidden" name="urlhash" class="dp-input dp-input-hidden">
|
|
<input type="hidden" name="jform[capacity]" value="0" class="dp-input dp-input-hidden">
|
|
<?php if ($params->get('event_create_form', 1) == '1' || $params->get('event_create_form', 1) == '3') { ?>
|
|
<input type="hidden" name="jform[all_day]" value="0" class="dp-input dp-input-hidden">
|
|
<?php } ?>
|
|
<input type="hidden" name="layout" value="edit" class="dp-input dp-input-hidden">
|
|
<input type="hidden" name="jform[location_ids][]" class="dp-input dp-input-hidden">
|
|
<input type="hidden" name="jform[rooms][]" class="dp-input dp-input-hidden">
|
|
<?php echo HTMLHelper::_('form.token'); ?>
|
|
<div class="dp-quickadd__buttons">
|
|
<button type="button" class="dp-button dp-quickadd__button-submit">
|
|
<?php echo $translator->translate('JSAVE'); ?>
|
|
</button>
|
|
<button type="button" class="dp-button dp-quickadd__button-edit">
|
|
<?php echo $translator->translate('JACTION_EDIT'); ?>
|
|
</button>
|
|
<button type="button" class="dp-button dp-quickadd__button-cancel">
|
|
<?php echo $translator->translate('JCANCEL'); ?>
|
|
</button>
|
|
</div>
|
|
</form>
|
|
</div>
|