agrega cierre de registro segun setting de fecha, quda configurado para el 8 de Septiembre a las 23:59
This commit is contained in:
parent
09b4fc563d
commit
ee1ee65a2c
@ -77,9 +77,11 @@ $app->get('/registrarse', function (Request $request, Response $response, array
|
||||
if($this->settings["testing"]){
|
||||
$recapsitekey = $this->settings["recaptcha"]["sitekeytest"];
|
||||
}
|
||||
$hoy=strtotime(date("Y-m-d H:i:s"));
|
||||
$fechaCierre = strtotime($this->settings['close_registration']);
|
||||
return $this->renderer->render($response, 'registration.html',
|
||||
[
|
||||
'closed' => $this->settings['close_registration'],
|
||||
'closed' => $hoy>$fechaCierre,
|
||||
'sitekey' => $recapsitekey
|
||||
]);
|
||||
});
|
||||
|
@ -5,7 +5,7 @@ return [
|
||||
'addContentLengthHeader' => false, // Allow the web server to send the content-length header
|
||||
'debug' => true,
|
||||
'testing' => true,
|
||||
'close_registration' => false,
|
||||
'close_registration' => "2021-09-08T23:59:00-0300",
|
||||
|
||||
// Renderer settings
|
||||
'renderer' => [
|
||||
|
@ -10,7 +10,7 @@
|
||||
{% set disabled="disabled" %}
|
||||
<div class="alert alert-danger">
|
||||
<strong>Registration has been closed!</strong><br/>
|
||||
For any further questions, please contact: <a class="alert-link" href="mailto:ggdworkshop@cmat.edu.uy">ggdworkshop@cmat.edu.uy</a>
|
||||
For any further questions, please contact: <a class="alert-link" href="mailto:clam2021@fing.edu.uy">clam2021@fing.edu.uy</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="row">
|
||||
|
Loading…
Reference in New Issue
Block a user