Subversion Repositories DevTools

Rev

Rev 1281 | Rev 1372 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1281 Rev 1339
Line 563... Line 563...
563
   If (objFormCollector.Item("vcs_tag") = enum_VCS_CLEARCASE_TAG) Then
563
   If (objFormCollector.Item("vcs_tag") = enum_VCS_CLEARCASE_TAG) Then
564
      ' Do clearcase path + label validation
564
      ' Do clearcase path + label validation
565
      on_submit_validation = "onSubmit=""MM_validateForm('FRlabel','Label','RisCCLabel','FRpath','Source Path','RisCCPath' ); return document.MM_returnValue"""
565
      on_submit_validation = "onSubmit=""MM_validateForm('FRlabel','Label','RisCCLabel','FRpath','Source Path','RisCCPath' ); return document.MM_returnValue"""
566
   ElseIf (objFormCollector.Item("vcs_tag") = enum_VCS_SUBVERSION_TAG) Then
566
   ElseIf (objFormCollector.Item("vcs_tag") = enum_VCS_SUBVERSION_TAG) Then
567
      ' Do subversion tag validation
567
      ' Do subversion tag validation
568
      on_submit_validation = "onSubmit=""MM_validateForm('FRpath','Subversion TAG','RisSVNTag' ); return document.MM_returnValue"""
568
      on_submit_validation = "onSubmit=""MM_validateForm('FRlabel','Subversion Tag','RisSVNTag','FRpath','Source Path','RisSVNPath' ); return document.MM_returnValue"""
569
   End If
569
   End If
570
 
570
 
571
End Sub
571
End Sub
572
'----------------------------------------------------------------------------------------------------------------------
572
'----------------------------------------------------------------------------------------------------------------------
573
' This function obtains a BM_ID (build machine ID) from a buidl machine name by querrying the database
573
' This function obtains a BM_ID (build machine ID) from a buidl machine name by querrying the database
Line 605... Line 605...
605
 
605
 
606
 
606
 
607
 
607
 
608
'--- From Validation Rule Changes ----
608
'--- From Validation Rule Changes ----
609
 
609
 
610
' Dont need the label if not using clearcase
610
' Dont need the label if the package version is uncontrolled
611
If (objFormCollector.Item("vcs_tag") <> enum_VCS_CLEARCASE_TAG) AND (objFormCollector.Item("vcs_tag") <> enum_VCS_CVS_TAG)  Then
611
If (objFormCollector.Item("vcs_tag") = enum_VCS_UNCONTROLLED_TAG) Then
612
   objForm.UpdateRules ("id='FRlabel' IsRequired='N'")
612
   objForm.UpdateRules ("id='FRlabel' IsRequired='N'")
613
End If
613
End If
614
 
614
 
615
' Dont need the path if the package version is uncontrolled
615
' Dont need the path if the package version is uncontrolled
616
If (objFormCollector.Item("vcs_tag") = enum_VCS_UNCONTROLLED_TAG) Then
616
If (objFormCollector.Item("vcs_tag") = enum_VCS_UNCONTROLLED_TAG) Then
Line 794... Line 794...
794
}
794
}
795
 
795
 
796
// This function will replace back slashes with forward slashes and can be used with an onchange event on fields
796
// This function will replace back slashes with forward slashes and can be used with an onchange event on fields
797
// where back slashes may be entered
797
// where back slashes may be entered
798
function replace_back_slashes(e) {
798
function replace_back_slashes(e) {
-
 
799
   strip_whitespace(e);
799
   var str = e.value;
800
   var str = e.value;
800
   e.value = str.replace(/\\/g,"/");
801
   e.value = str.replace(/\\/g,"/");
801
}
802
}
802
 
803
 
-
 
804
function strip_whitespace(e) {
-
 
805
   var str = e.value;
-
 
806
   str = str.replace(/^\s+/,"");
-
 
807
   e.value =  str.replace(/\s+$/,"");
-
 
808
}
-
 
809
 
803
//-->
810
//-->
804
</script>
811
</script>
805
</head>
812
</head>
806
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="self.focus();">
813
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="self.focus();">
807
<!-- TIPS LAYERS -------------------------------------->
814
<!-- TIPS LAYERS -------------------------------------->
Line 870... Line 877...
870
                     <% Call RenderVCSCombo(objFormCollector.Item("vcs_tag"))%>
