2016-09-27 17:49:13 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Render edit page for event config.
|
2016-09-28 11:46:40 +02:00
|
|
|
*
|
2017-01-03 03:22:48 +01:00
|
|
|
* @param string $event_name The event name
|
|
|
|
* @param string $event_welcome_msg The welcome message
|
2021-01-02 01:22:05 +01:00
|
|
|
* @param string $buildup_start_date Date (Y-M-D H:i)
|
|
|
|
* @param string $event_start_date Date (Y-M-D H:i)
|
|
|
|
* @param string $event_end_date Date (Y-M-D H:i)
|
|
|
|
* @param string $teardown_end_date Date (Y-M-D H:i)
|
|
|
|
*
|
2017-01-03 03:22:48 +01:00
|
|
|
* @return string
|
2016-09-27 17:49:13 +02:00
|
|
|
*/
|
2017-01-02 15:43:36 +01:00
|
|
|
function EventConfig_edit_view(
|
|
|
|
$event_name,
|
|
|
|
$event_welcome_msg,
|
|
|
|
$buildup_start_date,
|
|
|
|
$event_start_date,
|
|
|
|
$event_end_date,
|
|
|
|
$teardown_end_date
|
|
|
|
) {
|
2017-01-02 03:57:23 +01:00
|
|
|
return page_with_title(event_config_title(), [
|
2017-01-02 15:43:36 +01:00
|
|
|
msg(),
|
|
|
|
form([
|
|
|
|
div('row', [
|
|
|
|
div('col-md-6', [
|
2018-08-29 21:55:32 +02:00
|
|
|
form_text('event_name', __('Event Name'), $event_name),
|
|
|
|
form_info('', __('Event Name is shown on the start page.')),
|
|
|
|
form_textarea('event_welcome_msg', __('Event Welcome Message'), $event_welcome_msg),
|
2017-12-25 23:12:52 +01:00
|
|
|
form_info(
|
|
|
|
'',
|
2018-08-29 21:55:32 +02:00
|
|
|
__('Welcome message is shown after successful registration. You can use markdown.')
|
2023-02-05 18:03:00 +01:00
|
|
|
),
|
2017-01-02 15:43:36 +01:00
|
|
|
]),
|
|
|
|
div('col-md-3 col-xs-6', [
|
2021-01-02 01:22:05 +01:00
|
|
|
form_datetime('buildup_start_date', __('Buildup date'), $buildup_start_date),
|
|
|
|
form_datetime('event_start_date', __('Event start date'), $event_start_date),
|
|
|
|
form_datetime('event_end_date', __('Event end date'), $event_end_date),
|
|
|
|
form_datetime('teardown_end_date', __('Teardown end date'), $teardown_end_date),
|
2023-02-05 18:03:00 +01:00
|
|
|
]),
|
2017-01-02 15:43:36 +01:00
|
|
|
]),
|
|
|
|
div('row', [
|
|
|
|
div('col-md-6', [
|
2023-02-05 18:03:00 +01:00
|
|
|
form_submit('submit', __('Save')),
|
|
|
|
]),
|
|
|
|
]),
|
|
|
|
]),
|
2017-01-02 15:43:36 +01:00
|
|
|
]);
|
2016-09-27 17:49:13 +02:00
|
|
|
}
|