Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
jdev
jdev-boarding
Commits
ecad00ad
Commit
ecad00ad
authored
Feb 13, 2017
by
François Agneray
Browse files
Validation pour non participant
parent
98f27c28
Changes
4
Hide whitespace changes
Inline
Side-by-side
app/src/Action/DashboardAdminAction.php
View file @
ecad00ad
...
...
@@ -29,7 +29,7 @@ final class DashboardAdminAction
$roleSI
=
$request
->
getAttribute
(
'roleSI'
);
if
(
$roleSI
!=
'admin'
)
{
return
$response
->
withStatus
(
401
);
return
$response
->
withStatus
(
401
);
}
$organisateurs
=
$this
->
getOrganisteurs
();
...
...
@@ -39,11 +39,11 @@ final class DashboardAdminAction
$this
->
view
->
render
(
$response
,
'dashboard_admin_home.twig'
,
[
'page'
=>
'dashboard-admin'
,
'token'
=>
$token
,
'organisateurs'
=>
$organisateurs
,
'invites'
=>
$invites
,
'sponsors'
=>
$sponsors
,
'exposants'
=>
$exposants
'token'
=>
$token
,
'organisateurs'
=>
$organisateurs
,
'invites'
=>
$invites
,
'sponsors'
=>
$sponsors
,
'exposants'
=>
$exposants
]);
return
$response
;
...
...
app/src/Action/ValidEmailAction.php
View file @
ecad00ad
...
...
@@ -39,7 +39,9 @@ final class ValidEmailAction
else
if
(
isset
(
$participant
)
&&
$participant
->
getCleEmail
()
==
$params
[
'key'
])
{
$participant
->
setEmailValide
(
true
);
$this
->
em
->
flush
();
if
(
$participant
->
getPassPrepaye
())
{
if
(
!
$participant
->
getCloValide
())
{
$this
->
sendEmailValidClo
(
$participant
);
}
else
if
(
$participant
->
getPassPrepaye
())
{
$this
->
sendEmailPassPrepaye
(
$participant
);
}
else
{
$this
->
sendEmailAzurColloque
(
$participant
);
...
...
@@ -63,11 +65,32 @@ final class ValidEmailAction
return
$response
;
}
private
function
sendEmailValidClo
(
$participant
)
{
$body
=
'Bonjour '
.
$participant
->
getPrenom
()
.
' '
.
$participant
->
getNom
()
.
PHP_EOL
;
$body
.
=
PHP_EOL
;
$body
.
=
'Nous avons acté votre inscription aux JDEV2017 avec un '
.
$participant
->
getTypeInscription
()
.
'.'
.
PHP_EOL
;
$body
.
=
PHP_EOL
;
$body
.
=
'Votre inscription nécessite une validation complémentaire par un membre du comité d\'oganisation.'
.
PHP_EOL
;
$body
.
=
'Vous recevrez trés prochainement un e-mail pour vous prévenir de la validation de votre compte.'
.
PHP_EOL
;
$body
.
=
PHP_EOL
;
$body
.
=
'Bien cordialement'
.
PHP_EOL
;
$body
.
=
'Le comité d\'ogranisation des JDEV2017'
;
$message
=
\
Swift_Message
::
newInstance
(
'JDEV2017 e-mail participant verifié'
)
->
setFrom
([
'contact@jdev2017.fr'
=>
'jdev2017.fr'
])
->
setTo
([
$participant
->
getEmail
()])
->
setBody
(
$body
);
$this
->
mailer
->
send
(
$message
);
}
private
function
sendEmailPassPrepaye
(
$participant
)
{
$body
=
'Bonjour '
.
$participant
->
getPrenom
()
.
' '
.
$participant
->
getNom
()
.
PHP_EOL
;
$body
.
=
PHP_EOL
;
$body
.
=
'Nous avons acté votre inscription aux JDEV2017.'
.
PHP_EOL
;
$body
.
=
'Nous avons acté votre inscription aux JDEV2017 avec un '
.
$participant
->
getTypeInscription
()
.
'.'
.
PHP_EOL
;
$body
.
=
PHP_EOL
;
$body
.
=
'Vos frais d\'inscription sont pris en charge par votre organisme ('
.
$participant
->
getOrganisme
()
->
getLabel
()
.
'), '
;
$body
.
=
'sous réserve de la validation de la prise en charge des frais de missions par le Service Formation de votre Délégation d\'origine.'
.
PHP_EOL
;
$body
.
=
PHP_EOL
;
...
...
@@ -86,7 +109,7 @@ final class ValidEmailAction
$body
.
=
'Bien cordialement'
.
PHP_EOL
;
$body
.
=
'Le comité d\'ogranisation des JDEV2017'
;
$message
=
\
Swift_Message
::
newInstance
(
'
Compte participant JDEV2017 valid
é'
)
$message
=
\
Swift_Message
::
newInstance
(
'
JDEV2017 e-mail participant verifi
é'
)
->
setFrom
([
'contact@jdev2017.fr'
=>
'jdev2017.fr'
])
->
setTo
([
$participant
->
getEmail
()])
->
setBody
(
$body
);
...
...
@@ -98,7 +121,7 @@ final class ValidEmailAction
{
$body
=
'Bonjour '
.
$participant
->
getPrenom
()
.
' '
.
$participant
->
getNom
()
.
PHP_EOL
;
$body
.
=
PHP_EOL
;
$body
.
=
'Nous avons acté votre inscription aux JDEV2017.'
.
PHP_EOL
;
$body
.
=
'Nous avons acté votre inscription aux JDEV2017
avec un '
.
$participant
->
getTypeInscription
()
.
'
.'
.
PHP_EOL
;
$body
.
=
PHP_EOL
;
$body
.
=
'Pour que votre inscription soit prise en compte, vous devez la finaliser par le paiement des frais d\'inscription '
;
$body
.
=
'sur la plate-forme Azur-Colloque avant la clôture des inscriptions au 30 mai 2017 : '
;
...
...
@@ -117,7 +140,7 @@ final class ValidEmailAction
$body
.
=
'Bien cordialement'
.
PHP_EOL
;
$body
.
=
'Le comité d\'ogranisation des JDEV2017'
;
$message
=
\
Swift_Message
::
newInstance
(
'
Compte participant JDEV2017 valid
é'
)
$message
=
\
Swift_Message
::
newInstance
(
'
JDEV2017 e-mail participant verifi
é'
)
->
setFrom
([
'contact@jdev2017.fr'
=>
'jdev2017.fr'
])
->
setTo
([
$participant
->
getEmail
()])
->
setBody
(
$body
);
...
...
app/templates/dashboard_admin_home.twig
View file @
ecad00ad
...
...
@@ -27,9 +27,7 @@
<td>
{%
if
organisateur.getCloValide
()
==
true
%}
<i
class=
"fa fa-check-square-o"
></i>
{%
else
%}
<a
href=
"valid-clo?email=
{{
organisateur.getEmail
()
}}
&valid=true"
class=
"btn btn-success"
><i
class=
"fa fa-check-square-o"
></i></a>
<a
href=
"valid-clo?email=
{{
organisateur.getEmail
()
}}
&valid=false"
class=
"btn btn-danger"
><i
class=
"fa fa-window-close-o"
></i></a>
{%
endif
%}
<a
href=
"valid-clo?email=
{{
organisateur.getEmail
()
}}
&valid=true"
class=
"btn btn-success"
><i
class=
"fa fa-check-square-o"
></i></a>
{%
endif
%}
</td>
</tr>
{%
endfor
%}
...
...
@@ -39,8 +37,6 @@
{%
else
%}
<p>
pas encore d'inscrits
</p>
{%
endif
%}
<!--
<hr>
<h4><i
class=
"fa fa-check-square-o"
></i>
Validation des inscriptions de type Invité
</h4>
{%
if
invites
%}
...
...
@@ -62,7 +58,6 @@
<i
class=
"fa fa-check-square-o"
></i>
{%
else
%}
<a
href=
"valid-clo?email=
{{
invite.getEmail
()
}}
&valid=true"
class=
"btn btn-success"
><i
class=
"fa fa-check-square-o"
></i></a>
<a href="valid-clo?email=
{{
invite.getEmail
()
}}
&valid=false" class="btn btn-danger"><i class="fa fa-window-close-o"></i></a>
{%
endif
%}
</td>
</tr>
...
...
@@ -125,7 +120,6 @@
{%
else
%}
<p>
pas encore d'inscrits
</p>
{%
endif
%}
-->
</div>
</div>
{%
endblock
%}
app/templates/dashboard_home.twig
View file @
ecad00ad
...
...
@@ -7,7 +7,13 @@
</div>
<div>
{%
if
participant.getPassPrepaye
()
%}
{%
if
not
participant.getCloValide
()
%}
<h4><i
class=
"fa fa-check-square-o"
></i>
En attente de validation
</h4>
<p>
Nous avons acté votre inscription aux JDEV2017 en tant que
{{
participant.getRole
()
}}
.
<br>
Votre inscription nécessite une validation complémentaire par un membre du comité d\'oganisation.
<br>
Vous recevrez trés prochainement un e-mail pour vous prévenir de la validation de votre compte.
</p>
{%
elseif
participant.getPassPrepaye
()
%}
<h4><i
class=
"fa fa-check-square-o"
></i>
Votre inscription
</h4>
<p>
Nous avons acté votre inscription aux JDEV2017.
<br>
Vos frais d'inscription sont pris en charge par votre organisme.
...
...
@@ -23,6 +29,7 @@
</p>
{%
endif
%}
{%
if
participant.getCloValide
()
%}
<hr>
<h4><i
class=
"fa fa-info-circle"
></i>
Les frais d'inscription couvrent les prestations suivantes
</h4>
<ul>
...
...
@@ -35,6 +42,7 @@
<p><i
class=
"fa fa-calendar"
></i>
<i>
Ouverture des inscriptions aux ateliers
à partir du 30 avril 2017
</i>
</p>
{%
endif
%}
</div>
</div>
{%
endblock
%}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment