[otrs-cvs] GI/Kernel/Output/HTML/Standard AdminGenericInterfaceOperationSolMan.dtl, NONE, 1.1 AdminGenericInterfaceInvokerDefault.dtl, NONE, 1.1 AdminGenericInterfaceOperationDefault.dtl, 1.3, 1.4 AdminGenericInterfaceMappingSimple.dtl, NONE, 1.1 AdminGenericInterfaceInvokerSolMan.dtl, NONE, 1.1

CVS commits notifications of OTRS.org cvs-log at otrs.org
Mon Jun 20 19:33:34 GMT 2011


Comments:
Update of /home/cvs/GI/Kernel/Output/HTML/Standard
In directory lancelot:/tmp/cvs-serv28423/Kernel/Output/HTML/Standard

Modified Files:
	AdminGenericInterfaceOperationDefault.dtl 
Added Files:
	AdminGenericInterfaceOperationSolMan.dtl 
	AdminGenericInterfaceInvokerDefault.dtl 
	AdminGenericInterfaceMappingSimple.dtl 
	AdminGenericInterfaceInvokerSolMan.dtl 
Log Message:
Synchronized package.

Author: cr

--- NEW FILE: AdminGenericInterfaceOperationSolMan.dtl ---
# --
# AdminGenericInterfaceOperationSolMan.dtl - provides HTML form for AdminLog
# Copyright (C) 2001-2011 OTRS AG, http://otrs.org/
# --
# $Id: AdminGenericInterfaceOperationSolMan.dtl,v 1.1 2011/06/20 19:33:29 cr Exp $
# $OldId: AdminGenericInterfaceOperationSolMan.dtl,v 1.5 2011/06/20 19:24:59 cr Exp $
# --
# 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 AdminGenericInterfaceOperationSolMan">
<!-- dtl:block:TitleAdd -->
    <h1>$Text{"Add new Operation to Web Service %s", "$Data{"WebserviceName"}"}</h1>
<!-- dtl:block:TitleAdd -->
<!-- dtl:block:TitleChange -->
    <h1>$Text{"Change Operation %s of Web Service %s", "$Data{"Operation"}", "$Data{"WebserviceName"}"}</h1>
<!-- dtl:block:TitleChange -->
<!-- breadcrumb -->
    <div class="GenericInterfaceWebserviceConfigPath">
        <h3>
            $Config{"GenericInterface::Webservice::Path::Separator"}
            <a href="$Env{"Baselink"}Action=AdminGenericInterfaceWebservice">$Text{"Web Services"}</a>

            $Config{"GenericInterface::Webservice::Path::Separator"}
            <a href="$Env{"Baselink"}Action=AdminGenericInterfaceWebservice;Subaction=Change;WebserviceID=$QData{"WebserviceID"}">$QData{"WebserviceName"}</a>

            $Config{"GenericInterface::Webservice::Path::Separator"}
<!-- dtl:block:NavigationAdd -->
            $Text{"Add new operation"}
<!-- dtl:block:NavigationAdd -->
<!-- dtl:block:NavigationChange -->
            $Text{"Change operation %s", "$Data{"Operation"}"}
<!-- dtl:block:NavigationChange -->
        </h3>
    </div>

    <div class="SidebarColumn">
        <div class="WidgetSimple">
            <div class="Header">
                <h2>$Text{"Actions"}</h2>
            </div>
            <div class="Content">
                <ul class="ActionList">
                    <li>
                        <a href="$Env{"Baselink"}Action=AdminGenericInterfaceWebservice;Subaction=Change;WebserviceID=$LQData{"WebserviceID"}" class="CallForAction"><span>$Text{"Go back to web service"}</span></a>
                    </li>
<!-- dtl:block:ActionListDelete -->
                    <li>
                        <button class="CallForAction Trash W75pc" type="button" id="DeleteButton"><span>$Text{"Delete"}</span></button>
                        <div class="Hidden" id="DeleteDialogContainer">
                            <p id="DeleteDialog" class="Warning">
                                $Text{"Do you really want to delete this operation? All configuration data will be lost."}
                            </p>
                        </div>
                    </li>
<!-- dtl:block:ActionListDelete -->
                </ul>
            </div>
        </div>
    </div>
    <div class="ContentColumn">

        <div class="WidgetSimple">
            <div class="Header">
                <h2>$Text{"Operation Details"}</h2>
            </div>
            <div class="Content">
                <form action="$Env{"CGIHandle"}" class="Validate" method="post">
                    <input type="hidden" name="Action" value="AdminGenericInterfaceOperationSolMan" />
                    <input type="hidden" name="Subaction" value="$QData{"Mode"}Action" />
                    <input type="hidden" id="WebserviceID" name="WebserviceID" value="$QData{"WebserviceID"}" />
                    <input type="hidden" name="OperationType" value="$QData{"OperationType"}" />

                    <fieldset class="TableLike">
                        <label for="Operation" class="Mandatory">
                            <span class="Marker">*</span>
                            $Text{"Name"}:
                        </label>
                        <div class="Field">
                            <input type="text" class="W50pc RegisterChange Validate_Required $QData{"OperationServerError"}" maxlength="200" id="Operation" name="Operation" value="$QData{"Operation"}" />
                            <input type="hidden" id="OldOperation" name="OldOperation" value="$QData{"Operation"}" />
                            <p class="FieldExplanation">
                                $Text{"The name is typically used to call up this web service operation from a remote system."}
                            </p>
                            <div id="OperationError" class="TooltipErrorMessage">
                                $Text{"This field is required."} $Text{"Please provide a unique name for this web service."}
                            </div>
                            <div id="OperationServerError" class="TooltipErrorMessage">
                                $Text{"The name you entered already exists."}
                            </div>
                        </div>
                        <div class="Clear"></div>

                        <label for="Description">
                            $Text{"Description"}:
                        </label>
                        <div class="Field">
                            <input type="text" class="W50pc RegisterChange" maxlength="200" id="Description" name="Description" value="$QData{"Description"}" />
                        </div>
                        <div class="Clear"></div>

                        <label for="MappingInbound">$Text{"Mapping for incoming request data"}:</label>
                        <div class="Field">
                            $Data{"MappingInboundStrg"}
                            <input type="hidden" id="MappingInboundConfigDialog" value="$QData{"MappingInboundConfigDialog"}" />
<!-- dtl:block:MappingInboundConfigureButton -->
                            <button type="button" class="HideOnChange" id="MappingInboundConfigureButton" value="$Text{"Configure"}">$Text{"Configure"}</button>
