[Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/default/en/parameters letter.tmpl,1.1,1.2

Paul POULAIN tipaul at users.sourceforge.net
Tue Aug 2 18:15:37 CEST 2005


Update of /cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/en/parameters
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6511/koha-tmpl/intranet-tmpl/default/en/parameters

Modified Files:
	letter.tmpl 
Log Message:
adding 2 fields to letter system :
* module (acquisition, catalogue...) : it will be usefull to show the librarian only letters he may be interested by.
* title, that will be used as mail subject.

Index: letter.tmpl
===================================================================
RCS file: /cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/en/parameters/letter.tmpl,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** letter.tmpl	28 Jul 2005 15:10:13 -0000	1.1
--- letter.tmpl	2 Aug 2005 16:15:34 -0000	1.2
***************
*** 5,9 ****
  		<form action="/cgi-bin/koha/admin/letter.pl" method="post">
  		<input type="text" name="searchfield" value="">
! 		<input type="submit" class="button" value="OK"></form>
  		<!-- TMPL_IF NAME="search" -->
  		<br>You Searched for <b><!-- TMPL_VAR NAME="searchfield" --></b><p><br>
--- 5,9 ----
  		<form action="/cgi-bin/koha/admin/letter.pl" method="post">
  		<input type="text" name="searchfield" value="">
! 		<input type="submit" class="button" value="Filter"></form>
  		<!-- TMPL_IF NAME="search" -->
  		<br>You Searched for <b><!-- TMPL_VAR NAME="searchfield" --></b><p><br>
***************
*** 11,14 ****
--- 11,15 ----
  		<table>
  		<tr>
+ 			<th>Module</th>
  			<th>Code</th>
  			<th>Name</th>
***************
*** 18,21 ****
--- 19,23 ----
  		<!-- TMPL_LOOP NAME="letter" -->
  			<tr bgcolor=<!-- TMPL_VAR NAME="toggle" --> >
+ 				<td><!-- TMPL_VAR NAME="module" --></td>
  				<td><!-- TMPL_VAR NAME="code" --></td>
  				<td><!-- TMPL_VAR NAME="name" --></td>
***************
*** 26,30 ****
  				</td>
  				<td>
! 					<a href="/cgi-bin/koha/admin/letter.pl?op=delete_confirm&amp;code=<!-- TMPL_VAR NAME="code" -->">
  						<img src="<!-- TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR NAME="theme" -->/images/edittrash.png" width="32" hspace="0" vspace="0" border="0">
  					</a>
--- 28,32 ----
  				</td>
  				<td>
! 					<a href="/cgi-bin/koha/admin/letter.pl?op=delete_confirm&amp;module=<!-- TMPL_VAR name="module"-->&amp;code=<!-- TMPL_VAR NAME="code" -->">
  						<img src="<!-- TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR NAME="theme" -->/images/edittrash.png" width="32" hspace="0" vspace="0" border="0">
  					</a>
***************
*** 144,151 ****
  		<!-- TMPL_IF NAME="modify" -->
  			<p>
! 				<label class="label100">Code:</label><input type="hidden" name="code" value="<!-- TMPL_VAR NAME="code" -->"><!-- TMPL_VAR NAME="code" -->
  			</p>
  			<p>
! 				<label class="label100">Name:</label><!-- TMPL_VAR NAME="name" -->
  			</p>
  		<!-- /TMPL_IF -->
--- 146,190 ----
  		<!-- TMPL_IF NAME="modify" -->
  			<p>
! 				<label class="label100">Koha module:</label>
! 				<select name="module">
! 					<!-- TMPL_IF name="acquisition" -->
! 						<option value="acquisition" selected>Acquisition</option>
! 					<!-- TMPL_ELSE -->
! 						<option value="acquisition">Acquisition</option>
! 					<!-- /TMPL_IF -->
! 					<!-- TMPL_IF name="catalogue" -->
! 						<option value="catalogue" selected>Catalogue</option>
! 					<!-- TMPL_ELSE -->
! 						<option value="catalogue">Catalogue</option>
! 					<!-- /TMPL_IF -->
! 					<!-- TMPL_IF name="circulation" -->
! 						<option value="circulation" selected>Circulation</option>
! 					<!-- TMPL_ELSE -->
! 						<option value="circulation">Circulation</option>
! 					<!-- /TMPL_IF -->
! 					<!-- TMPL_IF name="members" -->
! 						<option value="members" selected>Members</option>
! 					<!-- TMPL_ELSE -->
! 						<option value="members">Members</option>
! 					<!-- /TMPL_IF -->
! 					<!-- TMPL_IF name="authorities" -->
! 						<option value="authorities" selected>Authorities</option>
! 					<!-- TMPL_ELSE -->
! 						<option value="authorities">Authorities</option>
! 					<!-- /TMPL_IF -->
! 					<!-- TMPL_IF name="reports" -->
! 						<option value="reports" selected>Reports</option>
! 					<!-- TMPL_ELSE -->
! 						<option value="reports">Reports</option>
! 					<!-- /TMPL_IF -->
! 					<!-- TMPL_IF name="parameters" -->
! 						<option value="parameters" selected>Parameters</option>
! 					<!-- TMPL_ELSE -->
! 						<option value="parameters">Parameters</option>
! 					<!-- /TMPL_IF -->
! 				</select>
  			</p>
  			<p>
! 				<label class="label100">Code:</label><input type="hidden" name="code" value="<!-- TMPL_VAR NAME="code" -->"><!-- TMPL_VAR NAME="code" -->
  			</p>
  		<!-- /TMPL_IF -->
***************
*** 153,156 ****
--- 192,207 ----
  		<!-- TMPL_IF NAME="adding" -->
  			<p>
+ 				<label class="label100">Koha module:</label>
+ 				<select name="module">
+ 						<option value="acquisition">Acquisition</option>
+ 						<option value="catalogue">Catalogue</option>
+ 						<option value="circulation">Circulation</option>
+ 						<option value="members">Members</option>
+ 						<option value="authorities">Authorities</option>
+ 						<option value="reports">Reports</option>
+ 						<option value="parameters">Parameters</option>
+ 				</select>
+ 			</p>
+ 			<p>
  				<label class="label100">Code:</label><input type="text" name="code" size="20" maxlength="20">
  			</p>
***************
*** 161,165 ****
  		</p>
  		<p>
! 			<label class="label100">Content:</label>
  		</p>
  		<p><textarea name="content" cols="80" rows="10"><!-- TMPL_VAR NAME="content" --></textarea>
--- 212,219 ----
  		</p>
  		<p>
! 			<label class="label100">Title (mail subject):</label><input type="text" name="title" size="100" value="<!-- TMPL_VAR NAME="title" -->">
! 		</p>
! 		<p>
! 			<label class="label100">Content (mail content):</label>
  		</p>
  		<p><textarea name="content" cols="80" rows="10"><!-- TMPL_VAR NAME="content" --></textarea>
***************
*** 187,194 ****
  		<tr valign="top" bgcolor="#99cc33">
  			<td background="<!-- TMPL_VAR NAME="themelang" -->/images/background-mem.gif">
! 				<b>Code</b>
  			</td>
  			<td background="<!-- TMPL_VAR NAME="themelang" -->/images/background-mem.gif">
! 				<b><!-- TMPL_VAR NAME="code" --></b>
  			</td>
  		</tr>
--- 241,248 ----
  		<tr valign="top" bgcolor="#99cc33">
  			<td background="<!-- TMPL_VAR NAME="themelang" -->/images/background-mem.gif">
! 				<b>module / Code</b>
  			</td>
  			<td background="<!-- TMPL_VAR NAME="themelang" -->/images/background-mem.gif">
! 				<b><!-- TMPL_VAR name="module"--> / <!-- TMPL_VAR NAME="code" --></b>
  			</td>
  		</tr>
***************
*** 196,199 ****
--- 250,254 ----
  		<form action="<!-- TMPL_VAR NAME="action" -->" method="post"><input type="hidden" name="op" value="delete_confirmed">
  		<input type="hidden" name="code" value="<!-- TMPL_VAR NAME="code" -->">
+ 		<input type="hidden" name="module" value="<!-- TMPL_VAR NAME="module" -->">
  		<tr>
  			<td>Name</td>
***************
*** 204,208 ****
  		</tr>
  		<tr>
! 			<td><input type="submit" value="YES"></form></td><td><form action="<!-- TMPL_VAR NAME="action" -->" method="post"><input type="submit" value="NO"></form></td>
  		</tr>
  	</table>
--- 259,271 ----
  		</tr>
  		<tr>
! 			<td>
! 				<input type="submit" value="YES">
! 				</form>
! 			</td>
! 			<td>
! 				<form action="<!-- TMPL_VAR NAME="action" -->" method="post">
! 					<input type="submit" value="NO">
! 				</form>
! 			</td>
  		</tr>
  	</table>





More information about the Koha-cvs mailing list