summaryrefslogtreecommitdiff
path: root/templates/choose_protection.tpl
blob: 81bfbd573946edaf7bb52f5d461f1c4885c3311f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{strip}
<div class="form-group">
	{formlabel label="Protection Level"}
	{forminput}
		{if $gBitSystem->isFeatureActive( 'protector_single_role' )}
			Assign content to the following user role:<br/>
			{html_options name="protector[role_id]" options=$protectorRolesId selected=$serviceHash.protector.role_id}
			{formhelp note="Users assigned to this role can view this content item."}
		{else}
			Limit access to the following user roles:<br/>
			{foreach from=$protectorRoles key=roleId item=role}
				<input type="checkbox" name="protector[role_id][]" value="{$roleId}" {if isset($serviceHash.protector.role.$roleId)}checked="checked"{/if} /> {$role.role_name}<br/>
			{/foreach}
			{formhelp note="Users assigned to these roles can view this content item."}
		{/if}
	{/forminput}
</div>
{/strip}