tiki-object_watches.tpl 3.61 KB
Newer Older
1
{* $Id$ *}
2
{capture}{if isset($smarty.request.objectName)}{tr}Object Watches:{/tr} {$smarty.request.objectName}{else}{tr}Object Watches{/tr}{/if}{/capture}
3
{title help="Mail notifications"}{$smarty.capture.default}{/title}
4 5 6 7 8 9 10

{if isset($referer)}
	<div class="navbar">
		{button href="$referer" _text="{tr}Back{/tr}"}
	</div>
{/if}

11 12 13 14
{if !empty($addedGroups) || !empty($deletedGroups) || !empty($addedGroupsDesc) || !empty($deletedGroupsDesc)}
	{remarksbox type="feedback"}
	{if !empty($addedGroups) || !empty($deletedGroups)}
		<div style="float:left;clear:both;">
15
			{tr}Changes to groups watching:{/tr}
16 17 18 19 20 21 22 23 24
			<ul>
			{if !empty($addedGroups)}
				{foreach from=$addedGroups item=g}<li>{$g|escape}&nbsp;&nbsp;<em>added</em></li>{/foreach}
			{/if}
			{if !empty($deletedGroups)}
				{foreach from=$deletedGroups item=g}<li>{$g|escape}&nbsp;&nbsp;<em>removed</em></li>{/foreach}
			{/if}
			</ul>
		</div>
25
	{/if}
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
	{if !empty($addedGroupsDesc) || !empty($deletedGroupsDesc)}
		{if !empty($addedGroups) || !empty($deletedGroups)}
			<div style="float:left;padding-left:50px;">
		{else}
			<div style="float:left;">
		{/if}
			{tr}These changes to group watches:{/tr}
			<ul>
			{if !empty($addedGroupsDesc)}
				{foreach from=$addedGroupsDesc item=g}<li>{$g|escape}&nbsp;&nbsp;<em>added</em></li>{/foreach}
			{/if}
			{if !empty($deletedGroupsDesc)}
				{foreach from=$deletedGroupsDesc item=g}<li>{$g|escape}&nbsp;&nbsp;<em>removed</em></li>{/foreach}
			{/if}
			</ul>
			{if !empty($catTreeNodes)} 
				{tr}were made to these descendants:{/tr}
				{$tree}
			{/if}
		</div>
46
	{/if}
47
	{/remarksbox}
48 49
{/if}

50
<form method="post" action="{$smarty.server.REQUEST_URI|escape}">
51
<input type="hidden" name="referer" value="{$referer|escape}" />
52
<div style="float: left; margin-right: 10px;"><input type="submit" name="assign" value="{tr}Apply{/tr}" /></div>
53
{if $isTop ne 'y'}
54
	<p>{tr}Groups watching:{/tr} {$group_watches|@count}</p>
55 56 57
{else}
	<p>&nbsp;</p>
{/if}
58 59
<table class="normal">
	<tr>
60 61
		{if !empty($cat) && !empty($desc)}
			<th>{tr}Groups{/tr}</th>
62
			{if $isTop ne 'y'}
63 64 65 66
				<th>{tr}This Category{/tr}</th>
			{/if}
			<th>{tr}All Descendants{/tr}</th>
		{else}
67 68 69
		<th>
			{select_all checkbox_names='checked[]'}
		</th>
70
		<th style="width:100%">{tr}Groups{/tr}</th>
71
		{/if}
72 73 74 75 76
	</tr>
	{cycle values="odd,even" print=false}
	{foreach from=$all_groups item=g key=i}
		{if $g ne 'Anonymous'}
			<tr class="{cycle}">
77
				{if !empty($cat) && !empty($desc)}
78
					<td class="text"><label for="group_watch{$i}">{$g|escape}</label></td>
79
					{if $isTop ne 'y'}
80
						<td class="checkbox"><input id="group_watch{$i}"type="checkbox" name="checked[]" 
81 82
						value="{$g|escape}"{if in_array($g, $group_watches)} checked="checked"{/if} /></td>
					{/if}
83
					<td class="text">
84
						<input id="group_watch{$i}" type="radio" name="{$g|escape}" value="cat_leave_desc" checked="checked" /> 
85
						<label for="group_watch{$i}">Leave unchanged &nbsp;&nbsp;&nbsp;</label>
86
						<input id="group_watch{$i}" type="radio" name="{$g|escape}" value="cat_add_desc" /> 
87
						<label for="group_watch{$i}">Add &nbsp;&nbsp;&nbsp;</label>
88
						<input id="group_watch{$i}" type="radio" name="{$g|escape}" value="cat_remove_desc" /> 
89 90 91 92
						<label for="group_watch{$i}">Remove</label>
					</td>
					
				{else}
93
				<td class="checkbox"><input id="group_watch{$i}" type="checkbox" name="checked[]" value="{$g|escape}"
94
					{if in_array($g, $group_watches)} checked="checked"{/if} /></td>
95
				<td class="text"><label for="group_watch{$i}">{$g|escape}</label></td>
96
				{/if}
97 98 99 100
			</tr>
		{/if}
	{/foreach}
</table>
101
	<p><div style="float: left; margin-right: 10px;"><input type="submit" name="assign" value="{tr}Apply{/tr}" /></div></p>
102
</form>