} $f->action = $g_display["form_action"]; $f->method = "POST"; $f->add_raw_html(<<<EOF \t<h1>{{Describe your event}}</h1> \t<div class="form_section"> EOF ); $item = $f->add_text(_t("[event]Title"), "title", default_value("title", $event->title), _t("Conference, or meeting name.")); $item->other_attr = ' size="60" maxlength="255"'; $item = $f->add_text(_t("Organizer name"), "organizer_name", default_value("organizer_name", $event->organizer_name, $user->get_company_name()), _t("The entity that is responsible for organizing the event.")); $item->other_attr = ' size="60" maxlength="255"'; $item = $f->add_text(_t("Organizer phone (optional but recommended)"), "phone", default_value("phone", $event->phone, $user->phone), _t("Contact phone not published. Used ONLY for support purpose.")); $item->is_optional = true; if (!$event->has_accountancy_activity()) { $item = $f->add_number(_t("Required funding (Euro)"), "funding_needed", default_value("funding_needed", $event->funding_needed), _t("Minimum amount of fund needed to organize the event. Please indicate 0 if no requirement.")); $item->other_attr = ' step="0.01" min="0"'; } else { $f->add_hidden("funding_needed", $event->funding_needed); } $item = $f->add_text(_t("Event date"), "happening_t", default_value("happening_t", $event->happening_t), _t("Date at which starts the event (Format: YYYY-MM-DD).")); $item->other_attr = 'autocomplete="off"'; $item = $f->add_text(_t("VAT indentification number"), "vat", default_value("vat", $event->vat, $user->vat), _t("For EU company only.")); $item->is_optional = true; if (!$event->is_confirmed()) { $f->add_checkbox(_t("This event is confirmed."), "is_confirmed", "", _t("help_checkbox_confirmation")); } $item = $f->add_text(_t("Confirmation date"), "confirmation_t", default_value("confirmation_t", $event->confirmation_t), _t("Maximum date at which the event will be confirmed or cancelled (Format: YYYY-MM-DD).")); $item->other_attr = 'autocomplete="off"'; $location = Address::get_from_id($event->location_address_id); $placeholder = _t('Street no, Street, Zip City, etc.');