877
                     <% Call RenderVCSCombo(objFormCollector.Item("vcs_tag"))%>
871
                  </td>
878
                  </td>
872
               </tr>
879
               </tr>
873
 
880
 
874
               <%If (objFormCollector.Item("vcs_tag") = enum_VCS_CLEARCASE_TAG) Then%>
881
               <%If (objFormCollector.Item("vcs_tag") = enum_VCS_CLEARCASE_TAG) Then%>
-
 
882
 
-
 
883
                  <tr>
-
 
884
                     <td>&nbsp;</td>
-
 
885
                     <td valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Source Path<%=Quick_Help ( "src_path" )%></td>
-
 
886
                     <td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">
-
 
887
                        <input name="FRpath" type="text" class="form_item" <%=disableCriticalSectionEdit%> id="FRpath" onchange="replace_back_slashes(this);" value="<%=objForm.GetValue( "FRpath", objFormCollector.Item("src_path") )%>" size="60" maxlength="2000">
-
 
888
                        <br>&nbsp;Example: /MASS_Dev_Infra/core_cs <br>
-
 
889
                     </td>
-
 
890
                     <td valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_txt"><%=objForm.Validate ("FRpath")%></td>
-
 
891
                  </tr>
-
 
892
               
875
                  <tr>
893
                  <tr>
876
                     <td>&nbsp;</td>
894
                     <td>&nbsp;</td>
877
                     <td nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Label<%=Quick_Help ( "pkg_label" )%></td>
895
                     <td nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Label<%=Quick_Help ( "pkg_label" )%></td>
878
                     <td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">
896
                     <td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">
879
                        <%
897
                        <%
Line 908... Line 926...
908
                              End If
926
                              End If
909
                              objForm.SetValue "FRlabel", sLabel
927
                              objForm.SetValue "FRlabel", sLabel
910
                           End If
928
                           End If
911
                        End If
929
                        End If
912
                        %>
930
                        %>
913
                        <input type="text" name="FRlabel" id="FRlabel" maxlength="50" size="60" class="form_item" <%=disableCriticalSectionEdit%> value="<%=sLabel%>" <%=sLabelReadOnly%>>
931
                        <input type="text" name="FRlabel" id="FRlabel" maxlength="50" size="60" class="form_item" <%=disableCriticalSectionEdit%> onchange="strip_whitespace(this);" value="<%=sLabel%>" <%=sLabelReadOnly%>>
-
 
932
                        <br>&nbsp;Example: core_cs_1.0.0000.cr<br>
914
                     </td>
933
                     </td>
915
                     <td valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_txt"><%=objForm.Validate ("FRlabel")%></td>
934
                     <td valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_txt"><%=objForm.Validate ("FRlabel")%></td>
916
                  </tr>
935
                  </tr>
917
                  <tr>
-
 
918
                     <td>&nbsp;</td>
-
 
919
                     <td valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Source Path<%=Quick_Help ( "src_path" )%></td>
-
 
920
                     <td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">
-
 
921
                        <input name="FRpath" type="text" class="form_item" <%=disableCriticalSectionEdit%> id="FRpath" onchange="replace_back_slashes(this);" value="<%=objForm.GetValue( "FRpath", objFormCollector.Item("src_path") )%>" size="60" maxlength="2000">
936
 
922
                        <br>
-
 
923
                        Example:<br>/MASS_Dev_Infra/core_cs <br>
-
 
924
                     </td>
-
 
925
                     <td valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_txt"><%=objForm.Validate ("FRpath")%></td>
-
 
926
                  </tr>
-
 
927
               <%ElseIf (objFormCollector.Item("vcs_tag") = enum_VCS_SUBVERSION_TAG) Then%>
937
               <%ElseIf (objFormCollector.Item("vcs_tag") = enum_VCS_SUBVERSION_TAG) Then%>
928
                  <tr>
938
                  <tr>
929
                     <td>&nbsp;</td>
939
                     <td>&nbsp;</td>
930
                     <td valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_field">SubVersion Tag<%=Quick_Help ( "svn_tag" )%></td>
940
                     <td valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Source Path<%=Quick_Help ( "svn_source_path" )%></td>
931
                     <td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">
941
                     <td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">
932
                        <input name="FRpath" type="text" class="form_item" <%=disableCriticalSectionEdit%> id="FRpath" onchange="replace_back_slashes(this);" value="<%=objForm.GetValue( "FRpath", objFormCollector.Item("src_path") )%>" size="60" maxlength="2000">