<!-- dtl:js_on_document_complete -->
<script type="text/javascript">//<![CDATA[
$('#MappingInboundConfigureButton').bind('click', function(){
    var URL;

    if ($('#MappingInboundConfigDialog').val()) {
        URL = Core.Config.Get('Baselink') + 'Action=' + $('#MappingInboundConfigDialog').val();
        URL += ';Subaction=Change;Operation=' + $('#OldOperation').val() + ';Direction=MappingInbound' + ';WebserviceID=' + $('#WebserviceID').val() ;
        window.location.href = URL;
    }
});
//]]></script>
<!-- dtl:js_on_document_complete -->
<!-- dtl:block:MappingInboundConfigureButton -->
                            <p class="FieldExplanation">
                                $Text{"The request data will be processed by this mapping, allowing it to map it to the kind of data OTRS expects."}
                            </p>
                        </div>
                        <div class="Clear"></div>

                        <label for="OperationTypeDisplay">$Text{"Operation backend"}:</label>
                        <div class="Field">
                            <input type="text" readonly="readonly" class="W50pc" id="OperationTypeDisplay" value="$QData{"OperationType"}" />
                            <p class="FieldExplanation">
                                $Text{"This OTRS operation backend module will be called internally to process the request, generating data for the response."}
                            </p>
                        </div>
                        <div class="Clear"></div>


                        <label for="MappingOutbound">$Text{"Mapping for outgoing response data"}:</label>
                        <div class="Field">
                            $Data{"MappingOutboundStrg"}
                            <input type="hidden" id="MappingOutboundConfigDialog" value="$QData{"MappingOutboundConfigDialog"}" />
<!-- dtl:block:MappingOutboundConfigureButton -->
                            <button type="button" class="HideOnChange" id="MappingOutboundConfigureButton" value="$Text{"Configure"}">$Text{"Configure"}</button>
<!-- dtl:js_on_document_complete -->
<script type="text/javascript">//<![CDATA[
$('#MappingOutboundConfigureButton').bind('click', function(){
    var URL;

    if ($('#MappingOutboundConfigDialog').val()) {
        URL = Core.Config.Get('Baselink') + 'Action=' + $('#MappingOutboundConfigDialog').val();
        URL += ';Subaction=Change;Operation=' + $('#OldOperation').val() + ';Direction=MappingOutbound' + ';WebserviceID=' + $('#WebserviceID').val();
        window.location.href = URL;
    }
});
//]]></script>
<!-- dtl:js_on_document_complete -->
<!-- dtl:block:MappingOutboundConfigureButton -->
                            <p class="FieldExplanation">
                                $Text{"The response data will be processed by this mapping, allowing it to map it to the kind of data the remote system expects."}
                            </p>
                        </div>
                        <div class="Clear"></div>

                        <label for="RemoteSystemGuidDisplay">$Text{"Remote System GUID"}:</label>
                        <div class="Field">
                            <input type="text" readonly="readonly" class="W50pc " name="RemoteSystemGuid" id="RemoteSystemGuidDisplay" value="$QData{"RemoteSystemGuid"}" />
                            <button type="button" class="$QData{"ResetGuidClass"}" id="ResetRemoteSystemGuid" value="$Text{"Reset"}">$Text{"Reset"}</button>
<!-- dtl:js_on_document_complete -->
<script type="text/javascript">//<![CDATA[
$('#ResetRemoteSystemGuid').bind('click', function(){
    $('#RemoteSystemGuidDisplay').val("");
    $('.HideOnChange').hide();
    $('.ShowOnChange').show();
});
//]]></script>
<!-- dtl:js_on_document_complete -->
                            <p class="FieldExplanation">
                                $Text{"This Global Unique ID form Solution Manager this value is set automatically. This value can be reset if another Solution Manager is used (i.e. imported web service from development to production)."}
                            </p>
                        </div>
                        <div class="Clear"></div>

                        <div class="Field SpacingTop">
                            <button type="submit" class="Primary" value="$Text{"Save and continue"}">$Text{"Save"}</button>
<!-- dtl:block:SaveAndFinishButton -->
                            <button type="submit" id="SaveAndFinishButton" class="HideOnChange" value="$Text{"Save and finish"}">$Text{"Save and finish"}</button>
                            <input type="hidden" name="ReturnToWebservice" id="ReturnToWebservice" value="" />
<!-- dtl:js_on_document_complete -->
<script type="text/javascript">//<![CDATA[
$('#SaveAndFinishButton').bind('click', function(){
    $('#ReturnToWebservice').val(1);
});
//]]></script>
<!-- dtl:js_on_document_complete -->
<!-- dtl:block:SaveAndFinishButton -->
                            or
                            <a href="$Env{"Baselink"}Action=AdminGenericInterfaceWebservice;Subaction=Change;WebserviceID=$QData{"WebserviceID"}">$Text{"Cancel"}</a>
                        </div>
                        <div class="Clear"></div>

                    </fieldset>
                </form>
            </div>
        </div>
    </div>
    <div class="Clear"></div>
</div>

<!-- dtl:js_on_document_complete -->
<script type="text/javascript">//<![CDATA[

Core.Agent.Admin.GenericInterfaceOperation.Init({
    WebserviceID: $QData{"WebserviceID"},
    Operation: "$QData{"Operation"}",
    Action: 'AdminGenericInterfaceOperationSolMan',
    Localization: {
        CommunicationErrorMsg: '$JSText{"An error occurred during communication."}',
        DeleteOperationMsg: '$JSText{"Delete this Operation"}',
        DeleteMsg: '$JSText{"Delete"}',
        CancelMsg: '$JSText{"Cancel"}'
    }
});

$('.RegisterChange').bind('change.RegisterChange keyup.RegisterChange', function (Event) {
    $('.HideOnChange').hide();
    $('.ShowOnChange').show();
});

$('#DeleteButton').bind('click', Core.Agent.Admin.GenericInterfaceOperation.ShowDeleteDialog);

//]]></script>
<!-- dtl:js_on_document_complete -->

Author: cr

--- NEW FILE: AdminGenericInterfaceInvokerDefault.dtl ---
# --
# AdminGenericInterfaceInvokerDefault.dtl - provides HTML form for AdminLog
# Copyright (C) 2001-2011 OTRS AG, http://otrs.org/
# --
# $Id: AdminGenericInterfaceInvokerDefault.dtl,v 1.1 2011/06/20 19:33:29 cr Exp $
# $OldId: AdminGenericInterfaceInvokerDefault.dtl,v 1.2 2011/06/20 17:37:24 cr Exp $
# --
# 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 AdminGenericInterfaceInvokerDefault">
<!-- dtl:block:TitleAdd -->
    <h1>$Text{"Add new Invoker to Web Service %s", "$Data{"WebserviceName"}"}</h1>
<!-- dtl:block:TitleAdd -->
<!-- dtl:block:TitleChange -->
    <h1>$Text{"Change Invoker %s of Web Service %s", "$Data{"Invoker"}", "$Data{"WebserviceName"}"}</h1>
<!-- dtl:block:TitleChange -->
<!-- breadcrumb -->
    <div class="GenericInterfaceWebserviceConfigPath">
        <h3>
            $Config{"GenericInterface::Webservice::Path::Separator"}
            <a href="$Env{"Baselink"}Action=AdminGenericInterfaceWebservice">$Text{"Web Services"}</a>

            $Config{"GenericInterface::Webservice::Path::Separator"}
            <a href="$Env{"Baselink"}Action=AdminGenericInterfaceWebservice;Subaction=Change;WebserviceID=$QData{"WebserviceID"}">$QData{"WebserviceName"}</a>

            $Config{"GenericInterface::Webservice::Path::Separator"}
