afficher suivi_par dans les dossiers similaires
This commit is contained in:
@@ -107,6 +107,13 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.gly-spin {
|
||||||
|
-webkit-animation: spin 2s infinite linear;
|
||||||
|
-moz-animation: spin 2s infinite linear;
|
||||||
|
-o-animation: spin 2s infinite linear;
|
||||||
|
animation: spin 2s infinite linear;
|
||||||
|
}
|
||||||
|
|
||||||
#bg {
|
#bg {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
|||||||
@@ -100,7 +100,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<tr tal:repeat="detail similaires">
|
<tr tal:repeat="detail similaires">
|
||||||
<td>
|
<td>
|
||||||
<a href="/dossier_view/${detail.nodossier}">${detail.nodossier}</a>
|
<a href="/dossier_view/${detail.nodossier}">${detail.nodossier}</a> ${detail.suivi_par}
|
||||||
</td>
|
</td>
|
||||||
<td>${detail.DATE.strftime('%d-%m-%Y')}</td>
|
<td>${detail.DATE.strftime('%d-%m-%Y')}</td>
|
||||||
<td class="bg-${detail.nodossier[0:2]}">${detail.NOMCLI}</td>
|
<td class="bg-${detail.nodossier[0:2]}">${detail.NOMCLI}</td>
|
||||||
@@ -129,34 +129,35 @@
|
|||||||
<table class="table table-bordered table-condensed">
|
<table class="table table-bordered table-condensed">
|
||||||
<tr>
|
<tr>
|
||||||
<th>Date</th>
|
<th>Date</th>
|
||||||
|
<th>Rendez-vous</th>
|
||||||
|
<th>Avec</th>
|
||||||
<th>Action - commentaire</th>
|
<th>Action - commentaire</th>
|
||||||
<th class="text-right">Montant</th>
|
<th class="text-right">Montant</th>
|
||||||
<th>Rendez-vous</th>
|
|
||||||
<th>Réf. lettre</th>
|
<th>Réf. lettre</th>
|
||||||
<th class="text-center">Par</th>
|
<th class="text-center">Par</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr tal:repeat="detail details">
|
<tr tal:repeat="detail details">
|
||||||
<td tal:condition="detail.DATEVI==None">
|
<td>
|
||||||
<a href="${request.route_url('suivi_edit', nodossier=nodossier, nolig=detail.NOLIG)}">
|
${detail.DATE.strftime('%d-%m-%Y')}
|
||||||
${detail.DATE.strftime('%d-%m-%Y')}</a>
|
|
||||||
</td>
|
</td>
|
||||||
<td tal:condition="detail.DATEVI!=None">
|
<td>
|
||||||
|
<span tal:condition="detail.rdv_debut==None"></span>
|
||||||
|
<span tal:condition="detail.rdv_debut!=None">
|
||||||
<a href="${request.route_url('rdv_edit', nodossier=nodossier, nolig=detail.NOLIG)}">
|
<a href="${request.route_url('rdv_edit', nodossier=nodossier, nolig=detail.NOLIG)}">
|
||||||
${detail.DATE.strftime('%d-%m-%Y')}</a>
|
${detail.rdv_debut.strftime('%d-%m-%Y %H:%M')}</a>
|
||||||
|
</span>
|
||||||
|
</td>
|
||||||
|
<td class="text-center">
|
||||||
|
<span tal:condition="detail.rdv_debut!=None">${detail.LISTE}</span>
|
||||||
</td>
|
</td>
|
||||||
<td tal:condition="detail.COMMENT.startswith('!!')" class="text-danger">
|
<td tal:condition="detail.COMMENT.startswith('!!')" class="text-danger">
|
||||||
<b>${detail.COMMENT}</b>
|
<b>${detail.COMMENT}</b>
|
||||||
</td>
|
</td>
|
||||||
<td tal:condition="not detail.COMMENT.startswith('!!')">
|
<td tal:condition="not detail.COMMENT.startswith('!!')">
|
||||||
${detail.COMMENT}
|
<a href="${request.route_url('suivi_edit', nodossier=nodossier, nolig=detail.NOLIG)}">
|
||||||
|
${detail.COMMENT}</a>
|
||||||
</td>
|
</td>
|
||||||
<td class="text-right">${layout.to_euroz(detail.montant)}</td>
|
<td class="text-right">${layout.to_euroz(detail.montant)}</td>
|
||||||
<td>
|
|
||||||
<span tal:condition="detail.rdv_debut==None"></span>
|
|
||||||
<span tal:condition="detail.rdv_debut!=None">
|
|
||||||
${detail.rdv_debut.strftime('%d-%m-%Y %H:%M')} avec ${detail.LISTE}
|
|
||||||
</span>
|
|
||||||
</td>
|
|
||||||
<td class="text-center">${detail.REF_LET}</td>
|
<td class="text-center">${detail.REF_LET}</td>
|
||||||
<td class="text-center">${detail.USERMAJ}</td>
|
<td class="text-center">${detail.USERMAJ}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@@ -10,14 +10,14 @@
|
|||||||
data-fv-icon-validating="glyphicon glyphicon-refresh">
|
data-fv-icon-validating="glyphicon glyphicon-refresh">
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="uploadfile">Séléctionner un fichier</label>
|
<label for="uploadfile">Veuillez séléctionner un fichier</label>
|
||||||
<input id="uploadfile" name="filename" type="file" value="" required />
|
<input id="uploadfile" name="filename" type="file" value="" required />
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<a class="btn btn-default" href="${request.route_url('dossier_view', nodossier=nodossier)}">
|
<a class="btn btn-default" href="${request.route_url('dossier_view', nodossier=nodossier)}">
|
||||||
<span class="glyphicon glyphicon-arrow-left"></span> Retiur au dossier</a>
|
<span class="glyphicon glyphicon-arrow-left"></span> Retiur au dossier</a>
|
||||||
<button class="btn btn-primary" type="submit" name="form.submitted">
|
<button id="uploadButton" class="btn btn-primary" type="submit" name="form.submitted">
|
||||||
<span class="glyphicon glyphicon-cloud-upload"></span> Télécharger</button>
|
<i class="glyphicon glyphicon-refresh"></i> Télécharger</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
<ul>
|
<ul>
|
||||||
@@ -43,5 +43,12 @@
|
|||||||
</div>
|
</div>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
$('#uploadButton').on('click', function(){
|
||||||
|
$('i.gly-spin').removeClass('gly-spin');
|
||||||
|
$('i').addClass('gly-spin');
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</metal:block>
|
</metal:block>
|
||||||
|
|||||||
@@ -269,8 +269,10 @@ def upload_doc(request):
|
|||||||
if 'form.submitted' in request.params:
|
if 'form.submitted' in request.params:
|
||||||
# récupère le fichier lui-même
|
# récupère le fichier lui-même
|
||||||
input_file = request.POST['filename'].file
|
input_file = request.POST['filename'].file
|
||||||
input_name = request.POST['filename'].filename # récupère son nom
|
# récupère son nom
|
||||||
input_ext = input_name.split('.')[-1] # récupère son extension
|
input_name = request.POST['filename'].filename
|
||||||
|
# récupère son extension
|
||||||
|
input_ext = input_name.split('.')[-1]
|
||||||
|
|
||||||
# controler l'extension
|
# controler l'extension
|
||||||
ext_allowed = ['jpeg','jpg','png','pdf']
|
ext_allowed = ['jpeg','jpg','png','pdf']
|
||||||
|
|||||||
Reference in New Issue
Block a user