From 680db452be6c95a192914edc3bff717513699acb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Olivier=20Larchev=C3=AAque?= Date: Wed, 20 Apr 2011 09:52:51 -0400 Subject: [PATCH] recherche responsable super cool --- project/dae/templates/dae/poste.html | 17 +++++------------ project/media/css/dae.css | 10 ++++++++++ project/templates/autocompleteselect.html | 6 +++--- 3 files changed, 18 insertions(+), 15 deletions(-) create mode 100644 project/media/css/dae.css diff --git a/project/dae/templates/dae/poste.html b/project/dae/templates/dae/poste.html index c7b6c62..ccb13b2 100644 --- a/project/dae/templates/dae/poste.html +++ b/project/dae/templates/dae/poste.html @@ -18,6 +18,7 @@ Demande d'autorisation d'embauche window.__admin_media_prefix__ = "{% filter escapejs %}{% admin_media_prefix %}{% endfilter %}"; + @@ -31,17 +32,6 @@ Demande d'autorisation d'embauche - {% endblock %} {% block main %} @@ -81,7 +71,10 @@ Demande d'autorisation d'embauche {{ form.responsable.label_tag }} :
{{ form.responsable.errors }} - {{ form.responsable }} + + Recherche intelligente : vous pouvez tapez le nom du poste, ou encore la dernière qui occupe celui-ci. Assurez-vous que le poste de responsable choisi dans la liste est reporté en dessous du champs de recherche, cela signifie qu'il est sélectionné. + {{ form.responsable }} + diff --git a/project/media/css/dae.css b/project/media/css/dae.css new file mode 100644 index 0000000..f298696 --- /dev/null +++ b/project/media/css/dae.css @@ -0,0 +1,10 @@ +.row {padding: 10px 0px; clear: both; display:block;} +.row * {float: left; margin: 0px; padding: 0px; margin-right: 4px;} +.row li {list-style-type: none;} +.underline {text-decoration: underline;} +.clear {display: block; clear: both;} +.note {text-decoration: underline; font-style: italic; margin-left: 12px;} +.info {font-size:13px; font-style: italic;} +.noborder {border:none; margin:0; padding; 0} +tr.noborder td {border:none; padding-left: 0;} +.supprimer {text-decoration: none; color: blue; font-size: 12px; margin-left: 6px; cursor: pointer;} diff --git a/project/templates/autocompleteselect.html b/project/templates/autocompleteselect.html index 782d3a3..c9d9ab6 100644 --- a/project/templates/autocompleteselect.html +++ b/project/templates/autocompleteselect.html @@ -26,12 +26,12 @@ jQuery(document).ready(function($){{% block script %} } $("#{{html_id}}_text").result(receiveResult); function addKiller_{{func_slug}}(repr,id) { - kill = "X "; + kill = "supprimer "; if(repr){ $( "#{{html_id}}_on_deck" ).empty(); - $( "#{{html_id}}_on_deck" ).append( "
" + kill + repr + "
"); + $( "#{{html_id}}_on_deck" ).append( "
" + repr + "" + kill + "
"); } else { - $( "#{{html_id}}_on_deck > div" ).prepend(kill); + $( "#{{html_id}}_on_deck > div" ).append(kill); } $("#kill_{{ html_id }}").click(function() { return function(){ kill_{{func_slug}}(); -- 1.7.10.4