diff options
Diffstat (limited to 'comm/mailnews/extensions/newsblog/am-newsblog.xhtml')
-rw-r--r-- | comm/mailnews/extensions/newsblog/am-newsblog.xhtml | 233 |
1 files changed, 233 insertions, 0 deletions
diff --git a/comm/mailnews/extensions/newsblog/am-newsblog.xhtml b/comm/mailnews/extensions/newsblog/am-newsblog.xhtml new file mode 100644 index 0000000000..e6ba0f6a5d --- /dev/null +++ b/comm/mailnews/extensions/newsblog/am-newsblog.xhtml @@ -0,0 +1,233 @@ +<?xml version="1.0"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<?xml-stylesheet href="chrome://messenger/skin/accountManage.css" type="text/css"?> +<?xml-stylesheet href="chrome://messenger-newsblog/skin/feed-subscriptions.css" type="text/css"?> + +<!DOCTYPE html [ <!ENTITY % newsblogDTD SYSTEM "chrome://messenger-newsblog/locale/am-newsblog.dtd"> +%newsblogDTD; +<!ENTITY % feedDTD SYSTEM "chrome://messenger-newsblog/locale/feed-subscriptions.dtd" > +%feedDTD; +<!ENTITY % accountNoIdentDTD SYSTEM "chrome://messenger/locale/am-serverwithnoidentities.dtd" > +%accountNoIdentDTD; +<!ENTITY % accountServerTopDTD SYSTEM "chrome://messenger/locale/am-server-top.dtd"> +%accountServerTopDTD; ]> + +<html + xmlns="http://www.w3.org/1999/xhtml" + xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + xmlns:html="http://www.w3.org/1999/xhtml" +> + <head> + <title>&accountTitle.label;</title> + <script + defer="defer" + src="chrome://messenger/content/globalOverlay.js" + ></script> + <script + defer="defer" + src="chrome://global/content/editMenuOverlay.js" + ></script> + <script + defer="defer" + src="chrome://messenger/content/AccountManager.js" + ></script> + <script + defer="defer" + src="chrome://messenger-newsblog/content/am-newsblog.js" + ></script> + <script + defer="defer" + src="chrome://messenger-newsblog/content/newsblogOverlay.js" + ></script> + <script defer="defer" src="chrome://messenger/content/amUtils.js"></script> + <script defer="defer" src="chrome://messenger/content/am-prefs.js"></script> + <script> + // FIXME: move to script file. + window.addEventListener("load", event => { + parent.onPanelLoaded("am-newsblog.xhtml"); + }); + </script> + </head> + <html:body + xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + > + <vbox id="containerBox" flex="1"> + <hbox id="am-newsblog-title" class="dialogheader"> + <label class="dialogheader-title" defaultTitle="&accountTitle.label;" /> + </hbox> + + <description class="secDesc">&accountSettingsDesc.label;</description> + + <hbox class="input-container"> + <label + id="server.prettyNameLabel" + value="&accountName.label;" + accesskey="&accountName.accesskey;" + control="server.prettyName" + /> + <html:input + id="server.prettyName" + type="text" + wsm_persist="true" + class="input-inline" + aria-labelledby="server.prettyNameLabel" + onblur="serverPrettyNameOnBlur(event);" + prefstring="mail.server.%serverkey%.name" + /> + </hbox> + + <separator class="thin" /> + + <html:div> + <html:fieldset> + <html:legend>&serverSettings.label;</html:legend> + <checkbox + id="doBiff" + label="&biffAll.label;" + accesskey="&biffAll.accesskey;" + oncommand="setPrefs(this)" + /> + </html:fieldset> + </html:div> + + <separator class="thin" /> + + <html:div> + <html:fieldset> + <html:legend>&newFeedSettings.label;</html:legend> + + <hbox align="center"> + <checkbox + id="updateEnabled" + label="&biffStart.label;" + accesskey="&biffStart.accesskey;" + oncommand="setPrefs(this)" + /> + <html:input + id="updateValue" + type="number" + class="size3" + min="1" + aria-labelledby="updateEnabled updateValue biffMinutes biffDays" + onchange="setPrefs(this)" + /> + <radiogroup + id="biffUnits" + orient="horizontal" + oncommand="setPrefs(this)" + > + <radio + id="biffMinutes" + value="min" + label="&biffMinutes.label;" + accesskey="&biffMinutes.accesskey;" + /> + <radio + id="biffDays" + value="d" + label="&biffDays.label;" + accesskey="&biffDays.accesskey;" + /> + </radiogroup> + </hbox> + + <checkbox + id="server.quickMode" + wsm_persist="true" + genericattr="true" + label="&quickMode.label;" + accesskey="&quickMode.accesskey;" + preftype="bool" + prefattribute="value" + prefstring="mail.server.%serverkey%.quickMode" + /> + + <checkbox + id="autotagEnable" + accesskey="&autotagEnable.accesskey;" + label="&autotagEnable.label;" + oncommand="setPrefs(this)" + /> + <hbox class="input-container"> + <checkbox + id="autotagUsePrefix" + class="indent" + accesskey="&autotagUsePrefix.accesskey;" + label="&autotagUsePrefix.label;" + oncommand="setPrefs(this)" + /> + <html:input + id="autotagPrefix" + type="text" + class="input-inline" + aria-labelledby="autotagUsePrefix" + placeholder="&autoTagPrefix.placeholder;" + onchange="setPrefs(this)" + /> + </hbox> + </html:fieldset> + </html:div> + + <separator class="thin" /> + + <hbox pack="end"> + <button + label="&manageSubscriptions.label;" + accesskey="&manageSubscriptions.accesskey;" + oncommand="openSubscriptionsDialog(gAccount.incomingServer.rootFolder);" + /> + </hbox> + + <separator class="thin" /> + + <html:div> + <html:fieldset> + <html:legend>&messageStorage.label;</html:legend> + + <checkbox + id="server.emptyTrashOnExit" + wsm_persist="true" + label="&emptyTrashOnExit.label;" + accesskey="&emptyTrashOnExit.accesskey;" + prefattribute="value" + prefstring="mail.server.%serverkey%.empty_trash_on_exit" + /> + + <separator class="thin" /> + + <vbox> + <hbox align="center"> + <label + id="server.localPathLabel" + value="&localPath1.label;" + control="server.localPath" + /> + <hbox class="input-container" flex="1"> + <html:input + id="server.localPath" + type="text" + readonly="readonly" + class="uri-element input-inline" + aria-labelledby="server.localPathLabel" + wsm_persist="true" + datatype="nsIFile" + prefstring="mail.server.%serverkey%.directory" + /> + </hbox> + <button + id="browseForLocalFolder" + label="&browseFolder.label;" + filepickertitle="&localFolderPicker.label;" + accesskey="&browseFolder.accesskey;" + oncommand="BrowseForLocalFolders();" + /> + </hbox> + </vbox> + </html:fieldset> + </html:div> + </vbox> + </html:body> +</html> |