updated to materialize2
This commit is contained in:
@@ -150,7 +150,7 @@ class Event
|
||||
. $this->getHtmlStarterList();
|
||||
$kids = participo::getKids();
|
||||
$modal .= '<div class="row">';
|
||||
$modal .= '<div>Deadline zum Eintragen: ' . $this->deadline->format('Y-m-d') . '</div>';
|
||||
$modal .= '<div class="s12">Deadline zum Eintragen: ' . $this->deadline->format('Y-m-d') . '</div>';
|
||||
|
||||
$today = new DateTime();
|
||||
if (
|
||||
@@ -164,6 +164,7 @@ class Event
|
||||
$modal .= '<div>Es ist leider zu spät noch jemanden einzutragen!</div>';
|
||||
}
|
||||
$modal .= '</div>';
|
||||
|
||||
$modal .=
|
||||
'</div>' . // end modal-content
|
||||
'<div class="modal-footer">' .
|
||||
@@ -295,8 +296,8 @@ class Event
|
||||
public function getHtmlAddStarterForm($user, $options = [])
|
||||
{
|
||||
$defaults = [
|
||||
'formClass' => 'card col s12 m6 l3',
|
||||
'inputClass' => 'input-field',
|
||||
'formClass' => 's12 m6 xl3',
|
||||
'inputClass' => 'input-field col s12',
|
||||
'buttonClass' => 'btn'
|
||||
];
|
||||
|
||||
@@ -305,18 +306,20 @@ class Event
|
||||
$returnToUrl = $options['returnToUrl'] ?? urlencode(getCurPagesUrl());
|
||||
|
||||
$key = isset($_SESSION['apiKey']) ? $_SESSION['apiKey'] : null;
|
||||
$selectId = 'form-selectType-event-' . $this->id . '-user-' . $user->getId();
|
||||
|
||||
$form =
|
||||
'<form class="' . $options['formClass'] . '" action="api.starter.add.php" method="post">'
|
||||
. '<input type="hidden" name="eventId" id="eventId" value="' . $this->id . '">'
|
||||
. '<input type="hidden" name="userId" id="userId" value="' . $user->getId() . '">'
|
||||
. '<input type="hidden" name="returnToUrl" id="returnToUrl" value="' . $returnToUrl . '" >'
|
||||
. '<div class="input-field">'
|
||||
. '<select id="selectTypeForm" name="type">'
|
||||
. '<div class="' . $options['inputClass'] . '">'
|
||||
. '<label for="' . $selectId . '">' . $user->getName() . ', ' . $user->getFirstname() . '</label>'
|
||||
. '<select id="' . $selectId . '" name="type">'
|
||||
. '<option value="1" selected="">als Starter</option>'
|
||||
. '<option value="2">als Zuschauer</option>'
|
||||
. '<option value="3">keine Teilnahme</option>'
|
||||
. '</select>'
|
||||
. '<label for="selectTypeForm">' . $user->getName() . ', ' . $user->getFirstname() . '</label>'
|
||||
. '</div>'
|
||||
. '<input class="' . $options['buttonClass'] . '" type="submit" name="submit" value="eintragen">'
|
||||
. '</form>';
|
||||
|
||||
Reference in New Issue
Block a user