baseline
[omp.pkp.sfu.ca.git] / plugins / themes / custom / settingsForm.tpl
blob1f892b0d1d1bc23e51ce403b0cac60cf95f7e84a
1 {**
2  * settingsForm.tpl
3  *
4  * Copyright (c) 2003-2008 John Willinsky
5  * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
6  *
7  * Google Analytics plugin settings
8  *
9  * $Id: settingsForm.tpl,v 1.1.1.1 2008/10/20 21:27:09 tylerl Exp $
10  *}
11 {strip}
12 {assign var="pageTitle" value="plugins.theme.custom.name"}
13 {include file="common/header.tpl"}
14 {/strip}
16 {translate key="plugins.theme.custom.description"}
18 <div class="separator"></div>
20 <br />
22 <form method="post" action="{plugin_url path="settings"}">
23 {include file="common/formErrors.tpl"}
25 <table width="100%" class="data">
26         <tr valign="top">
27                 <td width="20%" class="label">{fieldLabel name="customThemeHeaderColour" required="true" key="plugins.theme.custom.header"}</td>
28                 <td width="80%" class="value">
29                         <input name="customThemeHeaderColour" type="text" id="customThemeHeaderColour" size="7" maxlength="7" value="{$customThemeHeaderColour|escape}" {if $customThemeHeaderColour}style="background-color: {$customThemeHeaderColour|escape};" {/if}/>
30                         <span onclick="openPicker('customThemeHeaderColour')" class="picker_buttons">{translate key="plugins.theme.custom.pickColour"}</span>
31                 </td>
32         </tr>
33         <tr valign="top">
34                 <td class="label">{fieldLabel name="customThemeLinkColour" required="true" key="plugins.theme.custom.link"}</td>
35                 <td class="value">
36                         <input name="customThemeLinkColour" type="text" id="customThemeLinkColour" size="7" maxlength="7" value="{$customThemeLinkColour|escape}" {if $customThemeLinkColour}style="background-color: {$customThemeLinkColour|escape};" {/if}/>
37                         <span onclick="openPicker('customThemeLinkColour')" class="picker_buttons">{translate key="plugins.theme.custom.pickColour"}</span>
38                 </td>
39         </tr>
40         <tr valign="top">
41                 <td class="label">{fieldLabel name="customThemeBackgroundColour" required="true" key="plugins.theme.custom.background"}</td>
42                 <td class="value">
43                         <input name="customThemeBackgroundColour" type="text" id="customThemeBackgroundColour" size="7" maxlength="7" value="{$customThemeBackgroundColour|escape}" {if $customThemeBackgroundColour}style="background-color: {$customThemeBackgroundColour|escape};" {/if}/>
44                         <span onclick="openPicker('customThemeBackgroundColour')" class="picker_buttons">{translate key="plugins.theme.custom.pickColour"}</span>
45                 </td>
46         </tr>
47         <tr valign="top">
48                 <td class="label">{fieldLabel name="customThemeForegroundColour" required="true" key="plugins.theme.custom.foreground"}</td>
49                 <td class="value">
50                         <input name="customThemeForegroundColour" type="text" id="customThemeForegroundColour" size="7" maxlength="7" value="{$customThemeForegroundColour|escape}" {if $customThemeForegroundColour}style="background-color: {$customThemeForegroundColour|escape};" {/if}/>
51                         <span onclick="openPicker('customThemeForegroundColour')" class="picker_buttons">{translate key="plugins.theme.custom.pickColour"}</span>
52                 </td>
53         </tr>
54 </table>
56 <br/>
58 {if !$canSave}{translate key="plugins.theme.custom.notWritable" stylesheetFileLocation=$stylesheetFileLocation}<br/>{/if}
60 <input type="submit" {if !$canSave}disabled="disabled" {/if}name="save" class="button defaultButton" value="{translate key="common.save"}"/><input type="button" class="button" value="{translate key="common.cancel"}" onclick="history.go(-1)"/>
61 </form>
63 <p><span class="formRequired">{translate key="common.requiredField"}</span></p>
65 {include file="common/footer.tpl"}