0001-dossiers-add-a-reset-button-2017.patch
calebasse/dossiers/templates/dossiers/index.html | ||
---|---|---|
27 | 27 |
<label>Prénom <input name="first_name" type="text" value="{{ request.GET.first_name }}"></label> |
28 | 28 |
<label>Numéro de dossier <input name="paper_id" type="text" value="{{ request.GET.id }}"></label> |
29 | 29 |
<label>Numéro d'assuré social <input name="social_security_id" value="{{ request.GET.social_security_id }}" type="text"></label> |
30 |
{% if request.GET %} |
|
31 |
<div class="search-reset"> |
|
30 | 32 |
<button id="search">Rechercher</button> |
33 |
<button id="reset"><img src="{{ STATIC_URL }}/images/edit-clear-all-symbolic.png" alt="Réinitialiser"/></button> |
|
34 |
</div> |
|
35 |
{% else %} |
|
36 |
<button id="search">Rechercher</button> |
|
37 |
{% endif %} |
|
31 | 38 |
<p id="search-results" style="display: none; "></p> |
32 | 39 |
</div> |
33 | 40 |
<div id="filtre"> |
calebasse/static/css/style.css | ||
---|---|---|
319 | 319 |
width: 100%; |
320 | 320 |
} |
321 | 321 | |
322 |
div#sidebar div.search-reset { |
|
323 |
width: 100%; |
|
324 |
} |
|
325 | ||
326 |
div#sidebar div.search-reset button#search { |
|
327 |
width: 80%; |
|
328 |
} |
|
329 | ||
330 |
div#sidebar div.search-reset button#reset { |
|
331 |
width: 16%; |
|
332 |
float: right; |
|
333 |
} |
|
334 | ||
322 | 335 |
select { |
323 | 336 |
background: white url(../images/button-next-down.png) no-repeat 98% 50%; |
324 | 337 |
color: black; |
calebasse/static/js/calebasse.dossiers.js | ||
---|---|---|
75 | 75 |
$('.pr-line').click(function() { |
76 | 76 |
window.location.href = $(this).data('link'); |
77 | 77 |
}); |
78 |
$('button#reset').click(function() { |
|
79 |
window.location.href = window.location.pathname; |
|
80 |
return false; |
|
81 |
}); |
|
78 | 82 | |
79 | 83 |
$('#close-patientrecord').click(function() { |
80 | 84 |
state_dialog('update-state', 'Clore', 'CLOS'); |
81 |
- |