Changeset 20541
- Timestamp:
- 03/08/10 10:24:35 (5 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/core/src/net/project/workflow/SelectListBean.java
r18397 r20541 370 370 subscription.setTargetObjectID(this.currentStepID); 371 371 subscription.addNotificationType(Step.ENTER_EVENT_ID); 372 subscription.setStatus(true); 372 373 } 373 374 subscription.setUser(this.user); trunk/core/web/jsp/notification/EditSubscription.jsp
r20534 r20541 48 48 String spaceParticipantList = StringUtils.EMPTY; 49 49 String itemName = StringUtils.EMPTY; 50 boolean status ;50 boolean status = false; 51 51 DateFormat dateFormatInstance = DateFormat.getInstance(); 52 52 if(!((request.getParameter("theAction")!= null) && (request.getParameter("theAction").equals("next")))){ … … 91 91 <%-- Avinash: bfd 3140 External Email Addresses in Create/Modify suscription is not validated --%> 92 92 document.getElementById("txt").innerHTML='<%=PropertyProvider.get("prm.notification.editsubscription.separate.text")%>'; 93 focus FirstField(theForm);93 focus(theForm, 'name'); 94 94 } 95 95 … … 109 109 110 110 function validateForm(theForm) { 111 var notificationType = document.getElementsByName('notificationType'); 111 112 if (!checkTextbox(theForm.name,'<%=PropertyProvider.get("prm.notification.editsubscription.namerequired.message")%>')) 112 113 return false; 113 if (!checkCheckBox_NoSelect(theForm.notificationType,'<%=PropertyProvider.get("prm.notification.createsubscription2.actiontonotifiedrequired.message")%>')) 114 return false; 115 116 <% if (securityProvider.isUserSpaceAdministrator()) { %> 114 if((notificationType.length == 1) && (!notificationType[0].checked)){ 115 extAlert('<%=PropertyProvider.get("prm.resource.global.exterroralert.title")%>', '<%=PropertyProvider.get("prm.notification.createsubscription2.actiontonotifiedrequired.message")%>', Ext.MessageBox.ERROR); 116 return false; 117 } 118 if(notificationType.length > 1 && !checkCheckBox_NoSelect(theForm.notificationType,'<%=PropertyProvider.get("prm.notification.createsubscription2.actiontonotifiedrequired.message")%>')){ 119 return false; 120 } 121 <% if (securityProvider.isUserSpaceAdministrator()) { %> 117 122 if(!checkExternalEmailList()) return false; 118 123 <%}%> … … 184 189 <input type="hidden" name="spaceID" value="<%=request.getParameter("spaceID")%>"> 185 190 186 <table width=" 95%" border="0" cellspacing="0" cellpadding="0">191 <table width="100%" border="0" cellspacing="0" cellpadding="0"> 187 192 188 193 <tr> 189 <td nowrap colspan="4" class="editNotifyHeader"><%=PropertyProvider.get("prm.notification.editsubscription.channel.edit.title")%> 190 </td> 194 <td nowrap colspan="3" class="editNotifyHeader"><%=PropertyProvider.get("prm.notification.editsubscription.channel.edit.title")%> 195 </td> 196 <td width="3%"> </td> 191 197 </tr> 192 198 <tr valign="top"> 193 <td colspan=" 4" class="channelContent"> </td>199 <td colspan="3" class="channelContent"> </td> 194 200 </tr> 195 201 … … 197 203 <tr> 198 204 <td width="2%"> </td> 199 <td colspan=" 3">205 <td colspan="2"> 200 206 201 207 <%-- Insert table containing editSubscription form --%> … … 204 210 <td class="editTableContent" width="18%"><%=PropertyProvider.get("prm.notification.editsubscription.status.label")%></td> 205 211 <td class="tableContent" ><input type="radio" 206 id="status" name="status" value="true" <%= status ? "checked" : "" %> ><%=PropertyProvider.get("prm.notification.editsubscription.statusenable.label")%></input>207      208 <input type="radio" id="status" name="status" value="false" <%= status ? "" : "checked" %> ><%=PropertyProvider.get("prm.notification.editsubscription.statusdisable.label")%></input>212 id="status" name="status" value="true" <%= status ? "checked" : "" %>/><%=PropertyProvider.get("prm.notification.editsubscription.statusenable.label")%> 213 214 <input type="radio" id="status" name="status" value="false" <%= status ? "" : "checked" %>/><%=PropertyProvider.get("prm.notification.editsubscription.statusdisable.label")%> 209 215 </td> 210 216 </tr> … … 227 233 <td class="notifyFieldRequired"><%=PropertyProvider.get("prm.notification.editsubscription.name.label")%></td> 228 234 <td class="tableContent"> 229 <input type="text" name="name" value='<c:out value="${editSubscription.name}"/>' size="60" maxlength="60"class="elementBorder notifyTextbox">235 <input type="text" name="name" value='<c:out value="${editSubscription.name}"/>' class="elementBorder notifyTextbox"> 230 236 </td> 231 237 </tr> … … 233 239 <tr> 234 240 <td class="editTableContent"><%=PropertyProvider.get("prm.notification.editsubscription.description.label")%></td> 235 <td class="tableContent"><input type="text" name="description" class="elementBorder notifyTextbox" value='<c:out value="${editSubscription.description}"/>' size="60" maxlength="60"></td> 236 </tr> 237 238 <tr> 239 <td class="notifyFieldRequired" valign="top" colspan="2"><%=PropertyProvider.get("prm.notification.editsubscription.itemsnotified.label")%></td> 241 <td class="tableContent"><textarea rows="5" name="description" class="elementBorder notifyTextbox"><c:out value="${editSubscription.description}"/></textarea></td> 242 </tr> 243 244 <tr> 245 <td class="notifyFieldRequired" valign="top"><%=PropertyProvider.get("prm.notification.editsubscription.itemsnotified.label")%></td> 246 <td> </td> 240 247 </tr> 241 248 … … 263 270 </tr> 264 271 <tr> 265 <td class="notifyFieldRequired" valign="top" colspan="4"><%=PropertyProvider.get("prm.notification.editsubscription.actionnotified.label")%></td> 272 <td class="notifyFieldRequired" valign="top" ><%=PropertyProvider.get("prm.notification.editsubscription.actionnotified.label")%></td> 273 <td> </td> 266 274 </tr> 267 275 <%=editSubscription.getEventSubscribeCheckList(id)%> … … 305 313 <td> 306 314 <%-- Avinash: bfd 3140 External Email Addresses in Create/Modify suscription is not validated --%> 307 <input type="text" class="elementBorder notifyTextbox" id="otherEmail" name="otherEmail" value='<c:out value="${editSubscription.externalSubscribersInCSV}"/>' size="60"onblur="return checkExternalEmailList();" />315 <input type="text" class="elementBorder notifyTextbox" id="otherEmail" name="otherEmail" value='<c:out value="${editSubscription.externalSubscribersInCSV}"/>' onblur="return checkExternalEmailList();" /> 308 316 </td> 309 317 </tr> … … 334 342 <%-- End Subscription form table --%> 335 343 <tr> 336 <td align="center" colspan=" 4" class="notify-edit-bottom" height="40"><button type="button" style="width: 100px;" onClick="return finish();"> <%=PropertyProvider.get("prm.notification.createsubscription2.submitbutton.label")%></button>344 <td align="center" colspan="3" class="notify-edit-bottom" height="40"><button type="button" style="width: 100px;" onClick="return finish();"> <%=PropertyProvider.get("prm.notification.createsubscription2.submitbutton.label")%></button> 337 345 </td> 346 <td width="3%"> </td> 338 347 </tr> 339 348 </table> 340 349 341 </form> </div>350 </form> 342 351 <%@ include file="/help/include_outside/footer.jsp" %> 343 352