<!-- dtl:block:NavigationAdd -->
            $Text{"Add new invoker"}
<!-- dtl:block:NavigationAdd -->
<!-- dtl:block:NavigationChange -->
            $Text{"Change invoker %s", "$Data{"Invoker"}"}
<!-- dtl:block:NavigationChange -->
        </h3>
    </div>

    <div class="SidebarColumn">
        <div class="WidgetSimple">
            <div class="Header">
                <h2>$Text{"Actions"}</h2>
            </div>
            <div class="Content">
                <ul class="ActionList">
                    <li>
                        <a href="$Env{"Baselink"}Action=AdminGenericInterfaceWebservice;Subaction=Change;WebserviceID=$LQData{"WebserviceID"}" class="CallForAction"><span>$Text{"Go back to web service"}</span></a>
                    </li>
<!-- dtl:block:ActionListDelete -->
                    <li>
                        <button class="CallForAction Trash W75pc" type="button" id="DeleteButton"><span>$Text{"Delete"}</span></button>
                        <div class="Hidden" id="DeleteDialogContainer">
                            <p id="DeleteDialog" class="Warning">
                                $Text{"Do you really want to delete this invoker? All configuration data will be lost."}
                            </p>
                        </div>
                    </li>
<!-- dtl:block:ActionListDelete -->
                </ul>
            </div>
        </div>
    </div>
    <div class="ContentColumn">

        <div class="WidgetSimple">
            <div class="Header">
                <h2>$Text{"Invoker Details"}</h2>
            </div>
            <div class="Content">
                <form action="$Env{"CGIHandle"}" class="Validate" method="post">
                    <input type="hidden" name="Action" value="AdminGenericInterfaceInvokerDefault" />
                    <input type="hidden" name="Subaction" value="$QData{"Mode"}Action" />
                    <input type="hidden" name="WebserviceID" value="$QData{"WebserviceID"}" />
                    <input type="hidden" name="InvokerType" value="$QData{"InvokerType"}" />

                    <fieldset class="TableLike">
                        <label for="Invoker" class="Mandatory">
                            <span class="Marker">*</span>
                            $Text{"Name"}:
                        </label>
                        <div class="Field">
                            <input type="text" class="W50pc RegisterChange Validate_Required $QData{"InvokerServerError"}" maxlength="200" id="Invoker" name="Invoker" value="$QData{"Invoker"}" />
                            <input type="hidden" id="OldInvoker" name="OldInvoker" value="$QData{"Invoker"}" />
                            <p class="FieldExplanation">
                                $Text{"The name is typically used to call up this web service invoker from a remote system."}
                            </p>
                            <div id="InvokerError" class="TooltipErrorMessage">
                                $Text{"This field is required."} $Text{"Please provide a unique name for this web service."}
                            </div>
                            <div id="InvokerServerError" class="TooltipErrorMessage">
                                $Text{"The name you entered already exists."}
                            </div>
                        </div>
                        <div class="Clear"></div>

                        <label for="Description">
                            $Text{"Description"}:
                        </label>
                        <div class="Field">
                            <input type="text" class="W50pc RegisterChange" maxlength="200" id="Description" name="Description" value="$QData{"Description"}" />
                        </div>
                        <div class="Clear"></div>

                        <label for="MappingInbound">$Text{"Mapping for incoming request data"}:</label>
                        <div class="Field">
                            $Data{"MappingInboundStrg"}
                            <input type="hidden" id="MappingInboundConfigDialog" value="$QData{"MappingInboundConfigDialog"}" />
<!-- dtl:block:MappingInboundConfigureButton -->
                            <button type="button" class="HideOnChange" id="MappingInboundConfigureButton" value="$Text{"Configure"}">$Text{"Configure"}</button>
<!-- dtl:js_on_document_complete -->
<script type="text/javascript">//<![CDATA[
$('#MappingInboundConfigureButton').bind('click', function(){
    var URL;

    if ($('#MappingInboundConfigDialog').val()) {
        URL = Core.Config.Get('Baselink') + 'Action=' + $('#MappingInboundConfigDialog').val();
        URL += ';Subaction=Change;Invoker=' + $('#OldInvoker').val() + ';Direction=MappingInbound';
        window.location.href = URL;
    }
});
//]]></script>
<!-- dtl:js_on_document_complete -->
<!-- dtl:block:MappingInboundConfigureButton -->
                            <p class="FieldExplanation">
                                $Text{"The request data will be processed by this mapping, allowing it to map it to the kind of data OTRS expects."}
                            </p>
                        </div>
                        <div class="Clear"></div>

                        <label for="InvokerTypeDisplay">$Text{"Invoker backend"}:</label>
                        <div class="Field">
                            <input type="text" readonly="readonly" class="W50pc" id="InvokerTypeDisplay" value="$QData{"InvokerType"}" />
                            <p class="FieldExplanation">
                                $Text{"This OTRS invoker backend module will be called internally to process the request, generating data for the response."}
                            </p>
                        </div>
                        <div class="Clear"></div>

                        <label for="MappingOutbound">$Text{"Mapping for outgoing response data"}:</label>
                        <div class="Field">
                            $Data{"MappingOutboundStrg"}
                            <input type="hidden" id="MappingOutboundConfigDialog" value="$QData{"MappingOutboundConfigDialog"}" />
<!-- dtl:block:MappingOutboundConfigureButton -->
                            <button type="button" class="HideOnChange" id="MappingOutboundConfigureButton" value="$Text{"Configure"}">$Text{"Configure"}</button>
<!-- dtl:js_on_document_complete -->
<script type="text/javascript">//<![CDATA[
$('#MappingOutboundConfigureButton').bind('click', function(){
    var URL;

    if ($('#MappingOutboundConfigDialog').val()) {
        URL = Core.Config.Get('Baselink') + 'Action=' + $('#MappingOutboundConfigDialog').val();
        URL += ';Subaction=Change;Invoker=' + $('#OldInvoker').val() + ';Direction=MappingOutbound';
        window.location.href = URL;
    }
});
//]]></script>
<!-- dtl:js_on_document_complete -->
<!-- dtl:block:MappingOutboundConfigureButton -->
                            <p class="FieldExplanation">
                                $Text{"The response data will be processed by this mapping, allowing it to map it to the kind of data the remote system expects."}
                            </p>
                        </div>
                        <div class="Clear"></div>

                        <label for="EventsTable">$Text{"Event Triggers"}:</label>
                        <div class="Field W50pc">
                            <table class="DataTable W50pc" id="EventsTable" summary="List of all configured events">
                                <thead>
                                    <tr>
                                        <th>$Text{"Event"}</th>
                                        <th>$Text{"Asynchronous"}</th>
                                        <th>$Text{"Delete"}</th>
                                    </tr>
                                </thead>
                                <tbody>
<!-- dtl:block:NoDataFoundMsg -->
                                    <tr>
                                        <td colspan="4">
                                            $Text{"No data found."}
                                        </td>
                                    </tr>