942
                        <input name="FRpath" type="text" class="form_item" <%=disableCriticalSectionEdit%> id="FRpath" onchange="replace_back_slashes(this);" value="<%=objForm.GetValue( "FRpath", objFormCollector.Item("src_path") )%>" size="60" maxlength="2000">
933
                        <br>
-
 
934
                        Example:<br>MASS_Dev_Infra/core_cs/trunk@12843 <br>
943
                        <br>&nbsp;Example: AUPERASVN01/RepoName/myPackage/trunk<br>
935
                     </td>
944
                     </td>
936
                     <td valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_txt"><%=objForm.Validate ("FRpath")%></td>
945
                     <td valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_txt"><%=objForm.Validate ("FRpath")%></td>
937
                  </tr>
946
                  </tr>
938
                  <%If isWIP Then %>
-
 
939
                  <tr>
947
                  <tr>
940
                     <td>&nbsp;</td>
948
                     <td>&nbsp;</td>
941
                     <td nowrap background="images/bg_form_lightbluedark.gif" class="form_field">WIP Tag</td>
949
                     <td nowrap valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Tag<%=Quick_Help ( "svn_tag" )%></td>
942
                     <td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">
950
                     <td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">
943
                        <%
951
                        <%
944
                        sLabelReadOnly = ""
952
                        sLabelReadOnly = ""
945
                        sDefaultLabel = Default_Label(parPv_id, objFormCollector.Item("build_type"), objFormCollector.Item("pkg_name"), objFormCollector.Item("pkg_version"), objFormCollector.Item("v_ext"))
953
                        sDefaultLabel = Default_Label(parPv_id, objFormCollector.Item("build_type"), objFormCollector.Item("pkg_name"), objFormCollector.Item("pkg_version"), objFormCollector.Item("v_ext"))
946
 
954
 
Line 972... Line 980...
972
                              End If
980
                              End If
973
                              objForm.SetValue "FRlabel", sLabel
981
                              objForm.SetValue "FRlabel", sLabel
974
                           End If
982
                           End If
975
                        End If
983
                        End If
976
                        %>
984
                        %>
-
 
985
 
977
                        <input type="text" name="FRlabel" id="FRlabel" maxlength="50" size="60" class="form_item" <%=disableCriticalSectionEdit%> value="<%=sLabel%>" <%=sLabelReadOnly%>>
986
                        <input type="text" name="FRlabel" id="FRlabel" maxlength="50" size="60" class="form_item" <%=disableCriticalSectionEdit%> onchange="strip_whitespace(this);" value="<%=sLabel%>" <%=sLabelReadOnly%>>
-
 
987
                        <br>&nbsp;Example: myPackage_1.0.0.0000.cr@1234<br>
978
                     </td>
988
                     </td>
979
                     <td valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_txt"><%=objForm.Validate ("FRlabel")%></td>
989
                     <td valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_txt"><%=objForm.Validate ("FRlabel")%></td>
980
                  </tr>
990
                  </tr>
981
                  <%End If%>
-
 
-
 
991
 
982
               <%ElseIf (objFormCollector.Item("vcs_tag") = enum_VCS_CVS_TAG) Then%>
992
               <%ElseIf (objFormCollector.Item("vcs_tag") = enum_VCS_CVS_TAG) Then%>
983
                  <tr>
993
                  <tr>
984
                     <td>&nbsp;</td>
994
                     <td>&nbsp;</td>
985
                     <td nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Label<%=Quick_Help ( "pkg_label" )%></td>
995
                     <td valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Source Path<%=Quick_Help ( "src_path" )%></td>
986
                     <td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">
996
                     <td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">
987
                        <input type="text" name="FRlabel" id="FRlabel" maxlength="50" size="60" class="form_item" <%=disableCriticalSectionEdit%> value="<%=objForm.GetValue( "FRlabel", objFormCollector.Item("pkg_label") )%>" >
997
                        <input name="FRpath" type="text" class="form_item" <%=disableCriticalSectionEdit%> id="FRpath" onchange="replace_back_slashes(this);" value="<%=objForm.GetValue( "FRpath", objFormCollector.Item("src_path") )%>" size="60" maxlength="2000">
-
 
998
                        <br>&nbsp;Example: /MASS_Dev_Infra/core_cs<br>
988
                     </td>
