Project

General

Profile

« Previous | Next » 

Revision dc526631

Added by Mikaël Ates over 11 years ago

Date formatting.

View differences:

calebasse/actes/models.py
331 331
    def __unicode__(self):
332 332
        if self.time:
333 333
            return u'{0} le {1} à {2} pour {3} avec {4}'.format(
334
                    self.act_type, self.date, self.time, self.patient,
334
                    self.act_type, self.date.strftime('%d/%m/%Y'),
335
                    self.time.strftime('%H:%M'), self.patient,
335 336
                    ', '.join(map(unicode, self.doctors.all())))
336 337
        return u'{0} le {1} pour {2} avec {3}'.format(
337
                self.act_type, self.date, self.patient,
338
                self.act_type, self.date.strftime('%d/%m/%Y'), self.patient,
338 339
                ', '.join(map(unicode, self.doctors.all())))
339 340

  
340 341
    def __repr__(self):
......
363 364
    what = models.CharField(max_length=256)
364 365
    who = models.ForeignKey(User)
365 366
    when = models.DateTimeField(auto_now_add=True)
366

  
calebasse/dossiers/templates/dossiers/patientrecord_update.html
318 318
                        <button type="button" data-id="{{ hc.id }}" class="del-hcdiag icon-minus" title="Supprimer"></button>
319 319
                        <button type="button" data-id="{{ hc.id }}" class="update-hcdiag-btn icon-edit" title="Modifier"></button>
320 320
                    </div>
321
                      <h3>Prise en charge de diagnostic, débutée le {{ hc.start_date }}</h3>
321
                      <h3>Prise en charge de diagnostic, débutée le {{ hc.start_date|date:"d/m/Y" }}</h3>
322 322
                      <ul>
323
                        {% if hc.request_date %}<li><label>Date de demande</label> : {{ hc.request_date }}</li>{% endif %}
324
                        {% if hc.agree_date %}<li><label>Date d'accord</label> : {{ hc.agree_date }}</li>{% endif %}
325
                        {% if hc.insist_date %}<li><label>Date de relance</label> : {{ hc.insist_date }}</li>{% endif %}
323
                        {% if hc.request_date %}<li><label>Date de demande</label> : {{ hc.request_date|date:"d/m/Y" }}</li>{% endif %}
324
                        {% if hc.agree_date %}<li><label>Date d'accord</label> : {{ hc.agree_date|date:"d/m/Y" }}</li>{% endif %}
325
                        {% if hc.insist_date %}<li><label>Date de relance</label> : {{ hc.insist_date|date:"d/m/Y" }}</li>{% endif %}
326 326
                        {% if hc.comment %}<li><label>Commentaire</label> : {{ hc.comment }}</li>{% endif %}
327 327
                        <li><label>Nombres d'actes de la prise en charge</label> : <strong>{{ hc.cmpphealthcarediagnostic.get_act_number }}</strong></li>
328 328
                        {% if acts %}<li><strong>{{ acts|length }}</strong> actes pouvant être pris en charge lors de la prochaine facturation :</li>
......
351 351
                        <button type="button" data-id="{{ hc.id }}" class="del-hctrait icon-minus" title="Supprimer"></button>
352 352
                        <button type="button" data-id="{{ hc.id }}" class="update-hctrait-btn icon-edit" title="Modifier"></button>
353 353
                    </div>
354
                      <h3>Prise en charge de traitement, débutée le {{ hc.start_date }}{% if hc.end_date %}, se terminant le {{ hc.end_date }}{% endif %}</h3>
354
                      <h3>Prise en charge de traitement, débutée le {{ hc.start_date|date:"d/m/Y" }}{% if hc.end_date %}, se terminant le {{ hc.end_date|date:"d/m/Y" }}{% endif %}</h3>
355 355
                      <ul>
356
                        {% if hc.cmpphealthcaretreatment.end_date %}<li><label>Date de fin</label> : {{ hc.cmpphealthcaretreatment.end_date }}</li>{% endif %}
357
                        {% if hc.request_date %}<li><label>Date de demande</label> : {{ hc.request_date }}</li>{% endif %}
358
                        {% if hc.agree_date %}<li><label>Date d'accord</label> : {{ hc.agree_date }}</li>{% endif %}
359
                        {% if hc.insist_date %}<li><label>Date de relance</label> : {{ hc.insist_date }}</li>{% endif %}
356
                        {% if hc.cmpphealthcaretreatment.end_date %}<li><label>Date de fin</label> : {{ hc.cmpphealthcaretreatment.end_date|date:"d/m/Y" }}</li>{% endif %}
357
                        {% if hc.request_date %}<li><label>Date de demande</label> : {{ hc.request_date|date:"d/m/Y" }}</li>{% endif %}
358
                        {% if hc.agree_date %}<li><label>Date d'accord</label> : {{ hc.agree_date|date:"d/m/Y" }}</li>{% endif %}
359
                        {% if hc.insist_date %}<li><label>Date de relance</label> : {{ hc.insist_date|date:"d/m/Y" }}</li>{% endif %}
360 360
                        {% if hc.comment %}<li><label>Commentaire</label> : {{ hc.comment }}</li>{% endif %}
361 361
                        <li><label>Nombres d'actes de la prise en charge</label> : <strong>{{ hc.cmpphealthcaretreatment.get_act_number }}</strong></li>
362 362
                        {% if acts %}<li><strong>{{ acts|length }}</strong> actes pouvant être pris en charge lors de la prochaine facturation :</li>
......
396 396
                </div>
397 397
                  <h3>Notification</h3>
398 398
                  <ul>
399
                    {% if hc.start_date %}<li><label>Date de début</label> : {{ hc.start_date }}</li>{% endif %}
400
                    {% if hc.sessadhealthcarenotification.end_date %}<li><label>Date de fin</label> : {{ hc.sessadhealthcarenotification.end_date }}</li>{% endif %}
401
                    {% if hc.request_date %}<li><label>Date de demande</label> : {{ hc.request_date }}</li>{% endif %}
402
                    {% if hc.agree_date %}<li><label>Date d'accord</label> : {{ hc.agree_date }}</li>{% endif %}
403
                    {% if hc.insist_date %}<li><label>Date de relance</label> : {{ hc.insist_date }}</li>{% endif %}
399
                    {% if hc.start_date %}<li><label>Date de début</label> : {{ hc.start_date|date:"d/m/Y" }}</li>{% endif %}
400
                    {% if hc.sessadhealthcarenotification.end_date %}<li><label>Date de fin</label> : {{ hc.sessadhealthcarenotification.end_date|date:"d/m/Y" }}</li>{% endif %}
401
                    {% if hc.request_date %}<li><label>Date de demande</label> : {{ hc.request_date|date:"d/m/Y" }}</li>{% endif %}
402
                    {% if hc.agree_date %}<li><label>Date d'accord</label> : {{ hc.agree_date|date:"d/m/Y" }}</li>{% endif %}
403
                    {% if hc.insist_date %}<li><label>Date de relance</label> : {{ hc.insist_date|date:"d/m/Y" }}</li>{% endif %}
404 404
                    {% if hc.comment %}<li><label>Commentaire</label> : {{ hc.comment }}</li>{% endif %}
405 405
                  </ul>
406 406
                </div>

Also available in: Unified diff