<!-- dtl:block:NoDataFoundMsg -->

<!-- dtl:block:EventRow -->
                                    <tr>
                                        <td class="AsBlock">$QData{"Event"}</td>
                                        <td>$QData{"Asynchronous"}</td>
                                        <td class="Center">
                                            <a id="DeleteEvent$QData{"Event"}" class="TrashCan DeleteEvent" href="#" title="$Text{"Delete this event"}">
                                                $Text{"Delete this event"}
                                            </a>
                                        </td>
                                    </tr>
<!--dtl:js_on_document_complete-->
<script type="text/javascript">//<![CDATA[
/*global Core.Agent: true */
    Core.Agent.Admin.GenericInterfaceInvoker.BindDeleteEventDialog({
        ElementID:                  'DeleteEvent$QData{"Event"}',
        EventName:                  '$QData{"Event"}',
        ElementSelector:            '#DeleteEvent$QData{"Event"}',
    });
//]]></script>
<!--dtl:js_on_document_complete-->
<!-- dtl:block:EventRow -->
                                </tbody>
                            </table>
                            <p class="FieldExplanation">
                                $Text{"This invoker will be triggered by the events from the table above"}.
                            </p>
                        </div>

                        <div class="Hidden" id="DeleteEventDialogContainer">
                            <div id ="DeleteEventDialog" class="InnerContent GenericInterfaceDialog">
                                <span class="WarningDialog ">&nbsp;</span>
                                <p class="Center Warning">$Text{"Are you sure to that you want to delete this event trigger?"}</p>
                                <div class="SpacingTop"></div>
                            </div>
                        </div>

                        <div class="SpacingTop"></div>
                        <label class="HideOnChange" for="EventType">Add Event Trigger:</label>
                        <div class="Field HideOnChange">
                            $Data{"EventTypeStrg"}
<!-- dtl:block:EventAdd -->
                            $Data{"EventStrg"}
<!-- dtl:block:EventAdd -->
                            <input type="checkbox" id="Asynchronous" checked="checked" class="GenericInterfaceSpacing" name="Asynchronous"/><span>Asynchronus</span>
                            <button type="button" id="AddEvent" class="Add GenericInterfaceSpacing" name="AddEvent" value="Add Event">Add Event</button>
                            <p class="FieldExplanation">
                                $Text{"To add a new event select the event object and event name set asynchronous or not and click on the "+" button"}.
                            </p>
                            <p class="FieldExplanation">
                                $Text{"Asynchronous events are handled by the OTRS Scheduler in background. This is recommended for most of the invokers"}.
                            </p>
                        </div>
                        <div class="Clear"></div>

                        <div class="Field SpacingTop">
                            <button type="submit" class="Primary" value="$Text{"Save and continue"}">$Text{"Save"}</button>
<!-- dtl:block:SaveAndFinishButton -->
                            <button type="submit" id="SaveAndFinishButton" class="HideOnChange" value="$Text{"Save and finish"}">$Text{"Save and finish"}</button>
                            <input type="hidden" name="ReturnToWebservice" id="ReturnToWebservice" value="" />
<!-- dtl:js_on_document_complete -->
<script type="text/javascript">//<![CDATA[
$('#SaveAndFinishButton').bind('click', function(){
    $('#ReturnToWebservice').val(1);
});
//]]></script>
<!-- dtl:js_on_document_complete -->
<!-- dtl:block:SaveAndFinishButton -->
                            or
                            <a href="$Env{"Baselink"}Action=AdminGenericInterfaceWebservice;Subaction=Change;WebserviceID=$QData{"WebserviceID"}">$Text{"Cancel"}</a>
                        </div>
                        <div class="Clear"></div>
                    </fieldset>
                </form>
            </div>
        </div>
    </div>
    <div class="Clear"></div>
</div>

<!-- dtl:js_on_document_complete -->
<script type="text/javascript">//<![CDATA[
Core.Agent.Admin.GenericInterfaceInvoker.Init({
    WebserviceID: $QData{"WebserviceID"},
    Invoker: "$QData{"Invoker"}",
    Action: 'AdminGenericInterfaceInvokerDefault',
    EventTypeSelected: $('#EventType').val(),
    Localization: {
        CommunicationErrorMsg: '$JSText{"An error occurred during communication."}',
        DeleteInvokerMsg: '$JSText{"Delete this Invoker"}',
        DeleteEventMsg: '$JSText{"Delete this Event Trigger"}',
        DeleteMsg: '$JSText{"Delete"}',
        CancelMsg: '$JSText{"Cancel"}'
    }
});

$('.RegisterChange').bind('change.RegisterChange keyup.RegisterChange', function (Event) {
    $('.HideOnChange').hide();
    $('.ShowOnChange').show();
});

$('#DeleteButton').bind('click', Core.Agent.Admin.GenericInterfaceInvoker.ShowDeleteDialog);

$('#EventType').bind('change', function (){
    Core.Agent.Admin.GenericInterfaceInvoker.ToogleEventSelect($(this).val());
});

$('#AddEvent').bind('click', function (){
    Core.Agent.Admin.GenericInterfaceInvoker.AddEvent( $('#EventType').val() );
});

Core.Agent.Admin.GenericInterfaceInvoker.ToogleEventSelect( $('#EventType').val() );

//]]></script>


<!-- dtl:js_on_document_complete -->

Author: cr

Index: AdminGenericInterfaceOperationDefault.dtl
===================================================================
RCS file: /home/cvs/GI/Kernel/Output/HTML/Standard/AdminGenericInterfaceOperationDefault.dtl,v
retrieving revision 1.3
retrieving revision 1.4
diff -2 -u -d -r1.3 -r1.4
--- AdminGenericInterfaceOperationDefault.dtl	14 Jun 2011 16:14:25 -0000	1.3
+++ AdminGenericInterfaceOperationDefault.dtl	20 Jun 2011 19:33:29 -0000	1.4
@@ -4,5 +4,5 @@
 # --
 # $Id$
-# $OldId: AdminGenericInterfaceOperationDefault.dtl,v 1.11 2011/06/03 15:27:41 cr Exp $
+# $OldId: AdminGenericInterfaceOperationDefault.dtl,v 1.12 2011/06/20 19:24:59 cr Exp $
 # --
 # This software comes with ABSOLUTELY NO WARRANTY. For details, see
@@ -194,4 +194,5 @@
     WebserviceID: $QData{"WebserviceID"},
     Operation: "$QData{"Operation"}",
