Subversion Repositories wimsdev

Rev

Rev 15009 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
539 bpr 1
 
2
!form renew
15009 obado 3
  <div class="blockcenter wimsform" style="max-width:600px;">
4
    <label id="keywords_label" for="search">Veuillez taper un mot à rechercher</label>
5
    <div class="input-group">
6
      <input type="search"
7
             size="40"
8
             name="search"
9
             id="search"
10
             value="$search"
11
             class="autocomplete input-group-field"
12
             placeholder="$name_keywords_enter"
13
             autosave="search_tool_popup"
14
             results="5"
15
             aria-labelledby="keywords_label"/>
16
      <div class="input-group-button">
17
        <button class="wims_button icon_button" type="submit">
15010 bpr 18
          <span class="Searching">$wims_name_search</span>
15009 obado 19
        </button>
20
      </div>
21
    </div>
22
    <div class="formHelp">(n'entrez pas vos formules mathématiques ici)</div>
23
  </div>
5936 bpr 24
!formend
15009 obado 25
 
26
!if $jquery_defined=yes
27
<script>
28
jQuery(function($$) {
29
  $$.getJSON( "./modules/tool/popup.fr/dic/form.json", function(data) {
30
    console.log( "success" );
31
    set_autocomplete(data);
32
  }).fail(function( jqxhr, textStatus, error ) {
33
    var err = textStatus + ', ' + error;
34
    console.log( "Request JSON Failed: " + err);
35
    console.log( "Impossible de charger le fichier json " + fichier );
36
  })
37
  .always(function() { console.log( "complete" ); })
38
  ;
39
});
40
</script>
41
!endif