]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - templates/choose-uri.tmpl
Changelog.
[thirdparty/cups.git] / templates / choose-uri.tmpl
index 602d66f4e62d7c0b579c48546b4a76b6d8542068..45d84de194b0d856a0e4bb7524c1dcecc365ba81 100644 (file)
@@ -1,43 +1,44 @@
+<DIV CLASS="indent">
+
+<H2 CLASS="title">{op=modify-printer?Modify {printer_name}:Add Printer}</H2>
+
 <FORM METHOD="POST" ACTION="/admin">
+<INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}">
 <INPUT TYPE="HIDDEN" NAME="OP" VALUE="{op}">
-<INPUT TYPE="HIDDEN" NAME="PRINTER_NAME" VALUE="{printer_name}">
-<INPUT TYPE="HIDDEN" NAME="PRINTER_LOCATION" VALUE="{?printer_location}">
-<INPUT TYPE="HIDDEN" NAME="PRINTER_INFO" VALUE="{?printer_info}">
+{printer_name?<INPUT TYPE="HIDDEN" NAME="printer_name" VALUE="{printer_name}">:}
 <INPUT TYPE="HIDDEN" NAME="CURRENT_MAKE_AND_MODEL" VALUE="{?current_make_and_model}">
-<TABLE CELLPADDING="0" CELLSPACING="0" BORDER="0" WIDTH="100%">
-<TR BGCOLOR="#999966">
-       <TH WIDTH="16"><IMG SRC="/images/left.gif" ALT=""></TH>
-       <TH COLSPAN="2">Device URI for {printer_name}</TH>
-       <TH BGCOLOR="#cccc99" WIDTH="16"><IMG SRC="/images/right.gif" ALT=""></TH>
-</TR>
-<TR>
-       <TD HEIGHT="4"></TD>
-</TR>
+
+<TABLE>
 <TR>
-       <TD></TD>
-       <TD ALIGN="RIGHT">Device URI:&nbsp;</TD>
-       <TD><INPUT TYPE="TEXT" SIZE="40" MAXLENGTH="1024" NAME="DEVICE_URI" VALUE="{device_uri}"></TD>
+<TH CLASS="label">Connection:</TH>
+<TD><INPUT TYPE="URL" SIZE="60" MAXLENGTH="1023" NAME="DEVICE_URI" VALUE="{current_device_uri?{current_device_uri}:{device_uri}}"></TD>
 </TR>
 <TR>
-       <TD></TD>
-       <TD></TD>
-       <TD>Examples:
-       <PRE>
-    file:/path/to/filename.prn
+<TD></TD>
+<TD>Examples:
+<PRE>
     http://hostname:631/ipp/
     http://hostname:631/ipp/port1
+
     ipp://hostname/ipp/
     ipp://hostname/ipp/port1
+
     lpd://hostname/queue
+
     socket://hostname
     socket://hostname:9100
-       </PRE>
-       </TD>
+</PRE>
+
+<P>See <A HREF="/help/network.html" TARGET="_blank">"Network
+Printers"</A> for the correct URI to use with your printer.</P>
+
+</TD>
 </TR>
 <TR>
-       <TD></TD>
-       <TD></TD>
-       <TD><INPUT TYPE="IMAGE" SRC="/images/continue.gif" ALT="Continue" BORDER="0"></TD>
+<TD></TD>
+<TD><INPUT TYPE="SUBMIT" VALUE="Continue"></TD>
 </TR>
 </TABLE>
+
 </FORM>
+</DIV>
\ No newline at end of file