Commit 8c2b8ad3 authored by Alain Takoudjou's avatar Alain Takoudjou

Fix bug: Can't do git clone with https without password

parent a29d70cc
...@@ -183,6 +183,15 @@ body { ...@@ -183,6 +183,15 @@ body {
color: #19485C; color: #19485C;
} }
.form-elt{
min-width: 100px;
display: block;
float:left;
margin-top: 10px;
margin-right: 10px;
line-height: 22px;
}
.main_foot{ .main_foot{
height: 15px; height: 15px;
background: url(../images/main_bottom.png) no-repeat; background: url(../images/main_bottom.png) no-repeat;
......
...@@ -115,9 +115,6 @@ $(document).ready(function () { ...@@ -115,9 +115,6 @@ $(document).ready(function () {
$("#error").Popup("Please enter your password", {type: 'alert', duration: 3000}); $("#error").Popup("Please enter your password", {type: 'alert', duration: 3000});
return false; return false;
} }
} else if (repo_url.indexOf("https://") !== -1) {
$("#error").Popup("Please select HTTPS Security Mode for this repository", {type: 'alert', duration: 3000});
return false;
} }
$("#imgwaitting").fadeIn('normal'); $("#imgwaitting").fadeIn('normal');
$("#clone").empty(); $("#clone").empty();
......
...@@ -20,22 +20,25 @@ ...@@ -20,22 +20,25 @@
</ul><!-- //Tab buttons --> </ul><!-- //Tab buttons -->
<div class="tabDetails"> <div class="tabDetails">
<div id="tab1" class="tabContents"> <div id="tab1" class="tabContents">
<h2>Repository Informations</h2>
<br/>
<div id="repository" style="margin-left:40px;"> <div id="repository" style="margin-left:40px;">
<label for='name'>Project name: </label> <div class='form-elt'><label for='name'>Project name: </label></div>
<input type="text" name="name" id="name" size='20' value="slapos" /> <div class='form-elt'><input type="text" name="name" id="name" size='20' value="slapos" /></div>
<label for='repo'>&nbsp;url: &nbsp;&nbsp;</label> <div class='form-elt'><label for='repo'>&nbsp;Project URL: &nbsp;&nbsp;</label></div>
<input type="text" name="repo" id="repo" size='25' value="http://git.erp5.org/repos/slapos.git" /><br/> <div class='form-elt'><input type="text" name="repo" id="repo" size='25' value="http://git.erp5.org/repos/slapos.git" /></div>
<label for='user'>Your name: &nbsp;&nbsp;&nbsp;</label> <div class='clear'></div>
<input type="text" name="user" id="user" size='20' value="{{name}}" /> <div class='form-elt'><label for='user'>Your name: &nbsp;&nbsp;&nbsp;</label></div>
<label for='email'>Email: </label> <div class='form-elt'><input type="text" name="user" id="user" size='20' value="{{name}}" /></div>
<input type="text" name="email" id="email" size='25' value="{% if not email %}Enter your email address...{% else %}{{email}}{%endif%}" /> <div class='form-elt'><label for='email'>Your Email: </label></div>
<input type="hidden" name="workdir" id="workdir" value="{{workDir}}" /> <div class='form-elt'><input type="text" name="email" id="email" size='25' value="{% if not email %}Enter your email address...{% else %}{{email}}{%endif%}" /></div>
<button class="button" id="clone">clone</button> <button class="button" id="clone">clone</button>
<img class="waitting" id="imgwaitting" src="{{ url_for('static', filename='images/waiting.gif') }}" alt="" /> <img class="waitting" id="imgwaitting" src="{{ url_for('static', filename='images/waiting.gif') }}" alt="" />
<br/><br/> <div class='clear'></div><br/>
<input type="hidden" name="workdir" id="workdir" value="{{workDir}}" />
</div> </div>
<br/> <br/>
<h2>Set your Security Mode</h2> <h2>Security Mode [Optional]</h2>
<div class="menu-box-right"> <div class="menu-box-right">
<div style="background:#fff; padding:10px; min-height:100px; font-size:14px;"> <div style="background:#fff; padding:10px; min-height:100px; font-size:14px;">
<div id="box0"> <div id="box0">
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment