Subversion Repositories DevTools

Rev

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

Rev 5957 Rev 6300
Line 758... Line 758...
758
{
758
{
759
    document.MM_returnValue = true;
759
    document.MM_returnValue = true;
760
    document.MM_error = "";
760
    document.MM_error = "";
761
 
761
 
762
    e = MM_findObj('FRpath');
762
    e = MM_findObj('FRpath');
763
    if ( e.value.length )
763
    if ( e.value.length ) {
764
        MM_validateForm('--Silent','--NoPrefix','FRpath','Source Path','RisSVNPath');
764
        MM_validateForm('--Silent','--NoPrefix','FRpath','Source Path','RisSVNPath');
-
 
765
        if ( !document.MM_error ) {
-
 
766
            if ( e.value.indexOf('AUPERASVN0X/') != -1 ||   e.value.indexOf('/RepoName/') != -1 ) {
-
 
767
                document.MM_error = "Example path cannot be used";
-
 
768
                document.MM_returnValue = false;
-
 
769
            }
-
 
770
        }
-
 
771
    }
765
 
772
 
766
    bPathOk = document.MM_returnValue;
773
    bPathOk = document.MM_returnValue;
767
    setIdText('svnPathErr',document.MM_error);
774
    setIdText('svnPathErr',document.MM_error);
768
    parent.resizeIframe(); 
775
    parent.resizeIframe(); 
769
}
776
}
Line 926... Line 933...
926
 
933
 
927
                  <tr>
934
                  <tr>
928
                     <td valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Source Path<%=Quick_Help ( "src_path" )%></td>
935
                     <td valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Source Path<%=Quick_Help ( "src_path" )%></td>
929
                     <td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">
936
                     <td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">
930
                        <input name="FRpath" type="text" class="form_item" <%=disableCriticalSectionEdit%> id="FRpath" onchange="replace_back_slashes(this);validateCCPath();" value="<%=objForm.GetValue( "FRpath", objFormCollector.Item("src_path") )%>" size="60" maxlength="2000">
937
                        <input name="FRpath" type="text" class="form_item" <%=disableCriticalSectionEdit%> id="FRpath" onchange="replace_back_slashes(this);validateCCPath();" value="<%=objForm.GetValue( "FRpath", objFormCollector.Item("src_path") )%>" size="60" maxlength="2000">
931
                        <br>&nbsp;Example: /MASS_Dev_Infra/core_cs <br>
938
                        <br>&nbsp;Example: /MASS_Dev_Infra/<%=objFormCollector.Item("pkg_name")%> <br>
932
                        <span class='val_err' id=ccPathErr style='display:none'></span>
939
                        <span class='val_err' id=ccPathErr style='display:none'></span>
933
                     </td>
940
                     </td>
934
                  </tr>
941
                  </tr>
935
               
942
               
936
                  <tr>
943
                  <tr>
Line 969... Line 976...
969
                              objForm.SetValue "FRlabel", sLabel
976
                              objForm.SetValue "FRlabel", sLabel
970
                           End If
977
                           End If
971
                        End If
978
                        End If
972
                        %>
979
                        %>
973
                        <input type="text" name="FRlabel" id="FRlabel" maxlength="50" size="60" class="form_item" <%=disableCriticalSectionEdit%> onchange="strip_whitespace(this);validateCCLabel();" value="<%=sLabel%>" <%=sLabelReadOnly%>>
980
                        <input type="text" name="FRlabel" id="FRlabel" maxlength="50" size="60" class="form_item" <%=disableCriticalSectionEdit%> onchange="strip_whitespace(this);validateCCLabel();" value="<%=sLabel%>" <%=sLabelReadOnly%>>
974
                        <br>&nbsp;Example: core_cs_1.0.0000.cr<br>
981
                        <br>&nbsp;Example: <%=objFormCollector.Item("pkg_name")%>_1.0.0000.cr.WIP<br>
975
                        <span class='val_err' id=ccLabelErr style='display:none'></span>
982
                        <span class='val_err' id=ccLabelErr style='display:none'></span>
976
                     </td>
983
                     </td>
977
                  </tr>
984
                  </tr>
978
 
985
 
979
               <%ElseIf (objFormCollector.Item("vcs_tag") = enum_VCS_SUBVERSION_TAG) Then%>
986
               <%ElseIf (objFormCollector.Item("vcs_tag") = enum_VCS_SUBVERSION_TAG) Then%>
980
                  <tr>
987
                  <tr>
981
                     <td valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Source Path<%=Quick_Help ( "svn_source_path" )%></td>
988
                     <td valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Source Path<%=Quick_Help ( "svn_source_path" )%></td>
