diff options
| author | lsces <lester@lsces.co.uk> | 2025-08-24 14:41:07 +0100 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2025-08-24 14:41:07 +0100 |
| commit | a6cc0f5e5cf42c9a3a5b35a9d02cc25977a5896a (patch) | |
| tree | fa8809e0f3f42a36caa57d31267443e42ce81b6e /templates | |
| parent | 4b845764a11aa03a57a08e82db78f765f0606782 (diff) | |
| download | protector-a6cc0f5e5cf42c9a3a5b35a9d02cc25977a5896a.tar.gz protector-a6cc0f5e5cf42c9a3a5b35a9d02cc25977a5896a.tar.bz2 protector-a6cc0f5e5cf42c9a3a5b35a9d02cc25977a5896a.zip | |
Initial population in github
Diffstat (limited to 'templates')
| -rwxr-xr-x | templates/choose_protection.tpl | 18 | ||||
| -rwxr-xr-x | templates/protector_service_icon.tpl | 16 |
2 files changed, 34 insertions, 0 deletions
diff --git a/templates/choose_protection.tpl b/templates/choose_protection.tpl new file mode 100755 index 0000000..9084600 --- /dev/null +++ b/templates/choose_protection.tpl @@ -0,0 +1,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}
\ No newline at end of file diff --git a/templates/protector_service_icon.tpl b/templates/protector_service_icon.tpl new file mode 100755 index 0000000..83452a5 --- /dev/null +++ b/templates/protector_service_icon.tpl @@ -0,0 +1,16 @@ +{if !$serviceHash and $gContent->mInfo} + {assign var=serviceHash value=$gContent->mInfo} +{/if} + +{if !empty($serviceHash.is_hidden) and $serviceHash.is_hidden=='y'} + {assign var=securityLabel value="Hidden"} +{/if} +{if !empty($serviceHash.is_private) and $serviceHash.is_private=='y'} + {assign var=securityLabel value="Private"} +{/if} +{if !empty($serviceHash.access_answer) and $serviceHash.access_answer} + {assign var=securityLabel value="Password Required"} +{/if} +{if !empty($securityLabel)} + {booticon iname="icon-lock" ipackage="icons" iexplain=$securityLabel iforce=icon_text} +{/if} |
