Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

Forms in Blacklist_p.html splitted as suggested by KoH to avoid wrong submits when pressing [enter]

michituxd6204fd9563e
diff --git a/htroot/Blacklist_p.html b/htroot/Blacklist_p.html
index dc3a543ed..5c67bb65f 100644
--- a/htroot/Blacklist_p.html
+++ b/htroot/Blacklist_p.html
@@ -16,24 +16,35 @@
</p>
<h3>Active list: <em>#[currentBlacklist]#</em> #(disabled)#::<span class="error">No blacklist selected</span>#(/disabled)#</h3>
<!-- blacklist selection -->
- <form action="Blacklist_p.html" method="post" enctype="multipart/form-data">
- <fieldset class="selectList">
- <legend>Select list:</legend>
- <select name="selectedListName" size="1">
- #{blackLists}#
- <option value="#[name]#" #(selected)#::selected="selected"#(/selected)#>#[name]# [#(shared)#not shared::shared#(/shared)#] #{active}# #[blTypeName]##{/active}#</option>
- #{/blackLists}#
- </select>
- <input type="submit" name="selectList" value="select" #(disabled)#::disabled="disabled"#(/disabled)# />
- New list:
- <input type="text" name="newListName" />
- <input type="submit" name="createNewList" value="create" />
- </fieldset>
+ <fieldset class="selectList">
+ <legend>Select list:</legend>
+ <form action="Blacklist_p.html" method="post" enctype="multipart/form-data">
+ <div style="display:inline;">
+ <select name="selectedListName" size="1">
+ #{blackLists}#
+ <option value="#[name]#" #(selected)#::selected="selected"#(/selected)#>#[name]# [#(shared)#not shared::shared#(/shared)#] #{active}# #[blTypeName]##{/active}#</option>
+ #{/blackLists}#
+ </select>
+ <input type="submit" name="selectList" value="select" #(disabled)#::disabled="disabled"#(/disabled)# />
+ </div>
+ <div style="display:inline;">
+ New list:
+ <input type="text" name="newListName" />
+ <input type="submit" name="createNewList" value="create" />
+ </div>
+ </form>
+ </fieldset>
- <fieldset class="listSettings">
- <legend>Settings for this list</legend>
- <input type="submit" name="shareList" value="Share/don't share this list" #(disabled)#::disabled="disabled"#(/disabled)# />
- <input type="submit" name="deleteList" value="Delete this list" #(disabled)#::disabled="disabled"#(/disabled)# />
+ <fieldset class="listSettings">
+ <legend>Settings for this list</legend>
+ <form action="Blacklist_p.html" method="post" enctype="multipart/form-data">
+ <div>
+ <input type="hidden" name="selectedListName" value="#[currentBlacklist]#" />
+ <input type="submit" name="shareList" value="Share/don't share this list" #(disabled)#::disabled="disabled"#(/disabled)# />
+ <input type="submit" name="deleteList" value="Delete this list" #(disabled)#::disabled="disabled"#(/disabled)# />
+ </div>
+ </form>
+ <form action="Blacklist_p.html" method="post" enctype="multipart/form-data">
<fieldset>
<legend>Activate this list for ...</legend>
<dl>
@@ -43,11 +54,12 @@
<input type="checkbox" id="activateList4#[blTypeName]#" name="activateList4#[blTypeName]#" value="on" #(checked)#checked="checked"::#(/checked)# />
</dd>
#{/currentActiveFor}#
- </dl>
+ </dl>
+ <input type="hidden" name="selectedListName" value="#[currentBlacklist]#" />
<input type="submit" name="activateList" value="Enable/disable this list" #(disabled)#::disabled="disabled"#(/disabled)# />
</fieldset>
- </fieldset>
- </form>
+ </form>
+ </fieldset>
<fieldset class="editList">
<legend>Edit this list</legend>