-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpref_template.html
31 lines (31 loc) · 1.67 KB
/
pref_template.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<div dojoType="dijit.layout.AccordionPane" title="{title}">
<form id="tumblr_gdpr_ua_prefs" dojoType="dijit.form.Form" style="padding: 0 2rem 0 1rem">
<script type="dojo/method" event="onSubmit" args="evt">
evt.preventDefault();
if (this.validate()) {
new Ajax.Request('backend.php', {
parameters: dojo.objectToQuery(this.getValues()),
onComplete: function(transport) {
if (transport.responseText.indexOf('error') >= 0) {
notify_error(transport.responseText);
} else {
notify_info(transport.responseText);
}
}
});
}
</script>
<input dojoType="dijit.form.TextBox" type="hidden" name="op" value="pluginhandler">
<input dojoType="dijit.form.TextBox" type="hidden" name="method" value="save">
<input dojoType="dijit.form.TextBox" type="hidden" name="plugin" value="tumblr_gdpr_ua">
<label for="tumblr_domains">List of domains hosted by Tumblr (add your own). <em>tumblr.com</em> and subdomains of it are automatically included.</label>
<br><br>
<textarea id="tumblr_domains" dojoType="dijit.form.SimpleTextarea" name="tumblr_domains" style="width: 30rem; height: 20rem;">{domainlist}</textarea>
<br><br>
<label for="user_agent">User Agent to use for Tumblr domains. If no User Agent is given here, Googlebot's <pre>Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)</pre> is used.</label>
<br><br>
<div id="user_agent" dojoType="dijit.form.TextBox" name="user_agent" value="{user_agent}" style="width: 30rem;"></div>
<br><br>
<button dojoType="dijit.form.Button" type="submit">Save</button>
</form>
</div>