+    Action: 'AdminGenericInterfaceOperationDefault',
     Localization: {
         CommunicationErrorMsg: '$JSText{"An error occurred during communication."}',

Author: cr

--- NEW FILE: AdminGenericInterfaceMappingSimple.dtl ---
# --
# AdminGenericInterfaceMappingSimple.dtl - provides HTML form for AdminLog
# Copyright (C) 2001-2011 OTRS AG, http://otrs.org/
# --
# $Id: AdminGenericInterfaceMappingSimple.dtl,v 1.1 2011/06/20 19:33:29 cr Exp $
# $OldId: AdminGenericInterfaceMappingSimple.dtl,v 1.12 2011/05/17 13:36:17 mg Exp $
# --
# 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 AdminGenericInterfaceMappingSimple">
    <h1>$Text{"GenericInterface Mapping Simple for Web Service %s", "$Data{"WebserviceName"}"}</h1>
    <div class="GenericInterfaceWebserviceConfigPath">
        <h3>
            $Config{"GenericInterface::Webservice::Path::Separator"}
            <a href="$Env{"Baselink"}Action=AdminGenericInterfaceWebservice">$Text{"Web Services"}</a>

            $Config{"GenericInterface::Webservice::Path::Separator"}
            <a href="$Env{"Baselink"}Action=AdminGenericInterfaceWebservice;Subaction=Change;WebserviceID=$QData{"WebserviceID"}">$QData{"WebserviceName"}</a>

        </h3>
    </div>

    <div class="SidebarColumn">
        <div class="WidgetSimple">
            <div class="Header">
                <h2>$Text{"Actions"}</h2>
            </div>
            <div class="Content">
                <ul class="ActionList">
                    <li>
                        <a href="$Env{"Baselink"}Action=AdminGenericInterfaceWebservice;Subaction=Change;WebserviceID=$LQData{"WebserviceID"}" class="CallForAction"><span>$Text{"Go back to web service"}</span></a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <div class="ContentColumn">

        <div class="WidgetSimple">
            <div class="Header">
                <h2>$Text{"Mapping Simple"}</h2>
            </div>
            <div class="Content">
                <form action="$Env{"CGIHandle"}" method="post" class="Validate PreventMultipleSubmits">
                    <input type="hidden" name="Action" value="$Env{"Action"}"/>
                    <input type="hidden" name="Subaction" value="$QData{"Subaction"}Action"/>
                    <input type="hidden" name="WebserviceID" value="$QData{"WebserviceID"}" id="WebserviceID"/>
                    <input type="hidden" name="CommunicationType" value="$QData{"CommunicationType"}" />
                    <input type="hidden" name="Operation" value="$QData{"Operation"}" />
                    <input type="hidden" name="Invoker" value="$QData{"Invoker"}" />
                    <input type="hidden" name="Direction" value="$QData{"Direction"}" "/>
<!-- dtl:block:KeyCounter -->
                    <input type="hidden" name="KeyCounter" id="KeyCounter" value="$QData{"KeyIndex"}" />
<!-- dtl:block:KeyCounter -->
                    <fieldset class="TableLike  SpacingTop">
                        <label for="DefaultKeyType">$Text{"Default rule for unmapped keys"}:</label>
                        <div class="Field">
                            $Data{"DefaultKeyTypeStrg"}
                            <input id="DefaultKeyMapTo" name="DefaultKeyMapTo" class="W25pc $QData{"DefaultKeyMapToHidden"}" type="text" maxlength="100" value="$QData{"DefaultKeyMapTo"}"/>
                            <p class="FieldExplanation">$Text{"This rule will apply for all keys with no mapping rule."}</p>
                        </div>
                        <div class="Clear"></div>

                        <label for="DefaultKeyType">$Text{"Default rule for unmapped values"}:</label>
                        <div class="Field">
                            $Data{"DefaultValueTypeStrg"}
                            <input id="DefaultValueMapTo"name="DefaultValueMapTo"  class="W25pc $QData{"DefaultValueMapToHidden"}" type="text" maxlength="100" value="$QData{"DefaultValueMapTo"}"/>
                            <p class="FieldExplanation">$Text{"This rule will apply for all values with no mapping rule."}</p>
                        </div>
                        <div class="Clear"></div>

                        <label for="DefaultKeyType">$Text{"New key map"}:</label>
                        <div class="Field">
                            <span class="NewRule">
                                <button type="button" id="AddKeyMapping" class="Add" value="Add key mapping">$Text{"Add key mapping"}</button>
                            </span>
                        </div>
                        <div class="Clear Spacing"></div>
                    </fieldset>
                    <div class="Content Spacing" id="KeyInsert">

<!-- dtl:block:KeyTemplate -->
                        <div class="WidgetSimple Expanded WidgetKey $QData{"Classes"}">
                            <div class="Header">
                                <div class="WidgetAction Toggle">
                                    <a href="#" title="$JSText{"Show or hide the content"}"></a>
                                </div>
                                <h3 class="Title">$Text{"Mapping for Key "} $QData{"KeyMapNew"}</h3>
                                <div class="AdditionalInformation SpacingTopMini">
                                    <button type="button" id="RemoveKeyMapping" class="Remove" value="Remove key mapping">$Text{"Remove key mapping"}</button>
                                </div>
                            </div>
                            <div class="Content">

                                <fieldset class="TableLike FixedLabelSmall">
                                    <label>$Text{"Key mapping"}:</label>
                                    <div class="Field">
                                        Map key matching the
                                        $Data{"KeyMapTypeStrg"}
                                        <input name="KeyName$QData{"KeyIndex"}" id="KeyName$QData{"KeyIndex"}" class="W20pc" type="text" maxlength="100" value="$QData{"KeyName"}"/>
                                        to new name
                                        <input name="KeyMapNew$QData{"KeyIndex"}" id="KeyMapNew$QData{"KeyIndex"}" class="W20pc NewValue" type="text" maxlength="100" value="$QData{"KeyMapNew"}"/>
                                    </div>
                                    <div class="Clear"></div>

                                    <label>Value Mapping</label>
                                    <div class="Field ValueInsert">
<!-- dtl:block:ValueTemplateRowIndex -->
                                        <input type="hidden" name="ValueCounter$QData{"KeyIndex"}" value="$QData{"ValueIndex"}" id="ValueCounter$QData{"KeyIndex"}" class="ValueCounter" />
<!-- dtl:block:ValueTemplateRowIndex -->
                                        <div class="Spacing"></div>
<!-- dtl:block:ValueTemplateRow -->
                                        <div class="ValueTemplateRow">
                                            Map values matching the
                                            $Data{"ValueMapTypeStrg"}
                                            <input name="ValueName$QData{"KeyIndex"}_$QData{"ValueIndex"}" id="ValueName$QData{"KeyIndex"}_$QData{"ValueIndex"}" class="W20pc" type="text" maxlength="100" value="$QData{"ValueName"}"/>
                                            to new value
                                            <input name="ValueMapNew$QData{"KeyIndex"}_$QData{"ValueIndex"}" id="ValueMapNew$QData{"KeyIndex"}_$QData{"ValueIndex"}" class="W20pc" type="text" maxlength="100" value="$QData{"ValueMapNew"}"/>
                                            <span class="Spacing"></span>
                                            <button type="button" id="RemoveValueMapping$QData{"KeyIndex"}_$QData{"ValueIndex"}" class="Remove ValueRemove" value="Remove value mapping">$Text{"Remove value mapping"}</button>
                                        </div>
<!-- dtl:block:ValueTemplateRow -->
                                    </div>
                                    <div class="Clear"></div>

                                    <label for="DefaultKeyType">$Text{"New key map"}:</label>
                                    <div class="Field">
                                        <span class="NewValueMap">
                                            <button type="button" id="AddValueMapping$QData{"KeyIndex"}" class="Add ValueAdd" value="Add Value mapping">$Text{"Add value mapping"}</button>
                                        </span>
                                    </div>
                                    <div class="Clear"></div>
                                </fieldset>
                            </div>
                        </div>
<!-- dtl:block:KeyTemplate -->

<!-- dtl:block:ValueTemplate -->
                        <div class="ValueTemplate Hidden">
                            Map values matching the
                            $Data{"ValueMapTypeStrg"}
                            <input name="ValueName" id="ValueName" class="W20pc" type="text" maxlength="100" value=""/>
                            to new value
                            <input name="ValueMapNew" id="ValueMapNew" class="W20pc" type="text" maxlength="100" value=""/>
                            <span class="Spacing"></span>
                            <button type="button" id="RemoveValueMapping" class="Remove ValueRemove" value="Remove value mapping">$Text{"Remove value mapping"}</button>
                        </div>
<!-- dtl:block:ValueTemplate -->

                    </div>

                    <div class="Field Spacing">
                        <button class="Primary" type="submit" value="$Text{"Submit"}">$Text{"Submit"}</button>
                        $Text{"or"}
                        <a href="$Env{"Baselink"}Action=AdminGenericInterfaceWebservice;Subaction=Change;WebserviceID=$LQData{"WebserviceID"}">$Text{"Cancel"}</a>
                    </div>
                    <div class="Clear"></div>

                </form>
            </div>
        </div>

    </div>

</div>


<!-- dtl:js_on_document_complete -->
<script type="text/javascript">//<![CDATA[
function ToggleMapTo(Object) {
    if (Object.val() != 'MapTo') {
        Object.next().addClass('Hidden');
        Object.next().removeClass('Validate_Required');
    }
    else {
        Object.next().removeClass('Hidden');
        Object.next().addClass('Validate_Required');
    }
}

function AddValueMapping(ValueInsert, KeyCounter) {

        // clone key dialog
        var $Clone = $('.ValueTemplate').clone(),
            ValueCounter = $('#ValueCounter' + KeyCounter).val();

        // increment key counter
        ValueCounter ++;

        // remove unnecessary classes
        $Clone.removeClass('Hidden ValueTemplate');

        // copy values and change ids and names
        $Clone.find(':input').each(function(){
            var ID = $(this).attr('id');
            $(this).attr('id', ID + KeyCounter + '_' + ValueCounter);
            $(this).attr('name', ID + KeyCounter + '_' +ValueCounter);

            // add event handler to remove button
            if( $(this).hasClass('Remove') ) {
                // bind click function to add button
                $(this).bind('click', function () {
                    $(this).parent().remove();
                    return false;
                });
            }
        });

        // append to container
        ValueInsert.append($Clone);

        // set new value for KeyCounter
        $('#ValueCounter' + KeyCounter).val(ValueCounter);

    return false;
};


function AddKeyMapping() {

        // clone key dialog
        var $Clone = $('.KeyTemplate').clone(),
            KeyCounter = $('#KeyCounter').val();

        // increment key counter
        KeyCounter ++;

        // remove unnecessary classes
        $Clone.removeClass('Hidden KeyTemplate');

        // add title
        $Clone.find('.Title').html('Mapping for Key');

        // copy values and change ids and names
        $Clone.find(':input').each(function(){
            var ID = $(this).attr('id');
            $(this).attr('id', ID + KeyCounter);
            $(this).attr('name', ID + KeyCounter);

            // add event handler to Add button
            if( $(this).hasClass('Add') ) {
                // bind click function to add button
                $(this).bind('click', function () {
                    AddValueMapping( $(this).closest('fieldset').find('.ValueInsert'), KeyCounter );
                    return false;
                });
            }

            if( $(this).hasClass('Remove') ) {
                // bind click function to add button
                $(this).bind('click', function () {
                    if( confirm ('Do you really want to delete this key mapping?') ) {
                        $(this).closest('.WidgetKey').remove();
                    }
                    return false;
                });
            }

            if($(this).hasClass('DefaultType')) {
                $(this).bind('change', function(){
                    // call function to hide or show
                    // MapTo field
                    ToggleMapTo($(this));
                });
            }

            if($(this).hasClass('NewValue')) {
                $(this).bind('change', function(){
                    // modified title
                    $(this).closest('.WidgetKey').find('.Title').html( 'Mapping for Key ' + $(this).val() );
                });
            }
        });

        // append to container
        $('#KeyInsert').append($Clone);

        // reset template row values
        $('.NewRule').find(':input:not(:button)').attr('value','');
        $('#KeyMapTypeStrg' + KeyCounter).focus();

        // set new value for KeyCounter
        $('#KeyCounter').val(KeyCounter);

        // init toggle action
        Core.UI.InitWidgetActionToggle();
    return false;
};


$('.DefaultType').bind('change', function(){
    // call function to hide or show
    // MapTo field
    ToggleMapTo($(this));
});

// register add of attribute
$('#AddKeyMapping').bind('click', function () {
    AddKeyMapping();
    return false;
});

// register change new key name action
$('.NewValue').bind('change', function(){
    // modified title
    $(this).closest('.WidgetKey').find('.Title').html( 'Mapping for Key ' + $(this).val() );
});


// register remove key action
$('.AdditionalInformation .Remove').bind('click', function () {
    if( confirm ('Do you really want to delete this key mapping?') ) {
        $(this).closest('.WidgetKey').remove();
    }
    return false;
});

//bind click function to add button
$('.ValueAdd').bind('click', function () {
    AddValueMapping(
        $(this).closest('fieldset').find('.ValueInsert'),
        $(this).closest('fieldset').find('.ValueCounter').val()
    );
    return false;
});

//bind click function to add button
$('.ValueRemove').bind('click', function () {
    $(this).parent().remove();
    return false;
});

//]]></script>
<!-- dtl:js_on_document_complete -->

Author: cr

--- NEW FILE: AdminGenericInterfaceInvokerSolMan.dtl ---
# --
# AdminGenericInterfaceInvokerSolMan.dtl - provides HTML form for AdminLog
# Copyright (C) 2001-2011 OTRS AG, http://otrs.org/
# --
# $Id: AdminGenericInterfaceInvokerSolMan.dtl,v 1.1 2011/06/20 19:33:29 cr Exp $
# $OldId: AdminGenericInterfaceInvokerSolMan.dtl,v 1.1 2011/06/20 18:47:25 cr Exp $
# --
# 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 AdminGenericInterfaceInvokerSolMan">
<!-- dtl:block:TitleAdd -->
    <h1>$Text{"Add new Invoker to Web Service %s", "$Data{"WebserviceName"}"}</h1>
<!-- dtl:block:TitleAdd -->
<!-- dtl:block:TitleChange -->
    <h1>$Text{"Change Invoker %s of Web Service %s", "$Data{"Invoker"}", "$Data{"WebserviceName"}"}</h1>
<!-- dtl:block:TitleChange -->
<!-- breadcrumb -->
    <div class="GenericInterfaceWebserviceConfigPath">
        <h3>
            $Config{"GenericInterface::Webservice::Path::Separator"}
            <a href="$Env{"Baselink"}Action=AdminGenericInterfaceWebservice">$Text{"Web Services"}</a>

            $Config{"GenericInterface::Webservice::Path::Separator"}
            <a href="$Env{"Baselink"}Action=AdminGenericInterfaceWebservice;Subaction=Change;WebserviceID=$QData{"WebserviceID"}">$QData{"WebserviceName"}</a>

            $Config{"GenericInterface::Webservice::Path::Separator"}
<!-- dtl:block:NavigationAdd -->
            $Text{"Add new invoker"}
<!-- dtl:block:NavigationAdd -->
<!-- dtl:block:NavigationChange -->
            $Text{"Change invoker %s", "$Data{"Invoker"}"}
<!-- dtl:block:NavigationChange -->
        </h3>
    </div>

    <div class="SidebarColumn">
        <div class="WidgetSimple">
            <div class="Header">
                <h2>$Text{"Actions"}</h2>
            </div>
            <div class="Content">
                <ul class="ActionList">
                    <li>
                        <a href="$Env{"Baselink"}Action=AdminGenericInterfaceWebservice;Subaction=Change;WebserviceID=$LQData{"WebserviceID"}" class="CallForAction"><span>$Text{"Go back to web service"}</span></a>
                    </li>
<!-- dtl:block:ActionListDelete -->
                    <li>
                        <button class="CallForAction Trash W75pc" type="button" id="DeleteButton"><span>$Text{"Delete"}</span></button>
                        <div class="Hidden" id="DeleteDialogContainer">
                            <p id="DeleteDialog" class="Warning">
                                $Text{"Do you really want to delete this invoker? All configuration data will be lost."}
                            </p>
                        </div>
                    </li>
<!-- dtl:block:ActionListDelete -->
                </ul>
            </div>
        </div>
    </div>
    <div class="ContentColumn">

        <div class="WidgetSimple">
            <div class="Header">
                <h2>$Text{"Invoker Details"}</h2>
            </div>
            <div class="Content">
                <form action="$Env{"CGIHandle"}" class="Validate" method="post">
                    <input type="hidden" name="Action" value="AdminGenericInterfaceInvokerSolMan" />
                    <input type="hidden" name="Subaction" value="$QData{"Mode"}Action" />
                    <input type="hidden" name="WebserviceID" value="$QData{"WebserviceID"}" />
                    <input type="hidden" name="InvokerType" value="$QData{"InvokerType"}" />

                    <fieldset class="TableLike">
                        <label for="Invoker" class="Mandatory">
                            <span class="Marker">*</span>
                            $Text{"Name"}:
                        </label>
                        <div class="Field">
                            <input type="text" class="W50pc RegisterChange Validate_Required $QData{"InvokerServerError"}" maxlength="200" id="Invoker" name="Invoker" value="$QData{"Invoker"}" />
                            <input type="hidden" id="OldInvoker" name="OldInvoker" value="$QData{"Invoker"}" />
                            <p class="FieldExplanation">
                                $Text{"The name is typically used to call up this web service invoker from a remote system."}
                            </p>
                            <div id="InvokerError" class="TooltipErrorMessage">
                                $Text{"This field is required."} $Text{"Please provide a unique name for this web service."}
                            </div>
                            <div id="InvokerServerError" class="TooltipErrorMessage">
                                $Text{"The name you entered already exists."}
                            </div>
                        </div>
                        <div class="Clear"></div>

                        <label for="Description">
                            $Text{"Description"}:
                        </label>
                        <div class="Field">
                            <input type="text" class="W50pc RegisterChange" maxlength="200" id="Description" name="Description" value="$QData{"Description"}" />
                        </div>
                        <div class="Clear"></div>

                        <label for="MappingInbound">$Text{"Mapping for incoming request data"}:</label>
                        <div class="Field">
                            $Data{"MappingInboundStrg"}
                            <input type="hidden" id="MappingInboundConfigDialog" value="$QData{"MappingInboundConfigDialog"}" />
<!-- dtl:block:MappingInboundConfigureButton -->
                            <button type="button" class="HideOnChange" id="MappingInboundConfigureButton" value="$Text{"Configure"}">$Text{"Configure"}</button>
<!-- dtl:js_on_document_complete -->
<script type="text/javascript">//<![CDATA[
$('#MappingInboundConfigureButton').bind('click', function(){
    var URL;

    if ($('#MappingInboundConfigDialog').val()) {
        URL = Core.Config.Get('Baselink') + 'Action=' + $('#MappingInboundConfigDialog').val();
        URL += ';Subaction=Change;Invoker=' + $('#OldInvoker').val() + ';Direction=MappingInbound';
        window.location.href = URL;
    }
});
//]]></script>
<!-- dtl:js_on_document_complete -->
<!-- dtl:block:MappingInboundConfigureButton -->
                            <p class="FieldExplanation">
                                $Text{"The request data will be processed by this mapping, allowing it to map it to the kind of data OTRS expects."}
                            </p>
                        </div>
                        <div class="Clear"></div>

                        <label for="InvokerTypeDisplay">$Text{"Invoker backend"}:</label>
                        <div class="Field">
                            <input type="text" readonly="readonly" class="W50pc" id="InvokerTypeDisplay" value="$QData{"InvokerType"}" />
                            <p class="FieldExplanation">
                                $Text{"This OTRS invoker backend module will be called internally to process the request, generating data for the response."}
                            </p>
                        </div>
                        <div class="Clear"></div>

                        <label for="MappingOutbound">$Text{"Mapping for outgoing response data"}:</label>
                        <div class="Field">
                            $Data{"MappingOutboundStrg"}
                            <input type="hidden" id="MappingOutboundConfigDialog" value="$QData{"MappingOutboundConfigDialog"}" />
<!-- dtl:block:MappingOutboundConfigureButton -->
                            <button type="button" class="HideOnChange" id="MappingOutboundConfigureButton" value="$Text{"Configure"}">$Text{"Configure"}</button>
<!-- dtl:js_on_document_complete -->
<script type="text/javascript">//<![CDATA[
$('#MappingOutboundConfigureButton').bind('click', function(){
    var URL;

    if ($('#MappingOutboundConfigDialog').val()) {
        URL = Core.Config.Get('Baselink') + 'Action=' + $('#MappingOutboundConfigDialog').val();
        URL += ';Subaction=Change;Invoker=' + $('#OldInvoker').val() + ';Direction=MappingOutbound';
        window.location.href = URL;
    }
});
//]]></script>
<!-- dtl:js_on_document_complete -->
<!-- dtl:block:MappingOutboundConfigureButton -->
                            <p class="FieldExplanation">
                                $Text{"The response data will be processed by this mapping, allowing it to map it to the kind of data the remote system expects."}
                            </p>
                        </div>
                        <div class="Clear"></div>

                        <label for="RemoteSystemGuidDisplay">$Text{"Remote System GUID"}:</label>
                        <div class="Field">
                            <input type="text" readonly="readonly" class="W50pc " name="RemoteSystemGuid" id="RemoteSystemGuidDisplay" value="$QData{"RemoteSystemGuid"}" />
                            <button type="button" class="$QData{"ResetGuidClass"}" id="ResetRemoteSystemGuid" value="$Text{"Reset"}">$Text{"Reset"}</button>
<!-- dtl:js_on_document_complete -->
<script type="text/javascript">//<![CDATA[
$('#ResetRemoteSystemGuid').bind('click', function(){
    $('#RemoteSystemGuidDisplay').val("");
    $('.HideOnChange').hide();
    $('.ShowOnChange').show();
});
//]]></script>
<!-- dtl:js_on_document_complete -->
                            <p class="FieldExplanation">
                                $Text{"This Global Unique ID form Solution Manager this value is set automatically. This value can be reset if another Solution Manager is used (i.e. imported web service from development to production)."}
                            </p>
                        </div>
                        <div class="Clear"></div>

                        <label for="EventsTable">$Text{"Event Triggers"}:</label>
                        <div class="Field W50pc">
                            <table class="DataTable W50pc" id="EventsTable" summary="List of all configured events">
                                <thead>
                                    <tr>
                                        <th>$Text{"Event"}</th>
                                        <th>$Text{"Asynchronous"}</th>
                                        <th>$Text{"Delete"}</th>
                                    </tr>
                                </thead>
                                <tbody>
<!-- dtl:block:NoDataFoundMsg -->
                                    <tr>
                                        <td colspan="4">
                                            $Text{"No data found."}
                                        </td>
                                    </tr>
<!-- dtl:block:NoDataFoundMsg -->

<!-- dtl:block:EventRow -->
                                    <tr>
                                        <td class="AsBlock">$QData{"Event"}</td>
                                        <td>$QData{"Asynchronous"}</td>
                                        <td class="Center">
                                            <a id="DeleteEvent$QData{"Event"}" class="TrashCan DeleteEvent" href="#" title="$Text{"Delete this event"}">
                                                $Text{"Delete this event"}
                                            </a>
                                        </td>
                                    </tr>
<!--dtl:js_on_document_complete-->
<script type="text/javascript">//<![CDATA[
/*global Core.Agent: true */
    Core.Agent.Admin.GenericInterfaceInvoker.BindDeleteEventDialog({
        ElementID:                  'DeleteEvent$QData{"Event"}',
        EventName:                  '$QData{"Event"}',
        ElementSelector:            '#DeleteEvent$QData{"Event"}',
    });
//]]></script>
<!--dtl:js_on_document_complete-->
<!-- dtl:block:EventRow -->
                                </tbody>
                            </table>
                            <p class="FieldExplanation">
                                $Text{"This invoker will be triggered by the events from the table above"}.
                            </p>
                        </div>

                        <div class="Hidden" id="DeleteEventDialogContainer">
                            <div id ="DeleteEventDialog" class="InnerContent GenericInterfaceDialog">
                                <span class="WarningDialog ">&nbsp;</span>
                                <p class="Center Warning">$Text{"Are you sure to that you want to delete this event trigger?"}</p>
                                <div class="SpacingTop"></div>
                            </div>
                        </div>

                        <div class="SpacingTop"></div>
                        <label class="HideOnChange" for="EventType">Add Event Trigger:</label>
                        <div class="Field HideOnChange">
                            $Data{"EventTypeStrg"}
<!-- dtl:block:EventAdd -->
                            $Data{"EventStrg"}
<!-- dtl:block:EventAdd -->
                            <input type="checkbox" id="Asynchronous" checked="checked" class="GenericInterfaceSpacing" name="Asynchronous"/><span>Asynchronus</span>
                            <button type="button" id="AddEvent" class="Add GenericInterfaceSpacing" name="AddEvent" value="Add Event">Add Event</button>
                            <p class="FieldExplanation">
                                $Text{"To add a new event select the event object and event name set asynchronous or not and click on the "+" button"}.
                            </p>
                            <p class="FieldExplanation">
                                $Text{"Asynchronous events are handled by the OTRS Scheduler in background. This is recommended for most of the invokers"}.
                            </p>
                        </div>
                        <div class="Clear"></div>

                        <div class="Field SpacingTop">
                            <button type="submit" class="Primary" value="$Text{"Save and continue"}">$Text{"Save"}</button>
<!-- dtl:block:SaveAndFinishButton -->
                            <button type="submit" id="SaveAndFinishButton" class="HideOnChange" value="$Text{"Save and finish"}">$Text{"Save and finish"}</button>
                            <input type="hidden" name="ReturnToWebservice" id="ReturnToWebservice" value="" />
<!-- dtl:js_on_document_complete -->
<script type="text/javascript">//<![CDATA[
$('#SaveAndFinishButton').bind('click', function(){
    $('#ReturnToWebservice').val(1);
});
//]]></script>
<!-- dtl:js_on_document_complete -->
<!-- dtl:block:SaveAndFinishButton -->
                            or
                            <a href="$Env{"Baselink"}Action=AdminGenericInterfaceWebservice;Subaction=Change;WebserviceID=$QData{"WebserviceID"}">$Text{"Cancel"}</a>
                        </div>
                        <div class="Clear"></div>
                    </fieldset>
                </form>
            </div>
        </div>
    </div>
    <div class="Clear"></div>
</div>

<!-- dtl:js_on_document_complete -->
<script type="text/javascript">//<![CDATA[
Core.Agent.Admin.GenericInterfaceInvoker.Init({
    WebserviceID: $QData{"WebserviceID"},
    Invoker: "$QData{"Invoker"}",
    Action: 'AdminGenericInterfaceInvokerSolMan',
    EventTypeSelected: $('#EventType').val(),
    Localization: {
        CommunicationErrorMsg: '$JSText{"An error occurred during communication."}',
        DeleteInvokerMsg: '$JSText{"Delete this Invoker"}',
        DeleteEventMsg: '$JSText{"Delete this Event Trigger"}',
        DeleteMsg: '$JSText{"Delete"}',
        CancelMsg: '$JSText{"Cancel"}'
    }
});

$('.RegisterChange').bind('change.RegisterChange keyup.RegisterChange', function (Event) {
    $('.HideOnChange').hide();
    $('.ShowOnChange').show();
});

$('#DeleteButton').bind('click', Core.Agent.Admin.GenericInterfaceInvoker.ShowDeleteDialog);

$('#EventType').bind('change', function (){
    Core.Agent.Admin.GenericInterfaceInvoker.ToogleEventSelect($(this).val());
});

$('#AddEvent').bind('click', function (){
    Core.Agent.Admin.GenericInterfaceInvoker.AddEvent( $('#EventType').val() );
});

Core.Agent.Admin.GenericInterfaceInvoker.ToogleEventSelect( $('#EventType').val() );

//]]></script>


<!-- dtl:js_on_document_complete -->


More information about the cvs-log mailing list