Bug#815239: www.debian.org: improving package search forms to be more intuitive

Stéphane Blondon <[email protected]>
Newsgroups gmane.linux.debian.devel.www
Message-ID <56C8534D.1090407__42556.1420190663$1455969269$gmane$org@gmail.com>
Package: www.debian.org
Severity: normal
Tags: patch


The search forms at https://www.debian.org/distrib/packages.en.html have
the submit button in the first line.
I think it's surprising for a newcomer and providing the submit button
at the end for the form fits probably better to visitor's mind. The
attached search_form.png shows the difference of paths required to the
visitor.

For the same reason, an input is under another one for each forms.

The patches are based on the files found in the CVS repository.


-- 
Stéphane
search_form.png (image/png, 42.5 KB) - not displayed
search_contents-form.inc.diff (text/x-patch, 1.2 KB)
--- search_contents-form.inc.orig	2016-02-20 03:24:31.000000000 +0100
+++ search_contents-form.inc	2016-02-20 11:40:50.000000000 +0100
@@ -8,8 +8,6 @@
 <input type="hidden" name="searchon" value="contents" />
 <label for="keyword"><gettext domain="distrib">Keyword</gettext>:</label>
 <input type="text" size="30" name="keywords" id="keyword" /> &nbsp;
-<input type="submit" value="<gettext domain="distrib">Search</gettext>" />
-&nbsp;<input type="reset" value="<gettext domain="distrib">Reset</gettext>" />
 <br />
 <gettext domain="distrib">Display</gettext>:
 <br />
@@ -30,6 +28,7 @@
   <option value="stable" selected="selected"><gettext domain="distrib">stable</gettext></option>
   <option value="oldstable"><gettext domain="distrib">oldstable</gettext></option>
 </select>
+<br />
 <label for="architecture"><gettext domain="distrib">Architecture</gettext>:</label>
 
 #include "$(ENGLISHDIR)/releases/sid/archive.data"
@@ -43,5 +42,10 @@
  }
 :>
 </select>
+<br />
+<span style="margin-left: 5em;">
+  <input type="submit" value="<gettext domain="distrib">Search</gettext>" />
+  &nbsp;<input type="reset" value="<gettext domain="distrib">Reset</gettext>" />
+</span>
 </p>
 </form>
search_packages-form.inc.diff (text/x-patch, 1.4 KB)
--- search_packages-form.inc.orig	2016-02-20 03:24:14.000000000 +0100
+++ search_packages-form.inc	2016-02-20 11:41:27.000000000 +0100
@@ -7,7 +7,6 @@
 <p>
 <label for="kw"><gettext domain="distrib">Keyword</gettext>:</label>
 <input type="text" size="30" name="keywords" id="kw" />
-<input type="submit" value="<gettext domain="distrib">Search</gettext>" /> <input type="reset" value="<gettext domain="distrib">Reset</gettext>" />
 <br />
 <gettext domain="distrib">Search on</gettext>:
 <input type="radio" name="searchon" value="names" id="onlynames" checked="checked" />
@@ -29,6 +28,7 @@
   <option value="oldstable"><gettext domain="distrib">oldstable</gettext></option>
   <option value="all"><gettext domain="distrib">any</gettext></option>
 </select>
+<br />
 <label for="releasesection"><gettext domain="distrib">Section</gettext>:</label>
 <select name="section" id="releasesection">
   <option value="main"><gettext domain="distrib">main</gettext></option>
@@ -36,5 +36,10 @@
   <option value="non-free"><gettext domain="distrib">non-free</gettext></option>
   <option value="all" selected="selected"><gettext domain="distrib">any</gettext></option>
 </select>
+<br />
+<span style="margin-left: 5em;">
+  <input type="submit" value="<gettext domain="distrib">Search</gettext>" />
+  <input type="reset" value="<gettext domain="distrib">Reset</gettext>" />
+</span>
 </p>
 </form>
signature.asc (application/pgp-signature, 819 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJWyFNgAAoJEKK5G8bNTr3cce8QAJ0J9hRnEDNIiNTactBqaksx
moDdALVr0qmc5sxK0ny6v4xRXe+jZDI2rqKR/I3eWowc8jhcKN2mQ1kTyQlgknWa
RtCvG1NSwuWksXYmBQoZlzKHUkqkHF3sH7phRP4E8IbcTNLE1ithykzaO9j5VREy
Cy9pzEnph/X4ic1EIRzqgFHokrLokf9imknAMM2rq+LlHv2PzVPSrOKWbNgBdwTc
9KICg2jtNQM/I6cPZM5BXc1yJJTWXPTnZJ3wcD0LIUjrA0mtpTFkNEZGXV59CHru
UiLtYlfspovfJ/sTasVHFvOvpUJDPd2tSdbysvE+sxIbQsA/P1ZNxkF4+f9DIJqI
ks4QsGtmjDZ89fcjoLLp3tzaEaY6SQXgs0ecO+ijGE7DlkSpa7pP1Tz+KhsnKIUt
tkyqc/+XyxlI1IpNYFSkowthQKakBgBk5UmH55xSNzyQNwz67Dls9JsfJpYosCuW
l6lvfFRmykTe+FEDYUBUy7vmdWBr3PenG47ea8Ez0csFXynkmiLEEOSHncmzYE8T
46MbFKVoo+c7zCx7BZGEuRF95Q2GreIKyYaspGt3D/oPAbMM9pURtR6AwkNL3Rj0
NhPPDNq1BlcKap9Xdx4LdorY6rgLJTRmnGHMSJVJQnSpo1DcNi6yi79qg/wZuElg
FjTpOleHdGwwnSyuulml
=fKBB
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.