Browse Source

Evolution #442: Ajouter un élément: proposition de tags: phrase

Sevajol Bastien 12 years ago
parent
commit
d10bf09ea4

+ 3 - 1
src/Muzich/CoreBundle/Resources/views/Element/form.add.html.twig View File

50
           <p id="form_add_prop_tags_text" style="display: none;">
50
           <p id="form_add_prop_tags_text" style="display: none;">
51
             {{ 'element_add.prop_tags.text'|trans({}, 'userui') }}
51
             {{ 'element_add.prop_tags.text'|trans({}, 'userui') }}
52
           </p>
52
           </p>
53
-          <ul id="form_add_prop_tags" style="display: none;"></ul>
53
+          <ul id="form_add_prop_tags_api" style="display: none;"></ul>
54
 
54
 
55
+          <div></div>
56
+          
55
           {% include "MuzichCoreBundle:Tag:tagsPrompt.html.twig" with { 
57
           {% include "MuzichCoreBundle:Tag:tagsPrompt.html.twig" with { 
56
             'form_name'     : form_name
58
             'form_name'     : form_name
57
           } %}
59
           } %}

+ 1 - 1
web/bundles/muzichcore/css/main.css View File

890
   display: inline;
890
   display: inline;
891
   margin-left: 2px;
891
   margin-left: 2px;
892
   margin-top: 2px;
892
   margin-top: 2px;
893
-  float:left; /*pour IE*/
893
+  float: left; /*pour IE*/
894
 }
894
 }
895
 
895
 
896
 ul#favorite_tags li.list_length_big a.button
896
 ul#favorite_tags li.list_length_big a.button

+ 4 - 4
web/bundles/muzichcore/js/muzich.js View File

1280
       if (response.tags)
1280
       if (response.tags)
1281
       {
1281
       {
1282
         $('ul#form_add_prop_tags li').remove();
1282
         $('ul#form_add_prop_tags li').remove();
1283
-        $('ul#form_add_prop_tags').show();
1284
-        $('ul#form_add_prop_tags_text').show();
1283
+        $('ul#form_add_prop_tags_api').show();
1284
+        $('p#form_add_prop_tags_text').show();
1285
 
1285
 
1286
         for (tags_index = 0; tags_index < response.tags.length; tags_index++)
1286
         for (tags_index = 0; tags_index < response.tags.length; tags_index++)
1287
         {
1287
         {
1296
           }
1296
           }
1297
 
1297
 
1298
           // On aura plus qu'a vérifie le href pour savoir si c'est une demande d'ajout de tags =)
1298
           // On aura plus qu'a vérifie le href pour savoir si c'est une demande d'ajout de tags =)
1299
-          $('ul#form_add_prop_tags').append(
1299
+          $('ul#form_add_prop_tags_api').append(
1300
             '<li>'+
1300
             '<li>'+
1301
               '<a href="#'+tag_id+'" class="form_add_prop_tag">'+
1301
               '<a href="#'+tag_id+'" class="form_add_prop_tag">'+
1302
                 tag_name+
1302
                 tag_name+
1398
     $('div#element_add_box').slideUp();
1398
     $('div#element_add_box').slideUp();
1399
     $('div#form_add_first_part').show();
1399
     $('div#form_add_first_part').show();
1400
     $('div#form_add_second_part').hide();
1400
     $('div#form_add_second_part').hide();
1401
-    $('ul#form_add_prop_tags').hide();
1401
+    $('ul#form_add_prop_tags_api').hide();
1402
     $('ul#form_add_prop_tags_text').hide();
1402
     $('ul#form_add_prop_tags_text').hide();
1403
     $('input#element_add_url').val('');
1403
     $('input#element_add_url').val('');
1404
     $('input#element_add_name').val('');
1404
     $('input#element_add_name').val('');