982
                     <td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">
989
                     <td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">
983
                        <input name="FRpath" type="text" class="form_item" <%=disableCriticalSectionEdit%> id="FRpath" onchange="replace_back_slashes(this);validateSvnPath();" value="<%=objForm.GetValue( "FRpath", objFormCollector.Item("src_path") )%>" size="60" maxlength="2000">
990
                        <input name="FRpath" type="text" class="form_item" <%=disableCriticalSectionEdit%> id="FRpath" onchange="replace_back_slashes(this);validateSvnPath();" value="<%=objForm.GetValue( "FRpath", objFormCollector.Item("src_path") )%>" size="60" maxlength="2000">
-
 
991
                        <table class="form_txt">
-
 
992
                            <tr>
-
 
993
                            <td>Example:</td>
984
                        <br>&nbsp;Example: AUPERASVN01/RepoName/myPackage/trunk<br>
994
                            <td>AUPERASVN0X/RepoName/<%=objFormCollector.Item("pkg_name")%>/trunk</td>
-
 
995
                            </tr>
-
 
996
                        </table>
985
                        <span class='val_err' id=svnPathErr style='display:none'></span>
997
                        <span class='val_err' id=svnPathErr style='display:none'></span>
986
                     </td>
998
                     </td>
987
                  </tr>
999
                  </tr>
988
                  <tr>
1000
                  <tr>
989
                     <td nowrap valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Tag<%=Quick_Help ( "svn_tag" )%></td>
1001
                     <td nowrap valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Tag<%=Quick_Help ( "svn_tag" )%></td>
Line 1024... Line 1036...
1024
                        %>
1036
                        %>
1025
 
1037
 
1026
                        <input type="text" name="FRlabel" id="FRlabel" maxlength="120" size="60" class="form_item" <%=disableCriticalSectionEdit%> onchange="strip_whitespace(this);validateSvnTag();" value="<%=sLabel%>" <%=sLabelReadOnly%>>
1038
                        <input type="text" name="FRlabel" id="FRlabel" maxlength="120" size="60" class="form_item" <%=disableCriticalSectionEdit%> onchange="strip_whitespace(this);validateSvnTag();" value="<%=sLabel%>" <%=sLabelReadOnly%>>
1027
                        <%
1039
                        <%
1028
                        If objFormCollector.Item("build_type") = "M" Then
1040
                        If objFormCollector.Item("build_type") = "M" Then
1029
                            %> <br>&nbsp;Example: <%=sDefaultLabel%>@1234<br> <%
1041
                            sDefaultLabel = sDefaultLabel & "@1234"
1030
                        Else
1042
                        Else
1031
                            %> <br>&nbsp;Example: <%=sDefaultLabel%>[@1234]<br> <%
1043
                            sDefaultLabel = sDefaultLabel & "[@1234]"
1032
                        End If
1044
                        End If
1033
                        %>
1045
                        %>
-
 
1046
                        <table class="form_txt">
-
 
1047
                            <tr>
-
 
1048
                            <td>Example:</td>
-
 
1049
                            <td><%=sDefaultLabel%></td>
-
 
1050
                            </tr>
-
 
1051
                        </table>
1034
                        <span class='val_err' id=svnTagErr style='display:none'></span>
1052
                        <span class='val_err' id=svnTagErr style='display:none'></span>
1035
                     </td>
1053
                     </td>
1036
                  </tr>
1054
                  </tr>
1037
 
1055
 
1038
               <%ElseIf (objFormCollector.Item("vcs_tag") = enum_VCS_CVS_TAG) Then%>
1056
               <%ElseIf (objFormCollector.Item("vcs_tag") = enum_VCS_CVS_TAG) Then%>
1039
                  <tr>
1057
                  <tr>
1040
                     <td valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Source Path<%=Quick_Help ( "src_path" )%></td>
1058
                     <td valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Source Path<%=Quick_Help ( "src_path" )%></td>
1041
                     <td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">
1059
                     <td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">
1042
                        <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">
1060
                        <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">
1043
                        <br>&nbsp;Example: /MASS_Dev_Infra/core_cs<br>
1061
                        <br>&nbsp;Example: /MASS_Dev_Infra/<%=objFormCollector.Item("pkg_name")%><br>
1044
                     </td>
1062
                     </td>
1045
                  </tr>
1063
                  </tr>
1046
 
1064
 
1047
                  <tr>
1065
                  <tr>
1048
                     <td nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Label<%=Quick_Help ( "pkg_label" )%></td>
1066
                     <td nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Label<%=Quick_Help ( "pkg_label" )%></td>