Last change
on this file since 19855 was
19811,
checked in by julien1311, 11 years ago
|
add an admin page to choose the extension to handle
|
-
Property svn:eol-style set to
LF
|
File size:
1.4 KB
|
Rev | Line | |
---|
[19811] | 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'} |
---|
| 5 | jQuery(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 | animateDropdown: false, |
---|
| 14 | preventDuplicates: true, |
---|
| 15 | allowCreation: true |
---|
| 16 | } |
---|
| 17 | ); |
---|
| 18 | |
---|
| 19 | jQuery("a.preview-box").colorbox(); |
---|
| 20 | }); |
---|
| 21 | {/footer_script} |
---|
| 22 | |
---|
| 23 | |
---|
| 24 | <div class="titrePage"> |
---|
| 25 | <h2>{'pdf2tab_name'|@translate}</h2> |
---|
| 26 | </div> |
---|
| 27 | |
---|
| 28 | <form method="post" action="" class="pdf2tab properties" ENCTYPE="multipart/form-data"> |
---|
| 29 | <fieldset> |
---|
| 30 | <legend>{'pdf2tab_configuration'|@translate}</legend> |
---|
| 31 | <p> |
---|
| 32 | {'pdf2tab_supported_extensions_description'|@translate} |
---|
| 33 | </p> |
---|
| 34 | <p> |
---|
| 35 | <select class="pdf2tab_select" name="pdf2tab_extensions"> |
---|
| 36 | {foreach from=$pdf2tab_extensions item=pdf2tab_extension} |
---|
| 37 | <option value="{$pdf2tab_extension}" class="selected">{$pdf2tab_extension}</option> |
---|
| 38 | {/foreach} |
---|
| 39 | </select> |
---|
| 40 | </p> |
---|
| 41 | </fieldset> |
---|
| 42 | |
---|
| 43 | <p><input class="submit" type="submit" value="{'Submit'|@translate}" name="submit"/></p> |
---|
| 44 | </form> |
---|
Note: See
TracBrowser
for help on using the repository browser.