ajout d'une note administrateur dans les inscriptions
This commit is contained in:
parent
54158df23f
commit
490d8112fa
|
@ -143,6 +143,11 @@ class Registration implements UserInterface, \Serializable
|
|||
*/
|
||||
private $motivation;
|
||||
|
||||
/**
|
||||
* @ORM\Column(name="note", type="text", nullable=true)
|
||||
*/
|
||||
private $note;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="integer", length=60, nullable=true)
|
||||
*/
|
||||
|
@ -840,4 +845,28 @@ class Registration implements UserInterface, \Serializable
|
|||
{
|
||||
return $this->passwordad;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set note
|
||||
*
|
||||
* @param string $note
|
||||
*
|
||||
* @return Registration
|
||||
*/
|
||||
public function setNote($note)
|
||||
{
|
||||
$this->note = $note;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get note
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getNote()
|
||||
{
|
||||
return $this->note;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -45,6 +45,15 @@ class RegistrationType extends AbstractType
|
|||
"attr" => array("class" => "btn btn-success")
|
||||
)
|
||||
);
|
||||
|
||||
$builder->add('note',
|
||||
TextareaType::class, array(
|
||||
"label" => "Notes Administrateur",
|
||||
"required" => false,
|
||||
"disabled" => ($options["mode"]=="delete"?true:false),
|
||||
"attr" => array("class" => "form-control", "style" => "margin-bottom:15px; height: 130px")
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
# Obligatoire
|
||||
|
|
|
@ -21,7 +21,11 @@
|
|||
{% endif %}
|
||||
|
||||
{% if mode!="submit" %}
|
||||
{% if mode=="send" %} {{ form_widget(form.save) }} {%endif%}
|
||||
{% if mode=="send" %}
|
||||
{{ form_widget(form.save) }}
|
||||
<a class="btn btn-default" href="mailto:{{registration.email}}?subject= {{app.session.get('appname')}} : à propos de votre inscription">Envoyer un mail</a>
|
||||
{%endif%}
|
||||
|
||||
<a class="btn btn-default" href={{ path('cadoles_core_config_registration') }}>Annuler</a>
|
||||
{% endif %}
|
||||
|
||||
|
@ -56,6 +60,19 @@
|
|||
{% endif %}
|
||||
|
||||
<div class="row">
|
||||
{% if mode=="send" %}
|
||||
<div class="col-sm-12">
|
||||
<div class="panel panel-primary">
|
||||
<div class="panel-heading">
|
||||
<i class="fa fa-key fa-fw"></i> Notes Administrateur
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
{{ form_widget(form.note) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{%endif%}
|
||||
|
||||
<div class="col-sm-6">
|
||||
<div class="panel panel-primary">
|
||||
<div class="panel-heading">
|
||||
|
|
Loading…
Reference in New Issue