source: extensions/pdf2tab/admin/admin_config.tpl @ 30624

Last change on this file since 30624 was 20203, checked in by julien1311, 12 years ago

[pdf2tab] fix in admin

  • Property svn:eol-style set to LF
File size: 1.4 KB
Line 
1{include file='include/colorbox.inc.tpl'}
2
3{combine_script id='jquery.tokeninput' load='async' require='jquery' path='themes/default/js/plugins/jquery.tokeninput.js'}
4{footer_script require='jquery.tokeninput'}
5jQuery(document).ready(function() {ldelim}
6        jQuery('select[name="pdf2tab_extensions"]').tokenInput(
7                [{foreach from=$extensions item=extension name=extensions}{ldelim}"{$extension|@escape:'javascript'}"{rdelim}{if !$smarty.foreach.extensions.last},{/if}{/foreach}],
8    {ldelim}
9      hintText: '{'pdf2tab_hint_text'|@translate}',
10      noResultsText: '',
11      searchingText: '',
12      newText: '',
13          searchDelay: 0,
14          minChars: 1,
15      animateDropdown: false,
16      preventDuplicates: true,
17      allowCreation: true
18    }
19  );
20
21  jQuery("a.preview-box").colorbox();
22});
23{/footer_script}
24
25
26<div class="titrePage">
27  <h2>{'pdf2tab_name'|@translate}</h2>
28</div>
29
30<form method="post" action="" class="pdf2tab properties" ENCTYPE="multipart/form-data"> 
31        <fieldset>
32    <legend>{'pdf2tab_configuration'|@translate}</legend>
33        <p>
34                {'pdf2tab_supported_extensions_description'|@translate}
35        </p>
36        <p>     
37                <select class="pdf2tab_select" name="pdf2tab_extensions">
38                        {foreach from=$pdf2tab_extensions item=pdf2tab_extension}
39                                <option value="{$pdf2tab_extension}" class="selected">{$pdf2tab_extension}</option>
40                        {/foreach}
41                </select>
42        </p>
43        </fieldset>
44 
45        <p><input class="submit" type="submit" value="{'Submit'|@translate}" name="submit"/></p>
46</form>
Note: See TracBrowser for help on using the repository browser.