zotero/chrome/content/zotero/feedSettings.xhtml
2024-01-24 23:32:19 -05:00

62 lines
2.8 KiB
HTML

<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://zotero/skin/zotero.css" type="text/css"?>
<?xml-stylesheet href="chrome://zotero-platform/content/zotero.css" type="text/css"?>
<!DOCTYPE window [
<!ENTITY % zoteroDTD SYSTEM "chrome://zotero/locale/zotero.dtd" > %zoteroDTD;
]>
<window type="child"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html="http://www.w3.org/1999/xhtml"
title="&zotero.feedSettings.title;" buttons="cancel,accept"
buttonlabelaccept="&zotero.feedSettings.saveButton.label;"
id="zotero-feed-settings"
onload="Zotero_Feed_Settings.init()">
<dialog>
<script>
var { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
Services.scriptloader.loadSubScript("chrome://zotero/content/include.js", this);
Services.scriptloader.loadSubScript("chrome://zotero/content/customElements.js", this);
Services.scriptloader.loadSubScript("chrome://zotero/content/feedSettings.js", this);
</script>
<html:div class="form-grid">
<hbox align="center">
<label value="&zotero.feedSettings.url.label;" control="feed-url"/>
</hbox>
<html:input id="feed-url"
oninput="Zotero_Feed_Settings.invalidateURL();Zotero_Feed_Settings.validateURL()"
autofocus="true" style="width: 30em; max-width: 30em; -moz-box-flex: 1;"/>
<hbox align="center">
<label value="&zotero.feedSettings.title.label;" control="feed-title"/>
</hbox>
<html:input id="feed-title" style="-moz-box-flex: 1;"/>
</html:div>
<vbox id="advanced-options" class="zotero-advanced-options">
<hbox onclick="Zotero_Feed_Settings.toggleAdvancedOptions()" class="zotero-advanced-options-label">
<toolbarbutton class="toolbarbutton-menu-dropmarker"/>
<hbox align="center">
<label value="&zotero.general.advancedOptions.label;"/>
</hbox>
</hbox>
<vbox id="advanced-options-togglable">
<hbox align="center">
<label value="&zotero.feedSettings.refresh.label1;" control="feed-ttl"/>
<html:input class="html-input" id="feed-ttl" type="number" min="1" step="1"/>
<label value="&zotero.feedSettings.refresh.label2;" control="feed-ttl"/>
</hbox>
<hbox align="center">
<label value="&zotero.feedSettings.cleanupReadAfter.label1;" control="feed-cleanupReadAfter"/>
<html:input class="html-input" id="feed-cleanupReadAfter" type="number" min="1" step="1"/>
<label value="&zotero.feedSettings.cleanupReadAfter.label2;" control="feed-cleanupReadAfter"/>
</hbox>
<hbox align="center">
<label value="&zotero.feedSettings.cleanupUnreadAfter.label1;" control="feed-cleanupUnreadAfter"/>
<html:input class="html-input" id="feed-cleanupUnreadAfter" type="number" min="1" step="1"/>
<label value="&zotero.feedSettings.cleanupUnreadAfter.label2;" control="feed-cleanupUnreadAfter"/>
</hbox>
</vbox>
</vbox>
</dialog>
</window>