[cups.development] [RFE] STR #1369: Request for purge-jobs operation in web interface

Ludovic Hutin lhutin at umb.u-strasbg.fr
Thu Jan 5 06:21:35 PST 2006


It's a very usefull patch :)
I just patch my cups server, i hope cups team will apply this patch.
Thanks for that :-)

Brian Bernstein a écrit :

>[STR New]
>
>It would be great to have a purge-jobs button in the web interface to
>replace to cancel all jobs.  I went ahead and implemented it in the
>printers.tmpl file.  You can find a patch to this file attached.  It
>currently only uses a plain text link, called "Cancel All Jobs", as I
>am too lazy to create an image file in GIMP or similar.  All it does is
>run the admin.cgi script with "op=purge-jobs&printer_name={printer_name}".
>
>I was planning to implement a "cancel all" function in the web interface,
>and was a bit surprised and relieved to see it already done, but still
>surprised to find it was not in the template for the web interface (or
>atleast not in an intuitive place).
>
>Just apply this patch to printers.tmpl file, or just add the line(s)
>manually.
>
>-Bernie
>
>Link: http://www.cups.org/str.php?L1369
>Version:  -feature
>
>------------------------------------------------------------------------
>
>--- printers.tmpl.orig	2006-01-04 11:52:58.000000000 -0500
>+++ printers.tmpl	2006-01-04 12:23:34.000000000 -0500
>@@ -51,6 +51,8 @@
> 	<IMG SRC="/images/delete-printer.gif" ALT="Delete Printer" BORDER="0"></A>
> 	<A HREF="{admin_uri}?op=set-as-default&printer_name={printer_name}">
> 	<IMG SRC="/images/set-as-default.gif" ALT="Set As Default" BORDER="0"></A>
>+	<A HREF="{admin_uri}?op=purge-jobs&printer_name={printer_name}">
>+	Cancel All Jobs</A>
> 	</TD>
> </TR>
> <TR>
>  
>
>------------------------------------------------------------------------
>
>_______________________________________________
>cups-dev mailing list
>cups-dev at easysw.com
>http://lists.easysw.com/mailman/listinfo/cups-dev
>  
>





More information about the cups-devel mailing list