summaryrefslogtreecommitdiff
path: root/templates/page_permissions.tpl
blob: 337e8d0c163ad40e4ffec8a3838b68028f0aa5eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{strip}
<div class="floaticon">{bithelp}</div>

<div class="admin wiki">
	<div class="header">
		<h1>{tr}Permissions for{/tr} <a href="{$gContent->mInfo.display_url}">{$gContent->mInfo.title|escape}</a></h1>
	</div>

	<div class="body">
		{form legend="Notify via email when updated"}
			<input type="hidden" name="page_id" value="{$gContent->mInfo.page_id}" />
			<input type="hidden" name="tab" value="email" />

			<div class="form-group">
				{formlabel label="Email"}
				{forminput}
					<input type="text" name="email" size="35" />
					{formhelp note="Enter the email address where you want to have notifications sent, as soon as there are changes made to this page."}
				{/forminput}
			</div>

			<div class="form-group submit">
				<input type="submit" class="btn btn-default" name="addemail" value="{tr}Add email address{/tr}" />
			</div>
		{/form}

		{if count( $emails ) gt 0 }
			<h2>{tr}Existing requests for email notification{/tr}</h2>
			<ul>
				{section name=ix loop=$emails}
					<li>{$emails[ix]} <a href="{$smarty.const.WIKI_PKG_URL}page_permissions.php?page_id={$gContent->mInfo.page_id}&amp;removeemail={$emails[ix]}&amp;tab=email">{booticon iname="fa-trash" iexplain="delete"}</a></li>
				{/section}
			</ul>
		{/if}

		{include file="bitpackage:liberty/content_permissions_inc.tpl"}
	</div><!-- end .body -->
</div><!-- end .wiki -->

{include file="bitpackage:wiki/page_action_bar.tpl"}
{/strip}