Projet

Général

Profil

« Précédent | Suivant » 

Révision 6bebd793

Ajouté par Jérôme Schneider il y a environ 10 ans

dossiers: toggle social security datas in contacts tab

Closes #4377

Voir les différences:

calebasse/dossiers/templates/dossiers/patientrecord_tab3_adresses.html
46 46
                        {{ object.job }}
47 47
                        </li>
48 48
                    {% endif %}
49
                    <li><label>Données d'assuré social</label>
50
<!--                            <button class="blind">détails</button>-->
51
                    <ul>
52
                    {% if object.social_security_id %}
53
                        <li><label>Numéro d'assuré social :</label>
54
                        {{ object.social_security_id }} {{ object.get_control_key }}</li>
55
                    {% endif %}
56
                    {% if object.birthdate %}
57
                        <li><label>Date de naissance :</label>
58
                        {{ object.birthdate|date:"SHORT_DATE_FORMAT" }}</li>
59
                    {% endif %}
60
                    {% if object.birthplace %}
61
                        <li><label>Lieu de naissance :</label>
62
                        {{ object.birthplace }}</li>
63
                    {% endif %}
64
                    {% if object.begin_rights %}
65
                        <li><label>Début de droits :</label>
66
                        {{ object.begin_rights }}</li>
67
                    {% endif %}
68
                    {% if object.end_rights %}
69
                        <li><label>Fin de droits :</label>
70
                        {{ object.end_rights }}</li>
71
                    {% endif %}
72
                    {% if object.health_center %}
73
                        <li><label>Caisse :</label>
74
                        {{ object.health_center }} ({{ object.health_center.address }} {{ object.health_center.address_complement }} {{ object.health_center.zip_code }} {{ object.health_center.city }})</li>
75
                    {% endif %}
76
                    {% if object.other_health_center %}
77
                        <li><label>Centre spécifique :</label>
78
                        {{ object.other_health_center }}</li>
79
                    {% endif %}
80
                    {% if object.management_code %}
81
                        <li><label>Code de gestion :</label>
82
                        {{ object.management_code }}</li>
83
                    {% endif %}
84
                    <li><label>Tiers-payant :</label>
85
                        {% if object.thirdparty_payer %}
86
                            Oui
87
                        {% else %}
88
                            Non
89
                        {% endif %}
90
                    </li>
91
                    {% if object.twinning_rank %}
92
                        <li><label>Rang (gémellité) :</label>
93
                        {{ object.twinning_rank }}</li>
94
                    {% endif %}
95
                    </ul>
96
                </li>
97 49
            </ul>
50
            <div id="social-security-contact">
51
            <label id="social-security-label">Données d'assuré social [+]</label>
52
            <ul>
53
              {% if object.social_security_id %}
54
              <li><label>Numéro d'assuré social :</label>
55
              {{ object.social_security_id }} {{ object.get_control_key }}</li>
56
              {% endif %}
57
              {% if object.birthdate %}
58
              <li><label>Date de naissance :</label>
59
              {{ object.birthdate|date:"SHORT_DATE_FORMAT" }}</li>
60
              {% endif %}
61
              {% if object.birthplace %}
62
              <li><label>Lieu de naissance :</label>
63
              {{ object.birthplace }}</li>
64
              {% endif %}
65
              {% if object.begin_rights %}
66
              <li><label>Début de droits :</label>
67
              {{ object.begin_rights }}</li>
68
              {% endif %}
69
              {% if object.end_rights %}
70
              <li><label>Fin de droits :</label>
71
              {{ object.end_rights }}</li>
72
              {% endif %}
73
              {% if object.health_center %}
74
              <li><label>Caisse :</label>
75
              {{ object.health_center }} ({{ object.health_center.address }} {{ object.health_center.address_complement }} {{ object.health_center.zip_code }} {{ object.health_center.city }})</li>
76
              {% endif %}
77
              {% if object.other_health_center %}
78
              <li><label>Centre spécifique :</label>
79
              {{ object.other_health_center }}</li>
80
              {% endif %}
81
              {% if object.management_code %}
82
              <li><label>Code de gestion :</label>
83
              {{ object.management_code }}</li>
84
              {% endif %}
85
              <li><label>Tiers-payant :</label>
86
              {% if object.thirdparty_payer %}
87
              Oui
88
              {% else %}
89
              Non
90
              {% endif %}
91
              </li>
92
              {% if object.twinning_rank %}
93
              <li><label>Rang (gémellité) :</label>
94
              {{ object.twinning_rank }}</li>
95
              {% endif %}
96
            </ul>
97
            </div>
98 98
            <hr>
99 99
            <span>
100 100
                <form method="post" id="contact-form">{% csrf_token %}
calebasse/static/css/style.css
1532 1532
    color: orange;
1533 1533
    font-weight: bold;
1534 1534
}
1535

  
1536
#social-security-label {
1537
    cursor: pointer;
1538
}
1539

  
1540
label#social-security-label:hover {
1541
    font-weight: bold;
1542
}
1543

  
1544
#social-security-contact ul {
1545
    display: none;
1546
}
1547

  
calebasse/static/js/calebasse.dossiers.js
332 332
    $('button.blind').click(function() {
333 333
      $(this).next().toggle('blind');
334 334
    });
335
    $('#social-security-label').click(function() {
336
      var label = $(this).html();
337
      var data = $(this).next();
338
      if (($(data).is(':hidden'))) {
339
        $(this).html(label.replace('+', '-'));
340
        $(this).css("font-weight", "bold");
341
      } else {
342
        $(this).html(label.replace('-', '+'));
343
        $(this).css("font-weight", "");
344
      }
345
      $(data).toggle();
346
    });
335 347
    $('#prescription-transport-btn').click(function() {
336 348
        $('#ajax-dlg').load('prescription-transport',
337 349
          function () {

Formats disponibles : Unified diff