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
|
# --
# 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 class="InvisibleText">[% Translate("Admin Message") | html %]</h1>
[% BreadcrumbPath = [
{
Name => Translate('Admin Message'),
},
]
%]
[% INCLUDE "Breadcrumb.tt" Path = BreadcrumbPath %]
<div class="SidebarColumn">
<div class="WidgetSimple">
<div class="Header">
<h2>[% Translate("Hint") | html %]</h2>
</div>
<div class="Content">
<p class="FieldExplanation">
[% Translate("With this module, administrators can send messages to agents, group or role members.") | html %]
</p>
</div>
</div>
</div>
<div class="ContentColumn">
<div class="WidgetSimple">
<div class="Header">
<h2>[% Translate("Create Administrative Message") | html %]</h2>
</div>
<div class="Content">
[% RenderBlockStart("Sent") %]
<p>
[% Translate("Your message was sent to") | html %]: [% Data.Bcc | html %]
</p>
[% RenderBlockEnd("Sent") %]
[% RenderBlockStart("Form") %]
<form action="[% Env("CGIHandle") %]" method="post" name="compose" class="Validate PreventMultipleSubmits">
<input type="hidden" name="Action" value="[% Env("Action") %]"/>
<input type="hidden" name="Subaction" value="Send"/>
<fieldset class="TableLike">
<label class="Mandatory" for="From"><span class="Marker">*</span> [% Translate("From") | html %]:</label>
<div class="Field">
<input type="text" name="From" id="From" value="[% Config("AdminEmail") %]" class="W75pc Validate_Required [% Data.FromInvalid | html %]"/>
<div id="FromError" class="TooltipErrorMessage">
<p>[% Translate("This field is required.") | html %]</p>
</div>
<div id="FromServerError" class="TooltipErrorMessage">
<p>[% Translate("This field is required.") | html %]</p>
</div>
</div>
<div class="Clear"></div>
<label for="UserIDs">[% Translate("Send message to users") | html %]:</label>
<div class="Field">
[% Data.UserOption %]
</div>
<div class="Clear"></div>
<label for="GroupIDs">[% Translate("Send message to group members") | html %]:</label>
<div class="Field">
[% Data.GroupOption %]
</div>
<div class="Clear"></div>
<label for="GroupPermissionRO">[% Translate("Group members need to have permission") | html %]:</label>
<div class="Field">
<input type="radio" name="GroupPermission" id="GroupPermissionRO" value="ro" checked="checked"/>
<label for="GroupPermissionRO">[% Translate("ro") | html %]</label>
<br/>
<input type="radio" name="GroupPermission" id="GroupPermissionRW" value="rw"/>
<label for="GroupPermissionRW">[% Translate("rw") | html %]</label>
</div>
<div class="Clear"></div>
[% RenderBlockStart("RoleRecipients") %]
<label for="RoleIDs">[% Translate("Send message to role members") | html %]:</label>
<div class="Field">
[% Data.RoleOption %]
</div>
<div class="Clear"></div>
[% RenderBlockEnd("RoleRecipients") %]
[% RenderBlockStart("CustomerUserGroups") %]
<label for="NotifyCustomerUsers">[% Translate("Also send to customers in groups") | html %]:</label>
<div class="Field">
<input type="checkbox" name="NotifyCustomerUsers" id="NotifyCustomerUsers" />
</div>
<div class="Clear"></div>
[% RenderBlockEnd("CustomerUserGroups") %]
<label class="Mandatory" for="Subject"><span class="Marker">*</span> [% Translate("Subject") | html %]:</label>
<div class="Field">
<input type="text" name="Subject" id="Subject" class="W75pc Validate_Required [% Data.SubjectInvalid | html %]" value="[% Data.Subject | html %]" />
<div id="SubjectError" class="TooltipErrorMessage">
<p>[% Translate("This field is required.") | html %]</p>
</div>
<div id="SubjectServerError" class="TooltipErrorMessage">
<p>[% Translate("This field is required.") | html %]</p>
</div>
</div>
<label class="Mandatory" for="RichText"><span class="Marker">*</span> [% Translate("Body") | html %]:</label>
<div class="RichTextField">
<textarea id="RichText" class="W100pc RichText Validate_RequiredRichText [% Data.RichTextInvalid | html %]" name="Body" rows="16" cols="78">[% Data.Body | html %]</textarea>
<div id="RichTextError" class="TooltipErrorMessage">
<p>[% Translate("This field is required.") | html %]</p>
</div>
<div id="RichTextServerError" class="TooltipErrorMessage">
<p>[% Translate("This field is required.") | html %]</p>
</div>
</div>
<div class="Clear"></div>
<div class="Field SpacingTop">
<button class="Primary CallForAction" id="submitRichText" type="submit" value="[% Translate("Send") | html %]"><span>[% Translate("Send") | html %]</span></button>
</div>
<div class="Clear"></div>
</fieldset>
</form>
[% RenderBlockEnd("Form") %]
</div>
</div>
</div>
<div class="Clear"></div>
</div>
|