123 lines
8.0 KiB
Plaintext
123 lines
8.0 KiB
Plaintext
# --
|
|
# Copyright (C) 2001-2019 OTRS AG, https://otrs.com/
|
|
# --
|
|
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
|
|
# the enclosed file COPYING for license information (GPL). If you
|
|
# did not receive this file, see https://www.gnu.org/licenses/gpl-3.0.txt.
|
|
# --
|
|
|
|
<div class="MainBox ARIARoleMain LayoutFixedSidebar SidebarFirst">
|
|
<h1>[% Translate("Dynamic Fields") | html %] - [% Translate(Data.ObjectTypeName) | html %]: [% Translate(Data.Mode) | html %] [% Translate(Data.FieldTypeName) | html %] [% Translate("Field") | html %]</h1>
|
|
|
|
<div class="Clear"></div>
|
|
|
|
<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=AdminDynamicField" class="CallForAction Fullsize Center"><span><i class="fa fa-caret-left"></i>[% Translate("Go back to overview") | html %]</span></a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="ContentColumn">
|
|
<form action="[% Env("CGIHandle") %]" method="post" class="Validate PreventMultipleSubmits">
|
|
<input type="hidden" name="Action" value="AdminDynamicFieldMasterSlave" />
|
|
<input type="hidden" name="Subaction" value="[% Data.Mode | html %]Action" />
|
|
<input type="hidden" name="ObjectType" value="[% Data.ObjectType | html %]" />
|
|
<input type="hidden" name="FieldType" value="[% Data.FieldType | html %]" />
|
|
<input type="hidden" name="ID" value="[% Data.ID | html %]" />
|
|
|
|
<div class="WidgetSimple">
|
|
<div class="Header">
|
|
<h2>[% Translate("General") | html %]</h2>
|
|
</div>
|
|
<div class="Content">
|
|
<div class="LayoutGrid ColumnsWithSpacing">
|
|
<div class="Size1of2">
|
|
<fieldset class="TableLike">
|
|
<label class="Mandatory" for="Name"><span class="Marker">*</span> [% Translate("Name") | html %]:</label>
|
|
<div class="Field">
|
|
<input id="Name" class="W50pc [% Data.NameServerError | html %] [% Data.ShowWarning | html %] Validate_Alphanumeric" type="text" maxlength="200" value="[% Data.Name | html %]" name="Name" [% Data.ReadonlyInternalField | html %] />
|
|
<div id="NameError" class="TooltipErrorMessage"><p>[% Translate("This field is required, and the value should be alphabetic and numeric characters only.") | html %]</p></div>
|
|
<div id="NameServerError" class="TooltipErrorMessage"><p>[% Translate(Data.NameServerErrorMessage) | html %]</p></div>
|
|
<p class="FieldExplanation">[% Translate("Must be unique and only accept alphabetic and numeric characters.") | html %]</p>
|
|
<p class="Warning Hidden">[% Translate("Changing this value will require manual changes in the system.") | html %]</p>
|
|
</div>
|
|
<div class="Clear"></div>
|
|
|
|
<label class="Mandatory" for="Label"><span class="Marker">*</span> [% Translate("Label") | html %]:</label>
|
|
<div class="Field">
|
|
<input id="Label" class="W50pc [% Data.LabelServerError | html %] Validate_Required" type="text" maxlength="200" value="[% Data.Label | html %]" name="Label"/>
|
|
<div id="LabelError" class="TooltipErrorMessage"><p>[% Translate("This field is required.") | html %]</p></div>
|
|
<div id="LabelServerError" class="TooltipErrorMessage"><p>[% Translate(Data.LabelServerErrorMessage) | html %]</p></div>
|
|
<p class="FieldExplanation">[% Translate("This is the name to be shown on the screens where the field is active.") | html %]</p>
|
|
</div>
|
|
<div class="Clear"></div>
|
|
|
|
<label class="Mandatory" for="FieldOrder"><span class="Marker">*</span> [% Translate("Field order") | html %]:</label>
|
|
<div class="Field">
|
|
[% Data.DynamicFieldOrderStrg %]
|
|
<div id="FieldOrderError" class="TooltipErrorMessage"><p>[% Translate("This field is required and must be numeric.") | html %]</p></div>
|
|
<div id="FieldOrderServerError" class="TooltipErrorMessage"><p>[% Translate(Data.FieldOrderServerErrorMessage) | html %]</p></div>
|
|
<p class="FieldExplanation">[% Translate("This is the order in which this field will be shown on the screens where is active.") | html %]</p>
|
|
</div>
|
|
<div class="Clear"></div>
|
|
</fieldset>
|
|
</div>
|
|
<div class="Size1of2">
|
|
<fieldset class="TableLike">
|
|
<label for="ValidID">[% Translate("Validity") | html %]:</label>
|
|
<div class="Field">
|
|
[% Data.ValidityStrg %]
|
|
</div>
|
|
<div class="Clear"></div>
|
|
|
|
<div class="SpacingTop"></div>
|
|
<label for="FieldTypeName">[% Translate("Field type") | html %]:</label>
|
|
<div class="Field">
|
|
<input id="FieldTypeName" readonly class="W50pc" type="text" maxlength="200" value="[% Translate(Data.FieldTypeName) | html %]" name="FieldTypeName"/>
|
|
<div class="Clear"></div>
|
|
</div>
|
|
|
|
<div class="SpacingTop"></div>
|
|
<label for="ObjectTypeName">[% Translate("Object type") | html %]:</label>
|
|
<div class="Field">
|
|
<input id="ObjectTypeName" readonly class="W50pc" type="text" maxlength="200" value="[% Translate(Data.ObjectTypeName) | html %]" name="ObjectTypeName"/>
|
|
<div class="Clear"></div>
|
|
</div>
|
|
|
|
[% RenderBlockStart("InternalField") %]
|
|
<div class="SpacingTop"></div>
|
|
<label for="InternalField">[% Translate("Internal field") | html %]:</label>
|
|
<div class="Field">
|
|
<input id="InternalField" readonly class="W50pc" type="text" maxlength="1" value="[% Data.InternalField | html %]" name="InternalField"/>
|
|
<p class="FieldExplanation">
|
|
[% Translate("This field is protected and can't be deleted.") | html %]
|
|
</p>
|
|
<div class="Clear"></div>
|
|
</div>
|
|
[% RenderBlockEnd("InternalField") %]
|
|
</fieldset>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<fieldset class="TableLike">
|
|
<div class="Field SpacingTop">
|
|
<button type="submit" class="Primary CallForAction" value="[% Translate("Submit") | html %]"><span>[% Translate("Submit") | html %]</span></button>
|
|
[% Translate("or") | html %]
|
|
<a href="[% Env("Baselink") %]Action=AdminDynamicField">[% Translate("Cancel") | html %]</a>
|
|
</div>
|
|
<div class="Clear"></div>
|
|
</fieldset>
|
|
</form>
|
|
</div>
|
|
</div>
|