[17483] | 1 | {combine_css path=$CONTACT_FORM_PATH|@cat:"admin/template/style.css"} |
---|
[23205] | 2 | {include file='include/colorbox.inc.tpl'} |
---|
[17483] | 3 | |
---|
[23205] | 4 | {footer_script}{literal} |
---|
| 5 | jQuery("a.preview-box").colorbox(); |
---|
| 6 | |
---|
| 7 | jQuery("input[name='cf_theme']").change(function() { |
---|
| 8 | jQuery("input[name='cf_theme']").parents(".themeBox").removeClass("themeDefault"); |
---|
| 9 | jQuery(this).parents(".themeBox").addClass("themeDefault"); |
---|
| 10 | }); |
---|
| 11 | {/literal}{/footer_script} |
---|
| 12 | |
---|
[17483] | 13 | <div class="titrePage"> |
---|
| 14 | <h2>Contact Form</h2> |
---|
| 15 | </div> |
---|
| 16 | |
---|
| 17 | <form method="post" action="{$CONTACT_FORM_ADMIN}-config" class="properties"> |
---|
| 18 | <fieldset> |
---|
| 19 | <legend>{'General configuration'|@translate}</legend> |
---|
| 20 | <ul> |
---|
| 21 | <li> |
---|
| 22 | <label> |
---|
| 23 | <input type="checkbox" name="cf_menu_link" value="1" {if $cf_menu_link}checked="checked"{/if}> |
---|
| 24 | {'Add link in menu'|@translate} |
---|
| 25 | </label> |
---|
| 26 | </li> |
---|
| 27 | <li> |
---|
| 28 | <label> |
---|
| 29 | <input type="checkbox" name="cf_allow_guest" value="1" {if $cf_allow_guest}checked="checked"{/if}> |
---|
| 30 | {'Allow guests to see the form'|@translate} |
---|
| 31 | </label> |
---|
| 32 | </li> |
---|
| 33 | <li> |
---|
| 34 | <label> |
---|
| 35 | <input type="checkbox" name="cf_mandatory_mail" value="1" {if $cf_mandatory_mail}checked="checked"{/if}> |
---|
| 36 | {'E-mail address is mandatory'|@translate} |
---|
| 37 | </label> |
---|
| 38 | </li> |
---|
| 39 | <li> |
---|
| 40 | <label> |
---|
| 41 | <input type="checkbox" name="cf_mandatory_name" value="1" {if $cf_mandatory_name}checked="checked"{/if}> |
---|
| 42 | {'Name is mandatory'|@translate} |
---|
| 43 | </label> |
---|
| 44 | </li> |
---|
[18331] | 45 | <li> |
---|
| 46 | <label> |
---|
[18393] | 47 | <input type="text" name="cf_redirect_url" value="{if $cf_redirect_url}{$cf_redirect_url}{else}http://{/if}" size="50"> |
---|
[18331] | 48 | {'Redirect after sending email (optional)'|@translate} |
---|
| 49 | </label> |
---|
| 50 | </li> |
---|
[17483] | 51 | </ul> |
---|
| 52 | </fieldset> |
---|
| 53 | |
---|
| 54 | <fieldset> |
---|
| 55 | <legend>{'E-mail configuration'|@translate}</legend> |
---|
| 56 | <ul> |
---|
| 57 | <li> |
---|
| 58 | {'E-mail format :'|@translate} |
---|
| 59 | <label> |
---|
| 60 | <input type="radio" name="cf_mail_type" value="text/html" {if $cf_mail_type == 'text/html'}checked="checked"{/if}> |
---|
| 61 | HTML |
---|
| 62 | </label> |
---|
| 63 | <label> |
---|
| 64 | <input type="radio" name="cf_mail_type" value="text/plain" {if $cf_mail_type == 'text/plain'}checked="checked"{/if}> |
---|
| 65 | {'Plain text'|@translate} |
---|
| 66 | </label> |
---|
| 67 | </li> |
---|
| 68 | <li> |
---|
| 69 | <label> |
---|
| 70 | <input type="text" name="cf_default_subject" value="{$cf_default_subject}" size="50"> |
---|
[17945] | 71 | {'Default e-mail subject'|@translate} ({'can be translated with LocalFiles Editor plugin'|@translate}) |
---|
[17483] | 72 | </label> |
---|
| 73 | </li> |
---|
| 74 | <li> |
---|
| 75 | <label> |
---|
| 76 | <input type="text" name="cf_subject_prefix" value="{$cf_subject_prefix}" size="50"> |
---|
[17945] | 77 | {'Prefix of the sent e-mail subject'|@translate} ({'you can use "%gallery_title%"'|@translate}) |
---|
[17483] | 78 | </label> |
---|
| 79 | </li> |
---|
| 80 | </ul> |
---|
| 81 | </fieldset> |
---|
| 82 | |
---|
| 83 | <fieldset> |
---|
[23205] | 84 | <legend>{'Theme'|@translate}</legend> |
---|
| 85 | |
---|
| 86 | <div class="themeBoxes"> |
---|
| 87 | <div class="themeBox {if $cf_theme=='clear'}themeDefault{/if}"> |
---|
| 88 | <div class="themeName"><label> |
---|
| 89 | <input type="radio" name="cf_theme" value="clear" {if $cf_theme=='clear'}checked{/if}> |
---|
| 90 | Clear |
---|
| 91 | </label></div> |
---|
| 92 | <div class="themeShot"> |
---|
| 93 | <a href="{$CONTACT_FORM_PATH}admin/template/prev-clear.jpg" class="preview-box"><img src="{$CONTACT_FORM_PATH}admin/template/prev-clear.jpg" width="150"/></a> |
---|
| 94 | </div> |
---|
| 95 | </div> |
---|
| 96 | <div class="themeBox {if $cf_theme=='dark'}themeDefault{/if}"> |
---|
| 97 | <div class="themeName"><label> |
---|
| 98 | <input type="radio" name="cf_theme" value="dark" {if $cf_theme=='dark'}checked{/if}> |
---|
| 99 | Dark |
---|
| 100 | </label></div> |
---|
| 101 | <div class="themeShot"> |
---|
| 102 | <a href="{$CONTACT_FORM_PATH}admin/template/prev-dark.jpg" class="preview-box"><img src="{$CONTACT_FORM_PATH}admin/template/prev-dark.jpg" width="150"/></a> |
---|
| 103 | </div> |
---|
| 104 | </div> |
---|
| 105 | </div> |
---|
| 106 | </fieldset> |
---|
| 107 | |
---|
| 108 | <fieldset> |
---|
[17483] | 109 | <legend>{'Text before the contact form'|@translate}</legend> |
---|
| 110 | <textarea rows="4" cols="80" class="description" name="cf_before">{$cf_before}</textarea> |
---|
| 111 | </fieldset> |
---|
| 112 | |
---|
| 113 | <fieldset> |
---|
| 114 | <legend>{'Text after the contact form'|@translate}</legend> |
---|
| 115 | <textarea rows="4" cols="80" class="description" name="cf_after">{$cf_after}</textarea> |
---|
| 116 | </fieldset> |
---|
| 117 | |
---|
| 118 | <p style="text-align:left;"><input type="submit" name="save_config" value="{'Submit'|@translate}" class="submit"></p> |
---|
| 119 | </form> |
---|