Retrait des pièces jointes de la vue des candidats
authornilovna.bascunan-vasquez <nilovna.bascunan-vasquez@localhost.localdomain>
Wed, 22 Jun 2011 14:59:15 +0000 (10:59 -0400)
committernilovna.bascunan-vasquez <nilovna.bascunan-vasquez@localhost.localdomain>
Wed, 22 Jun 2011 14:59:15 +0000 (10:59 -0400)
project/recrutement/templates/recrutement/afficher_candidat.html
project/recrutement/views.py

index 7eb6557..a1910e5 100644 (file)
                 </tbody>
             </table>
         </fieldset>
-        <fieldset>
-            <h2>Pièces jointes</h2>
-            <table id="pieces_jointes">
-                <tbody>
-
-                    <tr>
-                        <td> {{ pieces_jointes.nom }}</td>
-                        <td> <a href='http://localhost:8000/prive/{{ pieces_jointes.path }}'>{{ pieces_jointes.path }}</a></td>
-                    </tr>
-
-                </tbody>
-            </table>
-        </fieldset>
     </div>
 
 
index 926c69b..570fcd4 100755 (executable)
@@ -17,10 +17,7 @@ def index(request):
 
 def afficher_candidat(request):
     candidat = get_object_or_404(Candidat, id=request.GET.get('id'))
-    pieces_jointes = CandidatPiece.objects.get(candidat=candidat)
-    #import pdb;pdb.set_trace()
-    var = {'candidat': candidat,
-           'pieces_jointes': pieces_jointes}
+    var = {'candidat': candidat,}
     return render_to_response("recrutement/afficher_candidat.html", var,
                                 RequestContext(request))