]> git.parisson.com Git - teleforma.git/commitdiff
update registration PDF
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Wed, 3 Feb 2016 23:41:24 +0000 (00:41 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Wed, 3 Feb 2016 23:41:24 +0000 (00:41 +0100)
teleforma/forms.py
teleforma/templates/registration/registration_pdf.html

index 8dae558651124de222fc0b7e9a9d85250f12ab91..229acbab948fafa4e7b6892713c981e953a375e3 100644 (file)
@@ -56,7 +56,7 @@ class ProfileInline(InlineFormSet):
     model = Profile
     can_delete = False
     exclude = ['wifi_login', 'wifi_pass', 'language', 'expiration_date',
-                    'init_password', 'country']
+                    'init_password']
 
 
 class StudentInline(InlineFormSet):
index f826136cb74ca44dd384b20e82d08d5e69399c95..973abfcff518f09dd37528bdc1080d31fbf7196a 100644 (file)
@@ -22,6 +22,8 @@
 
 <body>
 {% block layout %}
+{% with student.user.profile.all.0 as profile %}
+
 <div id="layout">
 
 <div id="header">
    <table class="table1">
       <tr><td class="bold">{% trans "Last name" %} : </td><td>{{ student.user.last_name|upper }}</td></tr>
       <tr><td class="bold">{% trans "First name" %} : </td><td>{{ student.user.first_name|upper }}</td></tr>
-      <tr><td class="bold">{% trans "Address" %} : </td><td>{{ student.user.profile.all.0.address }} {{ student.user.profile.all.0.postal_code }} {{ student.user.profile.all.0.city }}</td></tr>
+      <tr><td class="bold">{% trans "Address" %} : </td><td>{{ profile.address }} {{ profile.postal_code }} {{ profile.city }} {{ profile.country }}</td></tr>
+      <tr><td class="bold">{% trans "Telephone" %} : </td><td>{{ profile.telephone }}</td></tr>
+      <tr><td class="bold">{% trans "E-mail" %} : </td><td>{{ student.user.email }}</td></tr>
+      <tr><td class="bold">{% trans "Username" %} : </td><td>{{ student.user.username }}</td></tr>
+      <tr><td class="bold">{% trans "Birthday" %} : </td><td>{{ profile.birthday }}</td></tr>
+
+      <tr><td class="bold">{% trans "Level" %} : </td><td>{{ student.level }}</td></tr>
+      <tr><td class="bold">{% trans "Level" %} : </td><td>{{ student.eij }}</td></tr>
+
       <tr><td class="bold">{% trans "Training" %} : </td><td>{{ student.training.name }}</td></tr>
       <tr><td class="bold">{% trans "Training type" %} : </td><td>{% if student.platform_only %}E-learning{% else %}Présentielle et E-learning{% endif %}</td></tr>
+      <tr><td class="bold">{% trans "Matière de procédure" %} : </td><td>{{ student.procedure }}</td></tr>
+      <tr><td class="bold">{% trans "Matière juridique de spécialité" %} : </td><td>{{ student.written_speciality }}</td></tr>
+      <tr><td class="bold">{% trans "Matière d'oral de spécialité" %} : </td><td>{{ student.oral_speciality }}</td></tr>
+      <tr><td class="bold">{% trans "Matière d'oral technique oral_1" %} : </td><td>{{ student.oral_1 }}</td></tr>
+      <tr><td class="bold">{% trans "Matière d'oral technique oral_2" %} : </td><td>{{ student.oral_2 }}</td></tr>
+
       <tr><td class="bold">{% trans "Registration date" %} : </td><td>{{ student.date_registered}}</td></tr>
+      <tr><td class="bold">{% trans "PROMO code" %} : </td><td>{{ student.promo_code}}</td></tr>
+
     </table>
 
+    <p>Je certifie avoir pris connaissance des conditions générales d’inscription et du règlement intérieur.</p>
+
     <table class="table2">
       <tr><td>
-          Je certifie avoir pris connaissance des conditions générales d’inscription et du règlement intérieur.
+        &nbsp;
       </td>
       <td>
           <p>A ...................................., le .......................................</p>
@@ -59,6 +79,7 @@
 {% endblock %}
 
 </div>
+{% endwith %}
 {% endblock layout %}
 
 </body>