999
                     </td>
989
                     <td valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_txt"><%=objForm.Validate ("FRlabel")%></td>
1000
                     <td valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_txt"><%=objForm.Validate ("FRpath")%></td>
990
                  </tr>
1001
                  </tr>
-
 
1002
 
991
                  <tr>
1003
                  <tr>
992
                     <td>&nbsp;</td>
1004
                     <td>&nbsp;</td>
993
                     <td valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Source Path<%=Quick_Help ( "src_path" )%></td>
1005
                     <td nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Label<%=Quick_Help ( "pkg_label" )%></td>
994
                     <td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">
1006
                     <td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">
995
                        <input name="FRpath" type="text" class="form_item" <%=disableCriticalSectionEdit%> id="FRpath" onchange="replace_back_slashes(this);" value="<%=objForm.GetValue( "FRpath", objFormCollector.Item("src_path") )%>" size="60" maxlength="2000">
1007
                        <input type="text" name="FRlabel" id="FRlabel" maxlength="50" size="60" class="form_item" <%=disableCriticalSectionEdit%> onchange="strip_whitespace(this);" value="<%=objForm.GetValue( "FRlabel", objFormCollector.Item("pkg_label") )%>" >
996
                        <br>
-
 
997
                        Example:<br>/MASS_Dev_Infra/core_cs <br>
-
 
998
                     </td>
1008
                     </td>
999
                     <td valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_txt"><%=objForm.Validate ("FRpath")%></td>
1009
                     <td valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_txt"><%=objForm.Validate ("FRlabel")%></td>
1000
                  </tr>
1010
                  </tr>
-
 
1011
 
1001
               <%ElseIf (objFormCollector.Item("vcs_tag") = enum_VCS_UNCONTROLLED_TAG) Then%>
1012
               <%ElseIf (objFormCollector.Item("vcs_tag") = enum_VCS_UNCONTROLLED_TAG) Then%>
1002
                  <input name="FRlabel" type="hidden" id="FRlabel" value="<%=sLabel%>">
-
 
1003
                  <input name="FRpath"  type="hidden" id="FRpath"  value="<%=objForm.GetValue( "FRpath", objFormCollector.Item("src_path") )%>">
1013
                  <input name="FRpath"  type="hidden" id="FRpath"  value="<%=objForm.GetValue( "FRpath", objFormCollector.Item("src_path") )%>">
-
 
1014
                  <input name="FRlabel" type="hidden" id="FRlabel" value="<%=sLabel%>">
1004
               <%Else%>
1015
               <%Else%>
1005
                  <tr>
1016
                  <tr>
1006
                     <td>&nbsp;</td>
1017
                     <td>&nbsp;</td>
1007
                     <td colspan=3 background="images/bg_form_lightbluedark.gif" class="sublbox_txt">
1018
                     <td colspan=3 background="images/bg_form_lightbluedark.gif" class="sublbox_txt">
1008
                        <span class='err_alert'><b>WARNING:</b> Release Manager Website does not currently support the selected Version Control System</span>
1019
                        <span class='err_alert'><b>WARNING:</b> Release Manager Website does not currently support the selected Version Control System</span>
1009
                     </td>
1020
                     </td>
1010
                  </tr>
1021
                  </tr>
1011
                  <input name="FRlabel" type="hidden" id="FRlabel" value="<%=sLabel%>">
-
 
1012
                  <input name="FRpath"  type="hidden" id="FRpath"  value="<%=objForm.GetValue( "FRpath", objFormCollector.Item("src_path") )%>">
1022
                  <input name="FRpath"  type="hidden" id="FRpath"  value="<%=objForm.GetValue( "FRpath", objFormCollector.Item("src_path") )%>">
-
 
1023
                  <input name="FRlabel" type="hidden" id="FRlabel" value="<%=sLabel%>">
1013
               <%End If%>
1024
               <%End If%>
1014
 
1025
 
1015
               <tr>
1026
               <tr>
1016
                  <td>&nbsp;</td>
1027
                  <td>&nbsp;</td>
1017
                  <td valign="top" background="images/bg_form_lightbluedark.gif" class="form_field">Short Package Description<%=Quick_Help ( "pkg_info_short_desc" )%></td>
1028
                  <td valign="top" background="images/bg_form_lightbluedark.gif" class="form_field">Short Package Description<%=Quick_Help ( "pkg_info_short_desc" )%></td>