INSERT INTO `xf_template` (`template_id`, `type`, `title`, `style_id`, `template`, `template_parsed`, `addon_id`, `version_id`, `version_string`, `last_edit_date`) VALUES
(342, 0x61646d696e, 0x7061796d656e745f70726f66696c655f74776f636865636b6f7574, 0, '<xf:textboxrow name=\"options[account_number]\" value=\"{$profile.options.account_number}\"\n	label=\"{{ phrase(\'twocheckout_account_number\') }}\" />\n\n<xf:textboxrow name=\"options[secret_word]\" value=\"{$profile.options.secret_word}\"\n	label=\"{{ phrase(\'twocheckout_secret_word\') }}\"\n	explain=\"{{ phrase(\'twocheckout_account_number_explain\') }}\" />\n\n<xf:textboxrow name=\"options[api_username]\" value=\"{$profile.options.api_username}\"\n	label=\"{{ phrase(\'twocheckout_api_username\') }}\"\n	hint=\"{{ phrase(\'optional\') }}\" />\n\n<xf:textboxrow name=\"options[api_password]\" value=\"{$profile.options.api_password}\"\n	label=\"{{ phrase(\'twocheckout_api_password\') }}\"\n	hint=\"{{ phrase(\'optional\') }}\"\n	explain=\"{{ phrase(\'twocheckout_api_username_password_explain\') }}\" />', 0x[encoded data, 11130 characters], 0x5846, 2000010, '2.0.0 Alpha', 1748686057),
(343, 0x61646d696e, 0x7065726d697373696f6e2e6c657373, 0, '.formRow.formRow--permissionQuickSet\n{\n	> dt,\n	> dd\n	{\n		padding-bottom: 0;\n	}\n}\n\n.permissionChoices\n{\n	.m-listPlain();\n	.m-clearFix();\n\n	> li\n	{\n		float: left;\n		margin-left: 1em;\n\n		&:first-child\n		{\n			margin-left: 0;\n		}\n	}\n}\n\n.permissionChoices-choice\n{\n	border: 1px solid transparent;\n	border-radius: @xf-borderRadiusMedium;\n\n	&.is-selected\n	{\n		box-shadow: 1px 1px 5px rgba(0,0,0, .25);\n\n		&.permissionChoices-choice--inherit\n		{\n			border-color: rgb(199, 199, 199);\n			background:   rgb(237, 237, 237);\n			color:        rgb(112, 112, 112);\n		}\n\n		&.permissionChoices-choice--yes\n		{\n			border-color: rgb(54, 150, 54);\n			background:   rgb(68, 187, 68);\n			color:        rgb(196, 253, 196);\n		}\n\n		&.permissionChoices-choice--no\n		{\n			border-color: rgb(229, 149, 36);\n			background:   rgb(236, 178, 95);\n			color:        rgb(252, 244, 232);\n		}\n\n		&.permissionChoices-choice--never\n		{\n			border-color: rgb(151, 12, 12);\n			background:   rgb(203, 16, 16);\n			color:        rgb(250, 194, 194);\n		}\n\n		label.iconic input + i\n		{\n			color: inherit;\n		}\n	}\n}\n\n.permissionChoices--flag\n{\n	label\n	{\n		display: block;\n		min-width: 90px;\n		text-align: center;\n		padding: 0 @xf-paddingMedium;\n	}\n\n	.iconic i\n	{\n		position: relative;\n		vertical-align: top;\n	}\n}\n\n.permissionChoices--int\n{\n	.permissionChoices-choice--yes,\n	.permissionChoices-choice--inherit\n	{\n		label\n		{\n			display: inline-block;\n			line-height: 27px;\n			padding: 0 @xf-paddingMedium;\n			min-width: 90px;\n			text-align: center;\n		}\n\n		.iconic i\n		{\n			position: relative;\n			vertical-align: top;\n		}\n	}\n\n	.inputGroup.inputGroup--joined\n	{\n		position: relative;\n\n		.inputGroup-text\n		{\n			&.inputNumber-button\n			{\n				&.inputNumber-button--up\n				{\n					border-left: 0;\n				}\n			}\n		}\n\n		.input--number\n		{\n			display: inline;\n			width: 80px;\n			padding-top: @xf-paddingSmall;\n			padding-bottom: @xf-paddingSmall;\n		}\n	}\n\n	.permissionChoices-choice--int\n	{\n		&.is-disabled .inputGroup-text\n		{\n			.xf-inputDisabled(background);\n		}\n\n		&.is-disabled .permissionChoices-choiceIntLabel\n		{\n			display: block;\n		}\n\n		&.is-selected .input[type=number],\n		&.is-selected .input[type=tel]\n		{\n			.xf-inputFocus();\n		}\n	}\n}\n\n.permissionChoices-choiceIntLabel\n{\n	display: none;\n	position: absolute;\n	top: 0;\n	bottom: 0;\n	left: 0;\n	right: 0;\n}\n\n@media (max-width: @xf-responsiveNarrow)\n{\n	.permissionChoices--flag,\n	.permissionChoices--int .permissionChoices-choice--inherit\n	{\n		label\n		{\n			min-width: 0;\n		}\n	}\n}', 0x[encoded data, 5228 characters], 0x5846, 2020036, '2.2.0 Beta 6', 1748686057);
INSERT INTO `xf_template` (`template_id`, `type`, `title`, `style_id`, `template`, `template_parsed`, `addon_id`, `version_id`, `version_string`, `last_edit_date`) VALUES
(344, 0x61646d696e, 0x7065726d697373696f6e5f616e616c797a65, 0, '<xf:title>{{ phrase(\'analyze_permissions\') }}</xf:title>\n<xf:description>{{ phrase(\'analyze_permissions_description\') }}</xf:description>\n\n<xf:if is=\"$analysis\">\n	<xf:set var=\"$interfaceGroups\" value=\"{$permissionData.interfaceGroups}\" />\n	<xf:set var=\"$permissionsGrouped\" value=\"{$permissionData.permissionsGrouped}\" />\n	<xf:set var=\"$permissionsGroupedType\" value=\"{$permissionData.permissionsGroupedType}\" />\n\n	<xf:foreach loop=\"$interfaceGroups\" key=\"$interfaceGroupId\" value=\"$interfaceGroup\">\n		<xf:if contentcheck=\"true\">\n			<div class=\"block\">\n				<div class=\"block-container\">\n					<h3 class=\"block-header\">{$interfaceGroup.title}</h3>\n					<div class=\"block-body\">\n			<xf:contentcheck>\n			<xf:foreach loop=\"{$permissionsGrouped.{$interfaceGroupId}}\" value=\"$permission\">\n				<xf:if is=\"{$analysis.{$permission.permission_group_id}.{$permission.permission_id}}\">\n					<xf:set var=\"$permAnalysis\" value=\"{$analysis.{$permission.permission_group_id}.{$permission.permission_id}}\" />\n					<xf:formrow label=\"{$permission.title}\">\n						<xf:if is=\"$permission.permission_type == \'flag\'\">\n							<xf:if is=\"$permAnalysis.final\">\n								{{ phrase(\'yes\') }}\n							<xf:else />\n								{{ phrase(\'no\') }}\n							</xf:if>\n						<xf:else />\n							<xf:if is=\"$permAnalysis.final == -1\">\n								{{ phrase(\'unlimited\') }}\n							<xf:else />\n								{$permAnalysis.final}\n							</xf:if>\n						</xf:if>\n						<a data-xf-click=\"toggle\" role=\"button\" tabindex=\"0\">{{ phrase(\'(details)\') }}</a>\n\n						<div class=\"toggleTarget\">\n							<xf:foreach loop=\"$permAnalysis.intermediates\" value=\"$intermediate\">\n								<dl class=\"pairs pairs--columns\">\n									<dt><xf:trim>\n										<xf:if is=\"$intermediate.type == \'system\'\">\n											<xf:if is=\"$intermediate.contentId\">\n												{$intermediate.contentTitle} - {{ phrase(\'content_wide\') }}\n											<xf:else />\n												{{ phrase(\'global_value\') }}\n											</xf:if>\n										<xf:elseif is=\"$intermediate.type == \'group\'\" />\n											<xf:if is=\"$intermediate.contentId\">\n												{$intermediate.contentTitle} - {$userGroupTitles.{$intermediate.typeId}}\n											<xf:else />\n												{$userGroupTitles.{$intermediate.typeId}}\n											</xf:if>\n										<xf:elseif is=\"$intermediate.type == \'user\'\" />\n											<xf:if is=\"$intermediate.contentId\">\n												{$intermediate.contentTitle} - {{ phrase(\'user_value\') }}\n											<xf:else />\n												{{ phrase(\'user_value\') }}\n											</xf:if>\n										</xf:if>\n									</xf:trim></dt>\n									<dd>\n										<xf:if is=\"$permission.permission_type == \'flag\'\">\n											<xf:if is=\"$intermediate.value == \'deny\'\">{{ phrase(\'never\') }}\n											<xf:elseif is=\"$intermediate.value == \'content_allow\'\" />{{ phrase(\'yes\') }}\n											<xf:elseif is=\"$intermediate.value == \'reset\'\" />{{ phrase(\'no\') }}\n											<xf:elseif is=\"$intermediate.value == \'allow\'\" />{{ phrase(\'yes\') }}\n											<xf:elseif is=\"$intermediate.value == \'unset\'\" />{{ phrase(\'no\') }}\n											</xf:if>\n										<xf:else />\n											<xf:if is=\"$intermediate.value == -1\">\n												{{ phrase(\'unlimited\') }}\n											<xf:else />\n												{$intermediate.value}\n											</xf:if>\n										</xf:if>\n									</dd>\n								</dl>\n							</xf:foreach>\n							<xf:if is=\"$permAnalysis.dependChange\">\n								<xf:set var=\"$parentPermission\" value=\"{$permissionsGroupedType.{$permission.permission_group_id}.{$permAnalysis.dependChange.by}}\" />\n								<div>\n									<xf:fa icon=\"fa-exclamation-triangle\" class=\"u-accentText\" />\n									{{ phrase(\'requires_x_permission\', {\'title\': $parentPermission.title}) }}\n								</div>\n							</xf:if>\n						</div>\n					</xf:formrow>\n				</xf:if>\n			</xf:foreach>\n			</xf:contentcheck>\n					</div>\n				</div>\n			</div>\n		</xf:if>\n	</xf:foreach>\n\n</xf:if>\n\n<div class=\"block\">\n	<div class=\"block-container\">\n		<h2 class=\"block-tabHeader tabs hScroller\" data-xf-init=\"tabs h-scroller\" role=\"tablist\">\n			<span class=\"hScroller-scroll\">\n				<a class=\"tabs-tab {{ $contentType == \'\' ? \'is-active\' : \'\' }}\"\n					role=\"tab\" tabindex=\"0\" aria-controls=\"analyze-global-permissions\">{{ phrase(\'global_permissions\') }}</a>\n\n				<xf:foreach loop=\"$contentOptions\" key=\"$_contentType\" value=\"$_contentPermission\" if=\"$_contentPermission.content\">\n					<a class=\"tabs-tab {{ $contentType == $_contentType ? \'is-active\' : \'\' }}\"\n						role=\"tab\" tabindex=\"0\" aria-controls=\"analyze-{$contentType}\">{$_contentPermission.title}</a>\n				</xf:foreach>\n			</span>\n		</h2>\n\n		<ul class=\"tabPanes\">\n			<li class=\"{{ $contentType == \'\' ? \'is-active\' : \'\' }}\" role=\"tabpanel\" id=\"analyze-global-permissions\">\n				<xf:form action=\"{{ link(\'permissions/analyze\') }}\">\n					<div class=\"block-body\">\n						<xf:textboxrow name=\"username\" value=\"{$username}\" ac=\"single\"\n							label=\"{{ phrase(\'user_name\') }}\" />\n					</div>\n					<xf:submitrow submit=\"{{ phrase(\'analyze\') }}\" />\n				</xf:form>\n			</li>\n			<xf:foreach loop=\"$contentOptions\" key=\"$_contentType\" value=\"$_contentPermission\" if=\"$_contentPermission.content\">\n				<li class=\"{{ $contentType == $_contentType ? \'is-active\' : \'\' }}\" role=\"tabpanel\" id=\"analyze-{$_contentType}\">\n					<xf:form action=\"{{ link(\'permissions/analyze\') }}\">\n						<div class=\"block-body\">\n							<xf:textboxrow name=\"username\" value=\"{$username}\" ac=\"single\"\n								label=\"{{ phrase(\'user_name\') }}\" />\n\n							<xf:selectrow name=\"content_id\" value=\"{{ $contentType == $_contentType ? $contentId : 0 }}\"\n								label=\"{{ phrase(\'content\') }}\">\n\n								<xf:option value=\"0\">&nbsp;</xf:option>\n								<xf:options source=\"$_contentPermission.content\" />\n							</xf:selectrow>\n						</div>\n\n						<xf:submitrow submit=\"{{ phrase(\'analyze\') }}\" />\n						<xf:hiddenval name=\"content_type\">{$_contentType}</xf:hiddenval>\n					</xf:form>\n				</li>\n			</xf:foreach>\n		</ul>\n	</div>\n</div>', 0x[encoded data, 93012 characters], 0x5846, 2020170, '2.2.1', 1748686057);
INSERT INTO `xf_template` (`template_id`, `type`, `title`, `style_id`, `template`, `template_parsed`, `addon_id`, `version_id`, `version_string`, `last_edit_date`) VALUES
(345, 0x61646d696e, 0x7065726d697373696f6e5f63617465676f72795f6d6163726f73, 0, '<xf:macro id=\"list\"\n	arg-category=\"!\"\n	arg-isPrivate=\"!\"\n	arg-userGroups=\"!\"\n	arg-users=\"!\"\n	arg-entries=\"!\"\n	arg-routeBase=\"!\">\n\n	<xf:form action=\"{{ link($routeBase . \'/save\', $category) }}\" ajax=\"true\" class=\"block\">\n		<div class=\"block-container\">\n			<div class=\"block-body\">\n				<xf:checkboxrow>\n					<xf:option name=\"private\" selected=\"{$isPrivate}\"\n						label=\"{{ phrase(\'private_category\') }}\"\n						hint=\"{{ phrase(\'private_category_hint\') }}\" />\n				</xf:checkboxrow>\n			</div>\n			<xf:submitrow icon=\"save\" />\n		</div>\n		<xf:hiddenval name=\"type\">private</xf:hiddenval>\n	</xf:form>\n\n	<div class=\"block\">\n		<div class=\"block-container\">\n			<h3 class=\"block-header\">{{ phrase(\'user_groups\') }}</h3>\n			<div class=\"block-body\">\n				<xf:datalist>\n					<xf:foreach loop=\"$userGroups\" value=\"$userGroup\">\n						<xf:datarow\n							label=\"{$userGroup.title}\"\n							href=\"{{ link($routeBase . \'/edit\', $category, {\'user_group_id\': $userGroup.user_group_id}) }}\"\n							rowclass=\"{{ {$entries.groups.{$userGroup.user_group_id}} ? \'dataList-row--custom\' : \'\' }}\" />\n					</xf:foreach>\n				</xf:datalist>\n			</div>\n		</div>\n	</div>\n\n	<xf:form action=\"{{ link($routeBase . \'/edit\', $category) }}\" class=\"block\">\n		<div class=\"block-container\">\n			<h3 class=\"block-header\">{{ phrase(\'users_with_permissions_set\') }}</h3>\n			<div class=\"block-body\">\n				<xf:if is=\"$users is not empty\">\n					<xf:datalist>\n						<xf:foreach loop=\"$users\" value=\"$user\">\n							<xf:datarow\n								label=\"{$user.username}\"\n								href=\"{{ link($routeBase . \'/edit\', $category, {\'user_id\': $user.user_id}) }}\"\n								rowclass=\"dataList-row--custom\" />\n						</xf:foreach>\n					</xf:datalist>\n					<hr class=\"block-separator\" />\n				</xf:if>\n				<xf:textboxrow name=\"username\" ac=\"single\"\n					label=\"{{ phrase(\'set_permissions_for_user\') }}\" />\n			</div>\n			<xf:submitrow submit=\"{{ phrase(\'proceed...\') }}\" />\n		</div>\n		<xf:hiddenval name=\"type\">user</xf:hiddenval>\n	</xf:form>\n</xf:macro>\n\n<xf:macro id=\"edit\"\n	arg-category=\"!\"\n	arg-permissionData=\"!\"\n	arg-typeEntries=\"!\"\n	arg-routeBase=\"!\"\n	arg-saveParams=\"!\">\n\n	<xf:form action=\"{{ link($routeBase . \'/save\', $category, $saveParams) }}\" ajax=\"true\" class=\"block\">\n		<xf:macro id=\"permission_macros::edit_outer\" arg-type=\"content\" />\n\n		<div class=\"block-container\">\n			<xf:macro id=\"permission_macros::content_edit_groups\"\n				arg-permissionsGrouped=\"{$permissionData.permissionsGrouped}\"\n				arg-interfaceGroups=\"{$permissionData.interfaceGroups}\"\n				arg-values=\"{$typeEntries}\"\n			/>\n			<xf:submitrow sticky=\"true\" icon=\"save\" />\n		</div>\n	</xf:form>\n</xf:macro>', 0x[encoded data, 42372 characters], 0x5846, 2030010, '2.3.0 Alpha', 1748686057);
INSERT INTO `xf_template` (`template_id`, `type`, `title`, `style_id`, `template`, `template_parsed`, `addon_id`, `version_id`, `version_string`, `last_edit_date`) VALUES
(346, 0x61646d696e, 0x7065726d697373696f6e5f646566696e6974696f6e5f65646974, 0, '<xf:if is=\"$permission.isInsert()\">\n	<xf:title>{{ phrase(\'add_permission\') }}</xf:title>\n<xf:else />\n	<xf:title>{{ phrase(\'edit_permission:\') }} {$permission.title}</xf:title>\n</xf:if>\n\n<xf:pageaction if=\"$permission.isUpdate()\">\n	<xf:button href=\"{{ link(\'permission-definitions/permissions/delete\', $permission) }}\" icon=\"delete\" overlay=\"true\" />\n</xf:pageaction>\n\n<xf:form action=\"{{ link(\'permission-definitions/permissions/save\', $permission) }}\" ajax=\"true\" class=\"block\">\n\n	<div class=\"block-container\">\n		<div class=\"block-body\">\n			<xf:textboxrow name=\"permission_group_id\" value=\"{$permission}\"\n				label=\"{{ phrase(\'permission_group\') }}\"\n				dir=\"ltr\" />\n			<xf:textboxrow name=\"permission_id\" value=\"{$permission}\"\n				label=\"{{ phrase(\'permission_id\') }}\"\n				dir=\"ltr\" />\n\n			<xf:textboxrow name=\"title\" value=\"{$permission}\"\n				label=\"{{ phrase(\'title\') }}\" />\n\n			<xf:textboxrow name=\"depend_permission_id\" value=\"{$permission}\"\n				label=\"{{ phrase(\'depends_on_permission_id\') }}\"\n				hint=\"{{ phrase(\'must_be_in_same_permission_group\') }}\" />\n\n			<hr class=\"formRowSep\" />\n\n			<xf:radiorow name=\"permission_type\" value=\"{$permission}\"\n				label=\"{{ phrase(\'permission_type\') }}\">\n\n				<xf:option value=\"flag\">{{ phrase(\'flag\') }}</xf:option>\n				<xf:option value=\"integer\">{{ phrase(\'integer\') }}</xf:option>\n			</xf:radiorow>\n\n			<hr class=\"formRowSep\" />\n\n			<xf:selectrow name=\"interface_group_id\" value=\"{$permission}\"\n				label=\"{{ phrase(\'interface_group\') }}\">\n\n				<xf:option value=\"\" />\n				<xf:foreach loop=\"$interfaceGroups\" value=\"$interfaceGroup\">\n					<xf:option value=\"{$interfaceGroup.interface_group_id}\">{$interfaceGroup.title}</xf:option>\n				</xf:foreach>\n			</xf:selectrow>\n\n			<xf:macro id=\"display_order_macros::row\" arg-value=\"{$permission}\" />\n\n			<hr class=\"formRowSep\" />\n\n			<xf:macro id=\"addon_macros::addon_edit\" arg-addOnId=\"{$permission.addon_id}\" />\n		</div>\n		<xf:submitrow sticky=\"true\" icon=\"save\" />\n	</div>\n\n</xf:form>', 0x[encoded data, 30772 characters], 0x5846, 2030010, '2.3.0 Alpha', 1748686057);
INSERT INTO `xf_template` (`template_id`, `type`, `title`, `style_id`, `template`, `template_parsed`, `addon_id`, `version_id`, `version_string`, `last_edit_date`) VALUES
(347, 0x61646d696e, 0x7065726d697373696f6e5f646566696e6974696f6e5f6c697374, 0, '<xf:title>{{ phrase(\'permissions\') }}</xf:title>\n\n<xf:pageaction>\n	<xf:button href=\"{{ link(\'permission-definitions/permissions/add\') }}\" icon=\"add\">\n		{{ phrase(\'add_permission\') }}\n	</xf:button>\n	<xf:button href=\"{{ link(\'permission-definitions/interface-groups/add\') }}\" icon=\"add\">\n		{{ phrase(\'add_interface_group\') }}\n	</xf:button>\n</xf:pageaction>\n\n<xf:foreach loop=\"$interfaceGroups\" key=\"$interfaceGroupId\" value=\"$interfaceGroup\">\n	<div class=\"block\">\n		<div class=\"block-container\">\n			<h2 class=\"block-header\">\n					<span class=\"u-pullRight\">\n\n						<xf:button href=\"{{ link(\'permission-definitions/permissions/add\', null, {\'interface_group_id\': $interfaceGroupId}) }}\" class=\"button--link\" fa=\"fa-plus-square\">{{ phrase(\'add_permission\') }}</xf:button>\n						<xf:button href=\"{{ link(\'permission-definitions/interface-groups/edit\', $interfaceGroup) }}\" class=\"button--link\" fa=\"fa-edit\">{{ phrase(\'edit\') }}</xf:button>\n					</span>\n				{{ anchor_target(\'interface_group_\' . $interfaceGroup.interface_group_id) }}\n				{$interfaceGroup.title}\n				<span class=\"block-desc\">\n					{$interfaceGroupId} ({$interfaceGroup.display_order})\n				</span>\n			</h2>\n			<div class=\"block-body\">\n				<xf:if is=\"{$permissionsGrouped.{$interfaceGroupId}} is not empty\">\n					<xf:datalist>\n						<xf:foreach loop=\"{$permissionsGrouped.{$interfaceGroupId}}\" value=\"$permission\">\n							<xf:datarow\n								href=\"{{ link(\'permission-definitions/permissions/edit\', $permission) }}\"\n								label=\"{$permission.title}\"\n								hint=\"{$permission.permission_group_id} / {$permission.permission_id} ({$permission.display_order})\"\n								hash=\"{$permission.permission_group_id}_{$permission.permission_id}\" />\n						</xf:foreach>\n					</xf:datalist>\n				<xf:else />\n					<div class=\"block-row\">\n						{{ phrase(\'no_permissions_have_been_created_for_interface_group_yet\', {\n							\'link\': link(\'permission-definitions/permissions/add\', null, {\n								\'interface_group_id\': $interfaceGroupId\n							})\n						}) }}\n					</div>\n				</xf:if>\n			</div>\n		</div>\n	</div>\n</xf:foreach>\n\n<xf:set var=\"$ungroupedKey\" value=\"\" />\n<xf:if is=\"{$permissionsGrouped.{$ungroupedKey}} is not empty\">\n	<div class=\"block\">\n		<div class=\"block-container\">\n			<h2 class=\"block-header\">\n				{{ phrase(\'ungrouped_permissions\') }}\n			</h2>\n			<div class=\"block-body\">\n				<xf:datalist>\n					<xf:foreach loop=\"{$permissionsGrouped.{$ungroupedKey}}\" value=\"$permission\">\n						<xf:datarow\n							href=\"{{ link(\'permission-definitions/permissions/edit\', $permission) }}\"\n							label=\"{$permission.title}\"\n							hint=\"{$permission.permission_group_id} / {$permission.permission_id}\"\n							hash=\"{$permission.permission_group_id}_{$permission.permission_id}\" />\n					</xf:foreach>\n				</xf:datalist>\n			</div>\n		</div>\n	</div>\n</xf:if>', 0x[encoded data, 41760 characters], 0x5846, 2030010, '2.3.0 Alpha', 1748686057);
INSERT INTO `xf_template` (`template_id`, `type`, `title`, `style_id`, `template`, `template_parsed`, `addon_id`, `version_id`, `version_string`, `last_edit_date`) VALUES
(348, 0x61646d696e, 0x7065726d697373696f6e5f696e746572666163655f67726f75705f65646974, 0, '<xf:if is=\"$interfaceGroup.isInsert()\">\n	<xf:title>{{ phrase(\'add_interface_group\') }}</xf:title>\n<xf:else />\n	<xf:title>{{ phrase(\'edit_interface_group:\') }} {$interfaceGroup.title}</xf:title>\n</xf:if>\n\n<xf:pageaction if=\"$interfaceGroup.isUpdate()\">\n	<xf:button href=\"{{ link(\'permission-definitions/interface-groups/delete\', $interfaceGroup) }}\"\n		icon=\"delete\" overlay=\"true\" />\n</xf:pageaction>\n\n<xf:form action=\"{{ link(\'permission-definitions/interface-groups/save\', $interfaceGroup) }}\" ajax=\"true\" class=\"block\">\n	<div class=\"block-container\">\n		<div class=\"block-body\">\n			<xf:textboxrow name=\"interface_group_id\" value=\"{$interfaceGroup}\"\n				label=\"{{ phrase(\'interface_group_id\') }}\"\n				dir=\"ltr\" />\n\n			<xf:textboxrow name=\"title\" value=\"{$interfaceGroup}\"\n				label=\"{{ phrase(\'title\') }}\" />\n\n			<xf:macro id=\"display_order_macros::row\" arg-value=\"{$interfaceGroup}\" />\n\n			<xf:checkboxrow name=\"is_moderator\" value=\"{$interfaceGroup.is_moderator}\">\n				<xf:option value=\"1\" label=\"{{ phrase(\'this_interface_group_contains_moderator_permissions\') }}\" />\n			</xf:checkboxrow>\n\n			<xf:macro id=\"addon_macros::addon_edit\" arg-addOnId=\"{$interfaceGroup.addon_id}\" />\n		</div>\n		<xf:submitrow sticky=\"true\" icon=\"save\" />\n	</div>\n\n</xf:form>', 0x[encoded data, 19422 characters], 0x5846, 2030010, '2.3.0 Alpha', 1748686057);
INSERT INTO `xf_template` (`template_id`, `type`, `title`, `style_id`, `template`, `template_parsed`, `addon_id`, `version_id`, `version_string`, `last_edit_date`) VALUES
(349, 0x61646d696e, 0x7065726d697373696f6e5f6d6163726f73, 0, '<xf:macro id=\"edit_outer\" arg-type=\"!\" arg-class=\"block-outer\">\n	<xf:js src=\"xf/permission.js\" min=\"1\" />\n	<xf:css src=\"permission.less\" />\n\n	<div class=\"{$class}\"\n		data-xf-init=\"permission-form\"\n		data-form=\"< form\"\n		data-permission-type=\"{$type}\">\n\n		<div class=\"{$class}-main js-globalPermissionQuickSet\">\n			<xf:button class=\"button--link menuTrigger\" data-xf-click=\"menu\" aria-expanded=\"false\" aria-haspopup=\"true\">{{ phrase(\'quick_set\') }}</xf:button>\n			<xf:macro id=\"quick_set_menu\" arg-type=\"{$type}\" />\n		</div>\n		<div class=\"{$class}-opposite quickFilter\">\n			<input type=\"search\" class=\"input js-permissionFilterInput\" placeholder=\"{{ phrase(\'filter...\') }}\" />\n		</div>\n	</div>\n\n</xf:macro>\n\n<xf:macro id=\"quick_set_menu\" arg-type=\"!\" arg-target=\"\">\n	<div class=\"menu\" data-menu=\"menu\" aria-hidden=\"true\">\n		<div class=\"menu-content\">\n			<h3 class=\"menu-header\">{{ phrase(\'quick_set\') }}</h3>\n			<xf:if is=\"$type == \'global\'\">\n				<a class=\"menu-linkRow js-permissionQuickSet\" data-target=\"{$target}\" data-value=\"allow\" tabindex=\"0\">\n					{{ phrase(\'set_all_to_x\', {\'value\': phrase(\'yes\')}) }}\n				</a>\n				<a class=\"menu-linkRow js-permissionQuickSet\" data-target=\"{$target}\" data-value=\"unset\" tabindex=\"0\">\n					{{ phrase(\'set_all_to_x\', {\'value\': phrase(\'no\')}) }}\n				</a>\n				<a class=\"menu-linkRow js-permissionQuickSet\" data-target=\"{$target}\" data-value=\"deny\" tabindex=\"0\">\n					{{ phrase(\'set_all_to_x\', {\'value\': phrase(\'never\')}) }}\n				</a>\n			<xf:elseif is=\"$type == \'content\'\" />\n				<a class=\"menu-linkRow js-permissionQuickSet\" data-target=\"{$target}\" data-value=\"unset\" tabindex=\"0\">\n					{{ phrase(\'set_all_to_x\', {\'value\': phrase(\'inherit\')}) }}\n				</a>\n				<a class=\"menu-linkRow js-permissionQuickSet\" data-target=\"{$target}\" data-value=\"content_allow\" tabindex=\"0\">\n					{{ phrase(\'set_all_to_x\', {\'value\': phrase(\'yes\')}) }}\n				</a>\n				<a class=\"menu-linkRow js-permissionQuickSet\" data-target=\"{$target}\" data-value=\"reset\" tabindex=\"0\">\n					{{ phrase(\'set_all_to_x\', {\'value\': phrase(\'no\')}) }}\n				</a>\n				<a class=\"menu-linkRow js-permissionQuickSet\" data-target=\"{$target}\" data-value=\"deny\" tabindex=\"0\">\n					{{ phrase(\'set_all_to_x\', {\'value\': phrase(\'never\')}) }}\n				</a>\n			</xf:if>\n		</div>\n	</div>\n</xf:macro>\n\n<xf:macro id=\"edit_groups\" arg-interfaceGroups=\"!\" arg-permissionsGrouped=\"!\" arg-values=\"!\">\n	<xf:foreach loop=\"$interfaceGroups\" key=\"$interfaceGroupId\" value=\"$interfaceGroup\">\n		<xf:if is=\"{$permissionsGrouped.{$interfaceGroupId}} is not empty\">\n			<h3 class=\"block-formSectionHeader\">\n				<span class=\"collapseTrigger collapseTrigger--block is-active\" data-xf-click=\"toggle\" data-target=\"< :up:next\">\n					<span class=\"block-formSectionHeader-aligner\">{$interfaceGroup.title}</span>\n				</span>\n			</h3>\n			<div class=\"block-body block-body--collapsible is-active\"\n				data-moderator-permissions=\"{$interfaceGroup.is_moderator}\"\n				id=\"permGroup-{$interfaceGroupId}\">\n\n				<xf:if is=\"count({$permissionsGrouped.{$interfaceGroupId}}) > 2\">\n					<xf:formrow rowclass=\"formRow--permissionQuickSet\">\n						<xf:button class=\"button--link menuTrigger\" data-xf-click=\"menu\" aria-expanded=\"false\" aria-haspopup=\"true\">{{ phrase(\'quick_set\') }}</xf:button>\n						<xf:macro id=\"quick_set_menu\" arg-type=\"global\" arg-target=\"#permGroup-{$interfaceGroupId}\" />\n					</xf:formrow>\n				</xf:if>\n				<xf:foreach loop=\"{$permissionsGrouped.{$interfaceGroupId}}\" value=\"$permission\">\n					<xf:macro id=\"edit_permission\"\n						arg-permission=\"{$permission}\"\n						arg-value=\"{$values.{$permission.permission_group_id}.{$permission.permission_id}}\" />\n				</xf:foreach>\n			</div>\n		</xf:if>\n	</xf:foreach>\n</xf:macro>\n\n<xf:macro id=\"edit_permission\" arg-permission=\"!\" arg-value=\"!\">\n	<xf:set var=\"$inputName\" value=\"permissions[{$permission.permission_group_id}][{$permission.permission_id}]\" />\n	<xf:formrow\n		label=\"{$permission.title}\"\n		rowclass=\"js-permission\"\n		data-xf-init=\"permission-choice\"\n		data-permission-type=\"{$permission.permission_type}\">\n\n		<xf:if is=\"$permission.permission_type == \'flag\'\">\n			<ul class=\"permissionChoices permissionChoices--flag\">\n				<li class=\"permissionChoices-choice permissionChoices-choice--yes\">\n					<xf:radio name=\"{$inputName}\" value=\"{$value}\" standalone=\"true\">\n						<xf:option value=\"allow\"\n							label=\"{{ phrase(\'yes\') }}\" />\n					</xf:radio>\n				</li>\n				<li class=\"permissionChoices-choice permissionChoices-choice--no\">\n					<xf:radio name=\"{$inputName}\" value=\"{{ ($value == \'unset\' || !$value) ? \'unset\' : \'\' }}\" standalone=\"true\">\n						<xf:option value=\"unset\"\n							label=\"{{ phrase(\'no\') }}\" />\n					</xf:radio>\n				</li>\n				<li class=\"permissionChoices-choice permissionChoices-choice--never\">\n					<xf:radio name=\"{$inputName}\" value=\"{$value}\" standalone=\"true\">\n						<xf:option value=\"deny\"\n							label=\"{{ phrase(\'never\') }}\" />\n					</xf:radio>\n				</li>\n			</ul>\n		<xf:else />\n			<ul class=\"permissionChoices permissionChoices--int\">\n				<li class=\"permissionChoices-choice permissionChoices-choice--yes\">\n					<xf:radio name=\"{$inputName}\" value=\"{$value}\" standalone=\"true\">\n						<xf:option value=\"-1\"\n							label=\"{{ phrase(\'unlimited\') }}\" />\n					</xf:radio>\n				</li>\n				<li class=\"permissionChoices-choice permissionChoices-choice--int\">\n					<div class=\"inputGroup inputGroup--inline inputGroup--joined inputNumber\">\n						<span class=\"inputGroup-text\">\n							<xf:radio name=\"{$inputName}\" value=\"{$value}\" standalone=\"true\">\n								<xf:option value=\"0\"\n									selected=\"{{ $value >= 0 }}\"\n									data-xf-init=\"disabler\"\n									data-container=\"< li\"\n									label=\"{{ phrase(\'as_follows:\') }}\"\n									hiddenlabel=\"true\"\n									id=\"perm_{$permission.permission_group_id}_{$permission.permission_id}_radio\" />\n							</xf:radio>\n							<label class=\"permissionChoices-choiceIntLabel\" for=\"perm_{$permission.permission_group_id}_{$permission.permission_id}_radio\"></label>\n						</span>\n						<xf:textbox name=\"{$inputName}\" value=\"{{ $value >= 0 ? $value|default(0) : 0 }}\" type=\"number\"\n							class=\"input--number js-numberBoxTextInput js-permissionIntInput\"\n							min=\"0\" pattern=\"\\d*\" />\n					</div>\n				</li>\n			</ul>\n		</xf:if>\n	</xf:formrow>\n</xf:macro>\n\n<xf:macro id=\"content_edit_groups\" arg-interfaceGroups=\"!\" arg-permissionsGrouped=\"!\" arg-values=\"!\">\n	<xf:foreach loop=\"$interfaceGroups\" key=\"$interfaceGroupId\" value=\"$interfaceGroup\">\n		<xf:if is=\"{$permissionsGrouped.{$interfaceGroupId}} is not empty\">\n			<h3 class=\"block-formSectionHeader\">\n				<span class=\"collapseTrigger collapseTrigger--block is-active\" data-xf-click=\"toggle\" data-target=\"< :up:next\">\n					<span class=\"block-formSectionHeader-aligner\">{$interfaceGroup.title}</span>\n				</span>\n			</h3>\n			<div class=\"block-body block-body--collapsible is-active\"\n				data-moderator-permissions=\"{$interfaceGroup.is_moderator}\"\n				id=\"permGroup-{$interfaceGroupId}\">\n\n				<xf:if is=\"count({$permissionsGrouped.{$interfaceGroupId}}) > 2\">\n					<xf:formrow rowclass=\"formRow--permissionQuickSet\">\n						<xf:button class=\"button--link menuTrigger\" data-xf-click=\"menu\" aria-expanded=\"false\" aria-haspopup=\"true\">{{ phrase(\'quick_set\') }}</xf:button>\n						<xf:macro id=\"quick_set_menu\" arg-type=\"content\" arg-target=\"#permGroup-{$interfaceGroupId}\" />\n					</xf:formrow>\n				</xf:if>\n				<xf:foreach loop=\"{$permissionsGrouped.{$interfaceGroupId}}\" value=\"$permission\">\n					<xf:macro id=\"content_edit_permission\"\n						arg-permission=\"{$permission}\"\n						arg-value=\"{$values.{$permission.permission_group_id}.{$permission.permission_id}}\" />\n				</xf:foreach>\n			</div>\n		</xf:if>\n	</xf:foreach>\n</xf:macro>\n\n<xf:macro id=\"content_edit_permission\" arg-permission=\"!\" arg-value=\"!\">\n	<xf:set var=\"$inputName\" value=\"permissions[{$permission.permission_group_id}][{$permission.permission_id}]\" />\n	<xf:formrow\n		label=\"{$permission.title}\"\n		rowclass=\"js-permission\"\n		data-xf-init=\"permission-choice\"\n		data-permission-type=\"{$permission.permission_type}\">\n\n		<xf:if is=\"$permission.permission_type == \'flag\'\">\n			<ul class=\"permissionChoices permissionChoices--flag\">\n				<li class=\"permissionChoices-choice permissionChoices-choice--inherit\">\n					<xf:radio name=\"{$inputName}\" value=\"{{ (!$value || $value == \'unset\') ? \'unset\' : \'\' }}\" standalone=\"true\">\n						<xf:option value=\"unset\"\n							label=\"{{ phrase(\'inherit\') }}\" />\n					</xf:radio>\n				</li>\n				<li class=\"permissionChoices-choice permissionChoices-choice--yes\">\n					<xf:radio name=\"{$inputName}\" value=\"{$value}\" standalone=\"true\">\n						<xf:option value=\"content_allow\"\n							label=\"{{ phrase(\'yes\') }}\" />\n					</xf:radio>\n				</li>\n				<li class=\"permissionChoices-choice permissionChoices-choice--no\">\n					<xf:radio name=\"{$inputName}\" value=\"{$value}\" standalone=\"true\">\n						<xf:option value=\"reset\"\n							label=\"{{ phrase(\'no\') }}\" />\n					</xf:radio>\n				</li>\n				<li class=\"permissionChoices-choice permissionChoices-choice--never\">\n					<xf:radio name=\"{$inputName}\" value=\"{$value}\" standalone=\"true\">\n						<xf:option value=\"deny\"\n							label=\"{{ phrase(\'never\') }}\" />\n					</xf:radio>\n				</li>\n			</ul>\n		<xf:else />\n			<ul class=\"permissionChoices permissionChoices--int\">\n				<li class=\"permissionChoices-choice permissionChoices-choice--inherit\">\n					<xf:radio name=\"{$inputName}\" value=\"{{ (!$value || $value == 0) ? 0 : null }}\" standalone=\"true\">\n						<xf:option value=\"0\"\n							label=\"{{ phrase(\'inherit\') }}\" />\n					</xf:radio>\n				</li>\n				<li class=\"permissionChoices-choice permissionChoices-choice--yes\">\n					<xf:radio name=\"{$inputName}\" value=\"{$value}\" standalone=\"true\">\n						<xf:option value=\"-1\"\n							label=\"{{ phrase(\'unlimited\') }}\" />\n					</xf:radio>\n				</li>\n				<li class=\"permissionChoices-choice permissionChoices-choice--int\">\n					<div class=\"inputGroup inputGroup--inline inputGroup--joined inputNumber\">\n						<span class=\"inputGroup-text\">\n							<xf:radio name=\"{$inputName}\" standalone=\"true\">\n								<xf:option value=\"1\"\n									selected=\"{{ $value >= 1 }}\"\n									data-xf-init=\"disabler\"\n									data-container=\"< li\"\n									label=\"{{ phrase(\'as_follows:\') }}\"\n									hiddenlabel=\"true\"\n									id=\"perm_{$permission.permission_group_id}_{$permission.permission_id}_radio\" />\n							</xf:radio>\n							<label class=\"permissionChoices-choiceIntLabel\" for=\"perm_{$permission.permission_group_id}_{$permission.permission_id}_radio\"></label>\n						</span>\n						<xf:textbox type=\"number\" name=\"{$inputName}\" value=\"{{ $value >= 1 ? $value|default(1) : 1 }}\"\n							class=\"input--number js-numberBoxTextInput js-permissionIntInput\"\n							min=\"0\" pattern=\"\\d*\" />\n					</div>\n				</li>\n			</ul>\n		</xf:if>\n	</xf:formrow>\n</xf:macro>', 0x[encoded data, 145544 characters], 0x5846, 2030070, '2.3.0', 1748686057);
