Made templates modular
[privoxy.git] / templates / edit-actions-url-form
1 ##############################################################################
2 #
3 # File        :  $Source: /cvsroot/ijbswa/current/templates/edit-actions-url-form,v $
4 #
5 # Purpose     :  Template used to edit a URL pattern in an actions file.
6 #
7 #
8 # Copyright   :  Written by and Copyright (C) 2001 the SourceForge
9 #                Privoxy team. http://www.privoxy.org/
10 #
11 #                Original Author: Copyright (C) 2001 Jonathan Foster
12 #                http://www.jon-foster.co.uk/
13 #
14 #                This program is free software; you can redistribute it 
15 #                and/or modify it under the terms of the GNU General
16 #                Public License as published by the Free Software
17 #                Foundation; either version 2 of the License, or (at
18 #                your option) any later version.
19 #
20 #                This program is distributed in the hope that it will
21 #                be useful, but WITHOUT ANY WARRANTY; without even the
22 #                implied warranty of MERCHANTABILITY or FITNESS FOR A
23 #                PARTICULAR PURPOSE.  See the GNU General Public
24 #                License for more details.
25 #
26 #                The GNU General Public License should be included with
27 #                this file.  If not, you can view it at
28 #                http://www.gnu.org/copyleft/gpl.html
29 #                or write to the Free Software Foundation, Inc., 59
30 #                Temple Place - Suite 330, Boston, MA  02111-1307, USA.
31 #
32 # Revisions   :
33 #    $Log: edit-actions-url-form,v $
34 #    Revision 1.12  2002/04/08 17:08:14  oes
35 #    Cosmetic: make status in title lowercase
36 #
37 #    Revision 1.11  2002/04/05 16:01:32  oes
38 #    Correct HTML, external Stylesheets, eye candy, some fixes
39 #
40 #    Revision 1.10  2002/03/26 22:29:56  swa
41 #    we have a new homepage!
42 #
43 #    Revision 1.9  2002/03/24 15:23:33  jongfoster
44 #    Name changes
45 #
46 #    Revision 1.8  2002/03/24 11:01:06  swa
47 #    name change
48 #
49 #    Revision 1.7  2002/03/23 16:18:15  swa
50 #    renamed every reference to the old name with foobar.
51 #    fixed "application foobar application" tag, fixed
52 #    "the foobar" with "foobar". left junkbuster in cvs
53 #    comments and remarks to history untouched. should
54 #    make final rename easier.
55 #
56 #    Revision 1.6  2002/03/16 15:22:19  jongfoster
57 #    Moving 'alpha' warning to the end of the page
58 #
59 #    Revision 1.5  2002/03/03 10:29:13  swa
60 #    point users to the right feedback forms,
61 #    not necessarily the developer list.
62 #
63 #    Revision 1.4  2002/01/23 00:26:45  jongfoster
64 #    Reducing length of URLs
65 #    Where encoded and unencoded versions of a string existed, removing
66 #    the unencoded one.
67 #
68 #    Revision 1.3  2002/01/17 21:33:00  jongfoster
69 #    Replacing all references to the URL of the config interface
70 #    with @default-cgi@
71 #
72 #    Revision 1.2  2002/01/17 21:21:05  jongfoster
73 #    DOS->Unix line endings
74 #
75 #    Revision 1.1  2001/11/13 00:58:18  jongfoster
76 #    New version of actions file editor templates
77 #
78 #
79 ##############################################################################
80 #
81 # Standard support:
82 #
83 # This file currently produces valid HTML 4.01 Strict.
84 #
85 # If you change it, please save the generated page from your web browser
86 # and then upload it to http://validator.w3.org/ for checking.
87 #
88 #############################################################################
89 #
90 # Available variables include:
91 #
92 # f - filename
93 # v - version
94 # s - section
95 # p - pattern
96 # u - old value of URL
97 #
98 #############################################################################
99 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
100 <html>
101
102 <head>
103   <meta http-equiv="Content-Style-Type" content="text/css">
104   <meta http-equiv="Content-Script-Type" content="text/javascript">
105   <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
106   <meta name="robots" content="noindex,nofollow">
107   <link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
108
109   <title>Privoxy@@my-hostname@: Edit URL Pattern</title>
110
111   <script type="text/javascript">
112 <!--
113 function validate(text)
114 {
115   if (text=="")
116   {
117     alert("You need to type a pattern in order to continue!");
118     return false;
119   }
120
121   return true;
122 }
123 //-->
124   </script>
125 </head>
126
127 <body>
128
129   <table cellpadding="20" cellspacing="10" border="0" width="100%">
130     <tr>
131       <td class="title">
132
133 #include mod-title
134
135       </td>
136     </tr>
137
138 <!-- @if-unstable-start -->
139 # This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
140     <tr>
141       <td class="warning">
142
143 #include mod-unstable-warning
144
145       </td>
146     </tr>
147 <!-- if-unstable-end@ -->
148
149     <tr>
150       <td class="box">
151         <h2>Edit URL Pattern</h2>
152         <form method="GET" action="edit-actions-url"
153               onSubmit="return validate(u.value);">
154           <p>
155             <input type="hidden" name="f" value="@f@">
156             <input type="hidden" name="v" value="@v@">
157             <input type="hidden" name="p" value="@p@">
158             <input type="text" name="u" value="@u@" size="78"><br>
159             <input type="submit" value="Submit"> &nbsp;
160             <input type="reset" value="Reset"> &nbsp;
161             <a href="edit-actions-list?f=@f@">Cancel</a>
162           </p>
163         </form>
164       </td>
165     </tr>
166
167     <tr>
168       <td class="box">
169         <h2>More Privoxy:</h2>
170         <ul>@menu@</ul>
171       </td>
172     </tr>
173
174     <tr>
175       <td class="info">
176
177 #include mod-support-and-service
178
179       </td>
180     </tr>
181
182 <!-- @if-have-help-info-start -->
183     <tr>
184       <td class="info">
185
186 #include mod-local-help
187
188       </td>
189     </tr>
190 <!-- if-have-help-info-end@ -->
191
192     <tr>
193       <td>
194         <small><small>Valid <a href="http://validator.w3.org/">HTML 4.01 Strict</a></small></small>
195       </td>
196     </tr>
197
198   </table>
199 </body>
200
201 </html>