123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: HTS
- (C) Copyright IBM Corp. 2005, 2010
- US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- -->
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:xts="http://developer.cognos.com/schemas/xts/"
- xmlns:hts="http://developer.cognos.com/myinbox/common/hts_ui"
- xmlns:impl="http://developer.cognos.com/fragments/implementation/1/"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- exclude-result-prefixes="xts hts xtsext">
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
- <xsl:variable name="potentialOwners_input_field"><xts:string id="IDS_FRAG_TASKVIEWER_LABEL_POTENTIAL_OWNERS_ALT_TXT"/></xsl:variable>
- <xsl:variable name="stakeholder_input_field"><xts:string id="IDS_FRAG_TASKVIEWER_LABEL_STAKEHOLDERS_ALT_TXT"/></xsl:variable>
- <xsl:variable name="subject_input_field"><xts:string id="IDS_FRAG_TASKVIEWER_LABEL_SUBJECT_ALT_TXT"/></xsl:variable>
- <xsl:variable name="skin"><xsl:value-of select="/root/preferences/param[@name='skin']"/></xsl:variable>
- <xsl:template match="/">
- <hts:script type="text/javascript">
- //register ps dojo library to dojo
- dojo.registerModulePath('com', '../../ps/portal/js/com');
- if (hts_productMode && hts_productMode.getMode() == hts_productMode.PLANNING) {
- dojo.registerModulePath("email", "../../pmpjs/email");
- dojo.registerModulePath("common", "../../pmpjs/common");
- dojo.registerModulePath("myinbox", "../../pmpjs/myinbox");
- dojo.require("myinbox.PSWrapper");
- dojo.require("email.RecipientDialog");
- dojo.require("myinbox.ListApplicationDialog");
- }
- dojo.require("dijit.Editor");
- dojo.require("com.ibm.cognos.ps.dojo.editor.plugins.TablePlugins");
-
- var _THIS_dateFrom="";
- var _THIS_dateTo="";
- var _THIS_toggler = new hts_toggler();
- var _THIS_dojoEditor;
- _THIS_.addEventListener("fragment.load", "_THIS_init");
- _THIS_.parent.addEventListener("cognos.hts.buildGenericTaskEditor", "_THIS_buildDojoEditor");
- var defaultStkHolder ;
- //messages used by TablePlugins.js
- var IDS_EMAIL_OPTIONS_BACKGRD = '<xts:string id="IDS_EMAIL_OPTIONS_BACKGRD" encode="javascript"/>';
- var IDS_EMAIL_OPTIONS_BORDER = '<xts:string id="IDS_EMAIL_OPTIONS_BORDER" encode="javascript"/>';
- function _THIS_init() {
- //the picker text boxes by default are set to the current date. set them to display nothing.
- //this fixes the issue of todays date getting displayed when no deadlines exist
- //also set the correct tab index and the correct label to be read by JAWs screen reader
- var dueDateEle = $('txtDate'+'_THIS_'+'taskOptions_dueDate');
- if (dueDateEle) {
- dijit.setWaiState(dueDateEle,'label','<xts:string id="IDS_FRAG_A11Y_DUE_DATE_LABEL" encode="javascript"/>');
- dueDateEle.value="";
- dueDateEle.tabIndex=6;
- }
-
- var startByEle = $('txtDate'+'_THIS_'+'taskOptions_startBy');
- if (startByEle) {
- dijit.setWaiState(startByEle,'label','<xts:string id="IDS_FRAG_A11Y_START_BY_DATE_LABEL" encode="javascript"/>');
- startByEle.value="";
- startByEle.tabIndex=5;
- }
-
- var uiStyle = new CUIStyle("CList_li", "CList_over", "CList_selected", "", null);
- // global cList
- cListGenTask = new CList("myCList",false, "CList_ul",uiStyle);
-
- <xsl:variable name="shname" select="/root/*[local-name()='input']/*[local-name()='currentUser']/name"/>
- <xsl:variable name="shid" select="/root/*[local-name()='input']/*[local-name()='currentUser']/id"/>
-
- //hts_setCurrentUser('_THIS__stakeHolders', '<xsl:value-of select="xtsext:javascriptencode(string($shid))"/>', '<xsl:value-of select="xtsext:javascriptencode(string($shname))"/>');
- defaultStkHolder = '<xsl:value-of select="xtsext:javascriptencode(string($shname))"/>';
- var currentUser = new HTSHumanRole("_THIS__stakeHolders");
- //We are running in Planning mode so hide the links.
- if (hts_productMode && hts_productMode.getMode() == hts_productMode.PLANNING) {
- dojo.attr("_THIS_linksContainer","style",{display:"none"});
- //And set the proper security mode
- var psWrapper = new myinbox.PSWrapper();
- //Get the securityMode first.
- psWrapper.getSecurityMode(function(response) {
- currentUser.setLogicalPeopleGroup(response);
- });
- }
- currentUser.addRawDisplayValue('<xsl:value-of select="xtsext:javascriptencode(string($shname))"/>');
- currentUser.addRawValue('<xsl:value-of select="xtsext:javascriptencode(string($shid))"/>','false');
- currentUser.commit();
- if (!_THIS_dojoEditor) {
- _THIS_dojoEditor = new DOJOEditor("_THIS__taskMessageValue",{height: '150px' ,extraPlugins:['|',{name: 'com.ibm.cognos.ps.dojo.editor.plugins.TablePlugins', command: 'insertTableWithValidation', label:'<xts:string id="IDS_FRAG_TASKVIEWER_DOJO_INSERT_TABLE" encode="javascript"/>'},{name: 'com.ibm.cognos.ps.dojo.editor.plugins.TablePlugins', command: 'modifyTableWithValidation', label:'<xts:string id="IDS_FRAG_TASKVIEWER_DOJO_MODIFY_TABLE" encode="javascript"/>'}]});
- } else {
- //just incase.
- _THIS_dojoEditor.destroy();
- }
- //This will cater for both notification and generic tasks as well as the task details pages.
- hts_datePickerListener();
- }
-
-
- function _THIS_buildDojoEditor() {
- _THIS_dojoEditor.create();
- setTimeout(function(){var input = dojo.byId('_THIS__potentialOwners_display');input.focus();}, 500);
-
- var iframe = dojo.byId('_THIS__taskMessageValue_iframe');
- iframe.tabIndex=8;
-
-
- if (dojo.isMoz) {
- var contentDoc =_THIS_getEditorIFrameDocument();
- dojo.connect(contentDoc, 'onkeydown',_THIS_editor_handleTabKeyDown);
- }
- }
- function _THIS_getEditorIFrameDocument() {
- var iframe = dojo.byId('_THIS__taskMessageValue_iframe');
- var contentDoc =(iframe.contentWindow || iframe.contentDocument);
- if (contentDoc.document) {
- contentDoc=contentDoc.document;
- }
-
- return contentDoc;
- }
- /* HACK alert!! There is a firefox/dojo bug which means that you cannot tab out of the editor and therefore cannot
- * access the ui below the editor using the keyboard. Attach a key listener to the editor iframe
- * and capture tab keys. When tab is pressed focus the element with the next tab index.
- */
- function _THIS_editor_handleTabKeyDown(e) {
- var keyCode = _THIS_getKeyCode(e);
- var iframe = dojo.byId('_THIS__taskMessageValue_iframe');
- if(keyCode == dojo.keys.TAB && !e.shiftKey && !e.ctrlKey && !e.altKey && iframe){
- //iframe.focus(); //does not work
- //get the control with the next tabindex
- var nextTabIndex = iframe.tabIndex + 1;
- var done=false;
-
- //get all pform controls with a tabIndex
- dojo.query('#_THIS_pform [tabIndex]').forEach(function(ele){
- if (ele.id && ele.tabIndex==nextTabIndex && !done) {
- ele.focus();
- done=true;
- }
- });
- dojo.stopEvent(e);
- }
- }
-
- function _THIS_handleDeleteKeyDown(e) {
-
- //delete key
- var keynum;
- var keychar;
-
- if(window.event) // IE
- {
- keynum = e.keyCode;
- }
- else if(e.which) // Netscape/Firefox/Opera
- {
- keynum = e.which;
- }
- if(keynum == 46) {
- cListGenTask.removeSelected();
- }
- return true;
- }
- function _THIS_getKeyCode(e) {
- var keynum;
-
- if(window.event) // IE
- {
- keynum = e.keyCode;
- }
- else if(e.which) // Netscape/Firefox/Opera
- {
- keynum = e.which;
- }
-
- return keynum;
- }
-
- var GLOBAL_SUBSCRIBE = "GLOBAL_SUBSCRIBE";
- var GLOBAL_UNSUBSCRIBE = "GLOBAL_UNSUBSCRIBE";
-
- function _THIS_getSubscriptionParams() {
- var checkboxes = _THIS_getSubscriptionCheckboxes();
- var params = "&events=";
- var events = new Object();
- for (var i=0;i<checkboxes.length;i++) {
- var cb = checkboxes[i];
-
- //we are setting the subscriptions here
- if (cb.checked) {
- events[cb.value]=GLOBAL_SUBSCRIBE;
- }else{
- events[cb.value]=GLOBAL_UNSUBSCRIBE;
- }
- }
- params += dojo.toJson(events);
- return params;
- }
- function _THIS_getSubscriptionCheckboxes() {
- var node = $('_THIS_taskOptions_advanced');
- var subscriptionCheckboxes = new Array();
- var checkboxes = new Object();
- var checkboxes = node.getElementsByTagName('INPUT');//_F_DOM.selectNodes(node,"//input[@type='checkbox']");
- var count=0;
- for (var i=0;i<checkboxes.length;i++) {
- if (checkboxes[i].type =='checkbox' && checkboxes[i].id.match("^"+'_THIS_sub_')=='_THIS_sub_' ) {
- subscriptionCheckboxes[count]=checkboxes[i];
- count++;
- }
- }
- return subscriptionCheckboxes;
- }
- function _THIS_save() {
- var links = new HTSLinks(cListGenTask,$('linksDivGen'));
- document.getElementById('_THIS__linksList_value').value = links.getValues();
- document.getElementById('_THIS__linksList_display').value = links.getDisplayValues();
- var subscriptions = _THIS_getSubscriptionParams();
- if (hts_createGenericTask(_THIS_,'_THIS_',subscriptions)) {
- _THIS_done();
- //reload the task list to show new task if need be
- var _THIS_utils = new hts_utils(_THIS_);
- _THIS_utils.refreshCurrentTab('poolTaskList');
- }
- }
- function _THIS_done() {
- _THIS_dojoEditor.destroy();
- _THIS_.raiseEvent('cognos.hts.hideAll');
- }
- function _THIS_cancel() {
- // check if user has done some editing and warn before cancel
- var editedInfo = (document.getElementById('_THIS__subject_value').value );
- editedInfo +=(document.getElementById('_THIS__potentialOwners_value').value );
- if(document.getElementById('_THIS__stakeHolders_display').value != defaultStkHolder ){
- editedInfo +=(document.getElementById('_THIS__stakeHolders_value').value );
- }
- editedInfo += _THIS_dojoEditor.getValue();
- editedInfo += document.getElementById('txtDate'+'_THIS_'+'taskOptions_startBy').value ;
- editedInfo += document.getElementById('txtDate'+'_THIS_'+'taskOptions_dueDate').value ;
-
- var priortyChanged = false;
- if( document.getElementById('_THIS_'+'taskOptions_priority').value != 3 ){
- priortyChanged = true;
- }
- var links = new HTSLinks(cListGenTask,$('linksDivNot'));
- editedInfo += links.getValues();
- var promptYes ;
- if(priortyChanged || editedInfo.length>0){
- promptYes = confirm( '<xts:string id="IDS_FRAG_TASKVIEWER_WARN_TASK_MODIFIED" encode="javascript"/>' );
- if(!promptYes){
- return false;
- }
- else{
- // Lets manually clean each item on the task page
- document.getElementById('_THIS__subject_value').value = '';
- document.getElementById('txtDate'+'_THIS_'+'taskOptions_startBy').value = '';
- document.getElementById('txtDate'+'_THIS_'+'taskOptions_dueDate').value = '';
- document.getElementById('_THIS_'+'taskOptions_priority').value = 3;
- hts_removeAllLinks(cListGenTask);
- var currentUser = new HTSHumanRole("_THIS__stakeHolders");
- currentUser.addRawDisplayValue('<xsl:value-of select="xtsext:javascriptencode(string($shname))"/>');
- currentUser.addRawValue('<xsl:value-of select="xtsext:javascriptencode(string($shid))"/>','false');
- currentUser.commit();
- var potUser = new HTSHumanRole("_THIS__potentialOwners");
- potUser.clear();
- }
- }
- _THIS_dojoEditor.destroy();
- _THIS_.raiseEvent('cognos.hts.displayPreviousDiv');
- _THIS_.raiseEvent('cognos.hts.unlock_list');
- }
- //declare the error messages
- var _THIS_msg_array = new Array();
- _THIS_msg_array['MSG_ERR_INCOMPATIBLE_DATES'] = '<xts:string id="IDS_FRAG_TASKVIEWER_WARN_INCOMPATIBLE_DATES" encode="javascript"/>';
- _THIS_msg_array['MSG_ERR_INVALID_END_DATE'] = '<xts:string id="IDS_FRAG_TASKVIEWER_WARN_INVALID_END_DATE" encode="javascript"/>';
- _THIS_msg_array['MSG_ERR_INVALID_START_DATE'] = '<xts:string id="IDS_FRAG_TASKVIEWER_WARN_INVALID_START_DATE" encode="javascript"/>';
- _THIS_msg_array['MSG_ERR_INVALID_DATE'] = '<xts:string id="IDS_FRAG_TASKVIEWER_WARN_INVALID_DATE" encode="javascript"/>';
- _THIS_msg_array['MSG_ERR_INVALID_ASSIGNMENT'] = '<xts:string id="IDS_FRAG_TASKVIEWER_WARN_INVALID_ASSIGNMENT" encode="javascript"/>';
- _THIS_msg_array['MSG_ERR_EQUAL_DATES'] = '<xts:string id="IDS_FRAG_TASKVIEWER_WARN_EQUAL_DATES" encode="javascript"/>';
- //_THIS_msg_array['MSG_ERR_START_CANNOT_USE_CURRENT_DATE'] = '<xts:string id="IDS_FRAG_TASKVIEWER_WARN_START_CANNOT_USE_CURRENT_DATE" encode="javascript"/>';
- _THIS_msg_array['MSG_ERR_COMPLETE_CANNOT_USE_CURRENT_DATE'] = '<xts:string id="IDS_FRAG_TASKVIEWER_WARN_COMPLETE_CANNOT_USE_CURRENT_DATE" encode="javascript"/>';
- _THIS_msg_array['MSG_ERR_ASSIGNEDTO_OR_STAKEHOLDER_NOT_SELECTED'] = '<xts:string id="IDS_FRAG_TASKVIEWER_WARN_ASSIGNEDTO_OR_STAKEHOLDER_NOT_SELECTED" encode="javascript"/>';
- _THIS_msg_array['MSG_ERR_TASKVIEWER_WARN_GENERICTASK_NO_SUBJECT'] = '<xts:string id="IDS_FRAG_TASKVIEWER_WARN_GENERICTASK_NO_SUBJECT" encode="javascript"/>';
- try {
- if (typeof oCV=="undefined") {
- oCV=window;
- }
- } catch(e) {
- oCV=window;
- }
- var G_PM_THIS_ = new C_PromptManager();
- oCV.preProcessControlArray=[];
- p_sSkinFolder=_F_Config.webContent + "/skins/<xsl:value-of select='xtsext:javascriptencode(string($skin))'/>";
- p_sWebContentURI=_F_Config.webContent;
- oCV.gbPromptRequestSubmitted=false;
- oCV.bCanFinish=true;oCV.bNextPage=true;
- oCV.pageNavigationObserverArray=[];
- oCV.rangeObserverArray=[];
- oCV.multipleObserverArray=[];
- oCV.datePickerObserverArray=[];
- oCV.hasPromptKeyDown=false;
- _THIS_monitor = function (evt) {
- if (evt.eventPhase == evt.AT_TARGET) //only want to execute this on downstream events
- return;
- var assignAndClose = $('_THIS_btnAssignAndClose');
- if (assignAndClose){
- if (evt.name == "fragment.retrieve.before"){
- assignAndClose.disabled = true;
- } else {
- assignAndClose.disabled = false;
- }
- }
- }
- _THIS_.parent.addEventListener("fragment.retrieve.before", "_THIS_monitor", true);
- _THIS_.parent.addEventListener("fragment.retrieve.after", "_THIS_monitor", true);
- </hts:script>
- <xsl:call-template name="renderOptions"/>
- </xsl:template>
- <xsl:template name="renderOptions">
- <form name="_THIS_pform" id="_THIS_pform" method="post" action="_THIS?/THIS_">
- <!--render the button bar -->
- <hts:section id="_THIS_footer" class="taskDetailsButtonBar">
- <hts:rowset>
- <hts:row>
- <hts:button id="_THIS_btnAssignAndClose" onKeyPress="if (_hts_getKeyCode(event) == 13) _THIS_save();" onclick="_THIS_save();" tabindex="20">
- <hts:value><xts:string id="IDS_FRAG_TASKVIEWER_GENERICTASK_BUTTON_SAVE"/></hts:value>
- </hts:button>
- <hts:button id="_THIS_btnCancel" onKeyPress="if (_hts_getKeyCode(event) == 13) _THIS_cancel();" onclick="_THIS_cancel();" tabindex="21">
- <hts:value><xts:string id="IDS_FRAG_TASKVIEWER_GENERICTASK_BUTTON_CANCEL"/></hts:value>
- </hts:button>
- </hts:row>
- </hts:rowset>
- </hts:section>
- <!-- Text fields and date fields -->
- <hts:section format="select-dialog" style="width:100%;padding:0px;margin:0px">
- <hts:actionlist>
- <hts:action>
- <hts:rowset>
- <hts:row format="select">
- <xsl:variable name="labelName">
- <xts:string id="IDS_FRAG_TASKVIEWER_LABEL_POTENTIAL_OWNERS"/>
- </xsl:variable>
- <hts:action style="width:20px">
- <hts:text label-for="_THIS__potentialOwners_display"><xsl:value-of select="$labelName"/></hts:text>
- </hts:action>
- <hts:action>
- <hts:img src="_THIS?frag-resource=/fragments/common/images/space.gif/THIS_" alt="" height="0px" width="20px"/>
- </hts:action>
- <hts:action>
- <hts:field size="100" type="text" aria-readonly="true" alt="{$potentialOwners_input_field}" name="_THIS__potentialOwners_display" id="_THIS__potentialOwners_display" readonly="true" tabindex="1"/>
- <hts:hidden id="_THIS__potentialOwners_value" name="_THIS__potentialOwners_value"/>
- </hts:action>
- </hts:row>
- <hts:row format="select">
- <xsl:variable name="labelName">
- <xts:string id="IDS_FRAG_TASKVIEWER_LABEL_STAKEHOLDERS"/>
- </xsl:variable>
- <hts:action style="width:20px">
- <hts:text label-for="_THIS__stakeHolders_display"><xsl:value-of select="$labelName"/></hts:text>
- </hts:action>
- <hts:action>
- <hts:img src="_THIS?frag-resource=/fragments/common/images/space.gif/THIS_" alt="" height="0px" width="20px"/>
- </hts:action>
- <hts:action>
- <hts:field size="100" type="text" aria-readonly="true" alt="{$stakeholder_input_field}" name="_THIS__stakeHolders_display" id="_THIS__stakeHolders_display" readonly="true" tabindex="2"/>
- <hts:hidden id="_THIS__stakeHolders_value" name="_THIS__stakeHolders_value"/>
- </hts:action>
- </hts:row>
- <hts:row>
- <hts:action colspan="3">
- <hts:div style="width:100%;text-align:right;padding-bottom:4px">
- <hts:link id="_THIS_AddRecipients" tabindex="3" onclick="hts_selectRecipients("",_THIS_msg_array,'_THIS_'+'_stakeHolders','_THIS_'+'_potentialOwners','humanTask');" href="#"><xts:string id="IDS_FRAG_TASKVIEWER_LABEL_ADD_RECIPIENTS"/></hts:link>
- </hts:div>
- </hts:action>
- <hts:action>
- <hts:img src="_THIS?frag-resource=/fragments/common/images/space.gif/THIS_" alt="" height="0px" width="300px"/>
- </hts:action>
- </hts:row>
- <hts:row format="select">
- <hts:action style="width:40px">
- <hts:text label-for="_THIS__subject_value"><xts:string id="IDS_FRAG_TASKVIEWER_GENERICTASK_LABEL_SUBJECT"/></hts:text>
- </hts:action>
- <hts:action>
- <hts:img src="_THIS?frag-resource=/fragments/common/images/space.gif/THIS_" alt="" height="0px" width="5px"/>
- </hts:action>
- <hts:action colspan="2">
- <hts:field tabindex="4" size="150" type="text" alt="{$subject_input_field}" name="_THIS__subject_value" id="_THIS__subject_value"/>
- </hts:action>
- </hts:row>
- </hts:rowset>
- </hts:action>
- </hts:actionlist>
- <!-- date fields -->
- <hts:actionlist>
- <hts:action>
- <hts:span>
- <xsl:attribute name="style">margin-left:2px</xsl:attribute>
- <hts:text><xts:string id="IDS_FRAG_TASKVIEWER_LABEL_START_BY"/></hts:text>
- </hts:span>
- <hts:section format="select-dialog" id="selectDate_THIS_taskOptions_startBy">
- <hts:script>
- var _THIS_startById = "_THIS_taskOptions_startBy";
- hts_clearDatePickersIframe(_THIS_startById);
- genSelectDateHTML({formName:"_THIS_pform",parameterName:"_THIS_taskOptions_startBy",submitType:"",prmtDefaultDate:_THIS_dateFrom,defaultValue:_THIS_dateFrom,startOfWeek:"Sunday",calendar:"Gregorian",selectUI:"editBox",selectDateUI:"editBox",inputOrder:"YMD",firstDate:hts_getCurrentDate(),lastDate:"",dateTime:0,initialState:RANGE_NO_VALUE,required:false,suppressDisabled:true,hideAdornments:false,suppressExtraPromptNames:false,multi:false,range:false,style:"",selectDateEditBoxStyle:"",selectDateYearsStyle:"",selectDateMonthsStyle:"",selectDateDaysOfWeekStyle:"",selectDateDaysStyle:"",CVId:"",id:_THIS_startById});
- </hts:script>
- </hts:section>
- </hts:action>
- <hts:action>
- <hts:img src="_THIS?frag-resource=/fragments/common/images/space.gif/THIS_" alt="" width="24px"/>
- </hts:action>
- <hts:action>
- <hts:span>
- <hts:text><xts:string id="IDS_FRAG_TASKVIEWER_LABEL_DUE_DATE"/></hts:text>
- </hts:span>
- <hts:section format="select-dialog" id="selectDate_THIS_taskOptions_dueDate">
- <hts:script>
- var _THIS_dueDateId = "_THIS_taskOptions_dueDate";
- hts_clearDatePickersIframe(_THIS_dueDateId);
- genSelectDateHTML({formName:"_THIS_pform",parameterName:"_THIS_taskOptions_dueDate",submitType:"",prmtDefaultDate:_THIS_dateTo,defaultValue:_THIS_dateTo,startOfWeek:"Sunday",calendar:"Gregorian",selectUI:"editBox",selectDateUI:"editBox",inputOrder:"YMD",firstDate:hts_getCurrentDate(),lastDate:"",dateTime:0,initialState:RANGE_NO_VALUE,required:false,suppressDisabled:true,hideAdornments:false,suppressExtraPromptNames:false,multi:false,range:false,style:"",selectDateEditBoxStyle:"",selectDateYearsStyle:"",selectDateMonthsStyle:"",selectDateDaysOfWeekStyle:"",selectDateDaysStyle:"",CVId:"",id:_THIS_dueDateId});
- </hts:script>
- </hts:section>
- </hts:action>
-
- <hts:action>
- <hts:img src="_THIS?frag-resource=/fragments/common/images/space.gif/THIS_" alt="" width="24px"/>
- </hts:action>
- <hts:action>
- <hts:span>
- <xsl:attribute name="style">margin-left:3px</xsl:attribute>
- <hts:text label-for="_THIS_taskOptions_priority"><xts:string id="IDS_FRAG_TASKVIEWER_LABEL_PRIORITY"/></hts:text>
- </hts:span>
- <hts:section format="select-dialog">
- <hts:select name="_THIS_taskOptions_priority" id="_THIS_taskOptions_priority" tabindex="7">
- <hts:option value="5"><xts:string id="IDS_FRAG_PRIORITY_LABEL_LOW"/></hts:option>
- <hts:option value="3">
- <xsl:attribute name="selected">true</xsl:attribute>
- <xts:string id="IDS_FRAG_PRIORITY_LABEL_MEDIUM"/>
- </hts:option>
- <hts:option value="1"><xts:string id="IDS_FRAG_PRIORITY_LABEL_HIGH"/></hts:option>
- </hts:select>
- </hts:section>
- </hts:action>
- </hts:actionlist>
- <!-- Message with link -->
- <hts:actionlist>
- <hts:action>
- <!--hts:text><xts:string id="IDS_FRAG_TASKVIEWER_GENERICTASK_LABEL_MESSAGE"/></hts:text-->
- <label for="_THIS__taskMessageValue_iframe"><xts:string id="IDS_FRAG_TASKVIEWER_GENERICTASK_LABEL_MESSAGE"/></label>
- </hts:action>
- </hts:actionlist>
- <hts:div>
- <xsl:attribute name="id">_THIS__taskMessageValue</xsl:attribute>
- <xsl:attribute name="style">margin-bottom:3px;width:100%</xsl:attribute>
- <!--xsl:attribute name="dojoType">dijit.Editor</xsl:attribute-->
- </hts:div>
- <hts:hidden id="_THIS__taskMessageTextValue" name="_THIS__taskMessageTextValue"/>
- <hts:div id="_THIS_linksContainer">
- <hts:div id="linksDivGen" class="htsLinkArea" onkeydown="_THIS_handleDeleteKeyDown(event)"/>
- <hts:hidden id="_THIS__linksList_value" name="_THIS__linksList_value"/>
- <hts:hidden id="_THIS__linksList_display" name="_THIS__linksList_display"/>
- <div align="right">
- <hts:link tabindex="9" id="_THIS__removeLinks" onclick="hts_removeLinks(cListGenTask, '_THIS__removeLinks');" href="#">
- <xts:string id="IDS_FRAG_TASKVIEWER_LABEL_REMOVE_LINKS"/>
- </hts:link>
- <hts:link tabindex="10" id="_THIS__addLinks" onclick="hts_selectLinks(cListGenTask,'linksDivGen', '_THIS__addLinks', 9);" href="#">
- <xts:string id="IDS_FRAG_TASKVIEWER_LABEL_ADD_LINKS"/>
- </hts:link>
- </div>
- </hts:div>
- <!-- Advanced collapse area -->
- <hts:dynamicexpandcontrol name="_THIS_taskOptions_advanced" tabindex="11">
- <hts:text><xts:string id="IDS_FRAG_TASKVIEWER_SUBSCRIPTION_LABEL_ADVANCED"/></hts:text>
- <hts:dynamicarea>
- <hts:div class="cogstyle-hts-subscription-div-border" id="_THIS_taskOptions_advanced" name="_THIS_taskOptions_advanced">
- <hts:actionlist>
- <hts:action>
- <hts:img src="_THIS?frag-resource=/fragments/common/images/space.gif/THIS_" alt="" width="12px"/>
- </hts:action>
- <hts:action>
- <hts:text><xts:string id="IDS_FRAG_TASKVIEWER_GENERICTASK_LABEL_OPTIONS"/></hts:text>
- <hts:actionlist>
- <hts:action>
- <hts:checkbox id="_THIS_sub_startDeadline" onclick="hts_selectCheckbox(this.id,'_THIS_')" selected="true" tabindex="12">
- <hts:value>START_DEADLINE</hts:value>
- <hts:text><xts:string id="IDS_FRAG_TASKVIEWER_SUBSCRIPTION_LABEL_START_DEADLINE"/></hts:text>
- </hts:checkbox>
- <hts:checkbox id="_THIS_sub_completionDeadline" onclick="hts_selectCheckbox(this.id,'_THIS_')" selected="true" tabindex="13">
- <hts:value>COMPLETE_DEADLINE</hts:value>
- <hts:text><xts:string id="IDS_FRAG_TASKVIEWER_SUBSCRIPTION_LABEL_COMPLETE_DEADLINE"/></hts:text>
- </hts:checkbox>
- <hts:checkbox id="_THIS_notification" onclick="hts_selectCheckbox(this.id,'_THIS_')" selected="true" tabindex="14">
- <hts:value>STATE_CHANGE</hts:value>
- <hts:text><xts:string id="IDS_FRAG_TASKVIEWER_SUBSCRIPTION_LABEL_STATUS_CHANGE"/></hts:text>
- </hts:checkbox>
- <hts:actionlist>
- <hts:action>
- <hts:img src="_THIS?frag-resource=/fragments/common/images/space.gif/THIS_" alt="" width="13px"/>
- </hts:action>
- <hts:action>
- <hts:rowset>
- <hts:row>
- <hts:action>
- <hts:checkbox id="_THIS_sub_stateChange_started" onclick="hts_selectCheckbox(this.id,'_THIS_')" tabindex="15">
- <hts:value>STATE_CHANGE_STARTED</hts:value>
- <hts:text><xts:string id="IDS_FRAG_TASKVIEWER_SUBSCRIPTION_LABEL_STATE_CHANGE_STARTED"/></hts:text>
- </hts:checkbox>
- </hts:action>
- <hts:action>
- <hts:checkbox id="_THIS_sub_stateChange_ownerChanged" onclick="hts_selectCheckbox(this.id,'_THIS_')" tabindex="16">
- <hts:value>STATE_CHANGE_OWNER_CHANGED</hts:value>
- <hts:text><xts:string id="IDS_FRAG_TASKVIEWER_SUBSCRIPTION_LABEL_STATE_CHANGE_OWNER_CHANGED"/></hts:text>
- </hts:checkbox>
- </hts:action>
- </hts:row>
- <hts:row>
- <hts:action>
- <hts:checkbox id="_THIS_sub_stateChange_comments" onclick="hts_selectCheckbox(this.id,'_THIS_')" tabindex="17">
- <hts:value>COMMENTS</hts:value>
- <hts:text><xts:string id="IDS_FRAG_TASKVIEWER_SUBSCRIPTION_LABEL_COMMENT"/></hts:text>
- </hts:checkbox>
- </hts:action>
- <hts:action>
- <hts:checkbox id="_THIS_sub_stateChange_completed" onclick="hts_selectCheckbox(this.id,'_THIS_')" selected="true" tabindex="18">
- <hts:value>STATE_CHANGE_COMPLETED</hts:value>
- <hts:text><xts:string id="IDS_FRAG_TASKVIEWER_SUBSCRIPTION_LABEL_STATE_CHANGE_COMPLETED"/></hts:text>
- </hts:checkbox>
- </hts:action>
- </hts:row>
- <hts:row>
- <hts:action>
- <hts:checkbox id="_THIS_sub_stateChange_cancelled" onclick="hts_selectCheckbox(this.id,'_THIS_');" selected="true" tabindex="19">
- <hts:value>STATE_CHANGE_CANCELLED</hts:value>
- <hts:text><xts:string id="IDS_FRAG_TASKVIEWER_SUBSCRIPTION_LABEL_CANCELLED"/></hts:text>
- </hts:checkbox>
- </hts:action>
- </hts:row>
- </hts:rowset>
- </hts:action>
- </hts:actionlist>
- </hts:action>
- </hts:actionlist>
- </hts:action>
- </hts:actionlist>
- </hts:div>
- </hts:dynamicarea>
- </hts:dynamicexpandcontrol>
- </hts:section>
- </form>
- </xsl:template>
- </xsl:stylesheet>
|