summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rwxr-xr-xtemplates/choose_protection.tpl18
-rwxr-xr-xtemplates/protector_service_icon.tpl16
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}