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 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283
|
# --
# Copyright (C) 2001-2017 OTRS AG, http://otrs.com/
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --
<div class="MainBox ARIARoleMain LayoutFixedSidebar SidebarFirst">
<h1>[% Translate("Edit ACL %s", Data.Name) | html %]</h1>
<div class="SidebarColumn">
<div class="WidgetSimple">
<div class="Header">
<h2>[% Translate("Actions") | html %]</h2>
</div>
<div class="Content">
<ul class="ActionList">
<li>
<a href="[% Env("Baselink") %]Action=[% Env("Action") %]" class="CallForAction Center Fullsize Back"><span><i class="fa fa-caret-left"></i>[% Translate("Go to overview") | html %]</span></a>
</li>
[% RenderBlockStart("ACLDeleteAction") %]
<li>
<a href="#" id="ACLDelete" class="CallForAction Trash Center Fullsize" data-dialog-element="DeleteACLConfirmationDialog" data-dialog-title="[% Translate("Delete ACL") | html %]" data-id="[% Data.ID | html %]"><span><i class="fa fa-trash-o"></i>[% Translate("Delete Invalid ACL") | html %]</span></a>
</li>
[% RenderBlockEnd("ACLDeleteAction") %]
</ul>
</div>
</div>
<div class="WidgetSimple">
<div class="Header">
<h2>[% Translate("Description") | html %]</h2>
</div>
<div class="Content">
<p class="FieldExplanation">
<strong>[% Translate("Match settings") | html %]</strong>: [% Translate("Set up matching criteria for this ACL. Use 'Properties' to match the current screen or 'PropertiesDatabase' to match attributes of the current ticket that are in the database.") | html %]
</p>
<p class="FieldExplanation">
<strong>[% Translate("Change settings") | html %]</strong>: [% Translate("Set up what you want to change if the criteria match. Keep in mind that 'Possible' is a white list, 'PossibleNot' a black list.") | html %]
</p>
<p class="FieldExplanation">
[% Translate("Check the official") | html %] <a href="https://otrs.github.io/doc/manual/admin/stable/en/html/customization.html#acl" target="_blank">[% Translate("documentation") | html %]</a>.
</p>
</div>
</div>
</div>
<div class="ContentColumn">
<form action="[% Env("CGIHandle") %]" method="post" id="ACLForm" class="Validate PreventMultipleSubmits">
<div class="WidgetSimple Expanded">
<div class="Header">
<div class="WidgetAction Toggle">
<a href="#" title="[% Translate("Show or hide the content") | html %]"><i class="fa fa-caret-right"></i><i class="fa fa-caret-down"></i></a>
</div>
<h2>[% Translate("Edit ACL information") | html %]</h2>
</div>
<div class="Content">
<input type="hidden" name="Action" value="[% Env("Action") %]"/>
<input type="hidden" name="Subaction" value="ACLEditAction"/>
<input type="hidden" name="ContinueAfterSave" id="ContinueAfterSave" value=""/>
<input type="hidden" name="ID" value="[% Data.ID | html %]"/>
<input type="hidden" name="ConfigMatch" value="[% Data.ConfigMatch | html %]"/>
<input type="hidden" name="ConfigChange" value="[% Data.ConfigChange | html %]"/>
<fieldset class="TableLike">
<label class="Mandatory" for="Name"><span class="Marker">*</span> [% Translate("Name") | html %]:</label>
<div class="Field">
<input type="text" name="Name" id="Name" value="[% Data.Name | html %]" class="W50pc Validate_Required [% Data.NameServerError | html %]" maxlength="70"/>
<div id="NameError" class="TooltipErrorMessage">
<p>[% Translate("This field is required.") | html %]</p>
</div>
<div id="NameServerError" class="TooltipErrorMessage">
<p>[% Translate("This field is required.") | html %]</p>
</div>
</div>
<div class="Clear"></div>
<label for="Comment">[% Translate("Comment") | html %]:</label>
<div class="Field">
<input type="text" name="Comment" id="Comment" value="[% Data.Comment | html %]" class="W50pc [% Data.CommentServerError | html %]" maxlength="70"/>
</div>
<div class="Clear"></div>
<label for="Description">[% Translate("Description") | html %]:</label>
<div class="Field">
<textarea name="Description" id="Description" class="W50pc [% Data.DescriptionServerError | html %]" rows="5">[% Data.Description | html %]</textarea>
</div>
<div class="Clear"></div>
<label for="StopAfterMatch">[% Translate("Stop after match") | html %]:</label>
<div class="Field">
<input type="checkbox" name="StopAfterMatch" id="StopAfterMatch" value="1" [% Data.Checked %] />
</div>
<div class="Clear"></div>
<label class="Mandatory" for="ValidID"><span class="Marker">*</span> [% Translate("Validity") | html %]:</label>
<div class="Field">
[% Data.ValidOption %]
<div id="ValidIDError" class="TooltipErrorMessage">
<p>[% Translate("This field is required.") | html %]</p>
</div>
<div id="ValidIDServerError" class="TooltipErrorMessage">
<p>[% Translate("This field is required.") | html %]</p>
</div>
</div>
<div class="Clear"></div>
</fieldset>
</div>
</div>
<div class="WidgetSimple">
<div class="Header Expanded">
<div class="WidgetAction Toggle">
<a href="#" title="[% Translate("Show or hide the content") | html %]"><i class="fa fa-caret-right"></i><i class="fa fa-caret-down"></i></a>
</div>
<h2>[% Translate("Edit ACL structure") | html %]</h2>
</div>
<div class="Content">
<fieldset class="TableLike ACLStructure">
<div class="ACLFields">
<h4>[% Translate("Match settings") | html %]</h4>
<ul class="ACLFieldGroup" id="ACLMatch"></ul>
[% Data.ACLKeysLevel1Match %]
</div>
</fieldset>
<fieldset class="TableLike ACLStructure">
<div class="ACLFields">
<h4>[% Translate("Change settings") | html %]</h4>
<ul class="ACLFieldGroup" id="ACLChange"></ul>
[% Data.ACLKeysLevel1Change %]
</div>
</fieldset>
<ul class="Hidden" id="TemplateLevel1">
<li class="DataItem">
<span class="Trigger Collapse">
<i class="fa fa-caret-down"></i>
<i class="fa fa-caret-right"></i>
</span>
<span class="Icon RemoveButton"><i class="fa fa-minus-square-o"></i></span>
<strong></strong>
<ul>
<li class="Even Last">
<span class="Icon AddButton"><i class="fa fa-plus-square-o"></i></span>
</li>
</ul>
</li>
</ul>
<ul class="Hidden" id="TemplateLevel2">
<li class="DataItem">
<span class="Trigger Collapse">
<i class="fa fa-caret-down"></i>
<i class="fa fa-caret-right"></i>
</span>
<span class="Icon RemoveButton"><i class="fa fa-minus-square-o"></i></span>
<strong></strong>
<ul>
<li>
<span class="Icon AddButton NoMargin"><i class="fa fa-plus-square-o"></i></span>
<input type="text" class="NewDataKey" data-level="3" />
</li>
</ul>
</li>
</ul>
<ul class="Hidden" id="TemplateLevel2Last">
<li class="DataItem">
<span class="Trigger Collapse">
<i class="fa fa-caret-down"></i>
<i class="fa fa-caret-right"></i>
</span>
<span class="Icon RemoveButton"><i class="fa fa-minus-square-o"></i></span>
<strong></strong>
<ul class="LastLevel">
<li>
[% Data.ACLKeysLevel4Prefixes %]
<span class="Icon AddButton AddDataItem"><i class="fa fa-plus-square-o"></i></span>
</li>
</ul>
</li>
</ul>
<ul class="Hidden" id="TemplateLevel3">
<li class="DataItem Editable">
<span class="Icon RemoveButton"><i class="fa fa-minus-square-o"></i></span>
<ul>
<li>
[% Data.ACLKeysLevel4Prefixes %]
<span class="Icon AddButton AddDataItem"><i class="fa fa-plus-square-o"></i></span>
</li>
</ul>
</li>
</ul>
<ul class="Hidden" id="TemplateLevel4">
<li class="DataItem Editable"><em>x</em></li>
</ul>
<div class="Hidden">
[% Data.ACLKeysLevel2Possible %]
</div>
<div class="Hidden">
[% Data.ACLKeysLevel2PossibleAdd %]
</div>
<div class="Hidden">
[% Data.ACLKeysLevel2PossibleNot %]
</div>
<div class="Hidden">
[% Data.ACLKeysLevel2Properties %]
</div>
<div class="Hidden">
[% Data.ACLKeysLevel2PropertiesDatabase %]
</div>
<div class="Hidden">
[% Data.ACLKeysLevel3DynamicFields %]
</div>
<div class="Hidden">
[% Data.ACLKeysLevel3Actions %]
</div>
</div>
</div>
<div class="WidgetSimple ScreenXL">
<div class="Header Expanded">
<div class="WidgetAction Toggle">
<a href="#" title="[% Translate("Save settings") | html %]"></a>
</div>
<h2>[% Translate("Save ACL") | html %]</h2>
</div>
<div class="Content">
<fieldset class="TableLike">
<div class="Field SpacingTop SaveButtons">
<button class="Primary CallForAction" id="SubmitAndContinue" type="submit" value="[% Translate("Save") | html %]"><span>[% Translate("Save") | html %]</span></button>
[% Translate("or") | html %]
<button class="Primary CallForAction" id="Submit" type="submit" value="[% Translate("Save") | html %]"><span>[% Translate("Save and finish") | html %]</span></button>
[% Translate("or") | html %]
<a href="[% Env("Baselink") %]Action=[% Env("Action") %]"><span>[% Translate("Cancel") | html %]</span></a>
</div>
<div class="Clear"></div>
</fieldset>
</div>
</div>
</form>
</div>
<div class="Clear"></div>
</div>
<div id="Dialogs" class="Hidden">
<div id="DeleteACLConfirmationDialog">
<p>[% Translate("Do you really want to delete this ACL?") | html %]</p>
<p class="SpacingTop"><strong>[% Data.Name | html %]</strong></p>
</div>
</div>
[% WRAPPER JSOnDocumentComplete %]
<script type="text/javascript">//<![CDATA[
// Autocompletions
Core.Agent.Admin.ACL.Autocomplete = {
Action: [
[% FOREACH Action IN Data.PossibleActionsList %]
{
label: [% Action | JSON %],
value: [% Action | JSON %]
}[%- ',' IF !loop.last %]
[% END %]
]
};
// Localizations
Core.Agent.Admin.ACL.Localization = {
CancelMsg: "[% Translate("Cancel") | html %]",
DeleteMsg: "[% Translate("Delete") | html %]",
ConfirmRemoval: "[% Translate("This item still contains sub items. Are you sure you want to remove this item including its sub items?") | html %]",
AlreadyAdded: "[% Translate("An item with this name is already present.") | html %]",
AddAll: "[% Translate("Add all") | html %]",
JSONError: "[% Translate("There was an error reading the ACL data.") | html %]"
};
Core.Agent.Admin.ACL.InitACLEdit();
//]]></script>
[% END %]
|