Skip to content

Commit fc8d0a8

Browse files
Add login dialog
1 parent 8220904 commit fc8d0a8

File tree

4 files changed

+31
-11
lines changed

4 files changed

+31
-11
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"title": "Authenticate to Github",
3+
"buttons": [{
4+
"className": "left cancel",
5+
"id": "cancel",
6+
"text": "Cancel"
7+
}, {
8+
"className": "primary githubaccess-login",
9+
"id": "login",
10+
"text": "Login"
11+
}]
12+
}
File renamed without changes.

GitHubAccess/templates/clone-dialog.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ <h1 class="dialog-title">{{title}}</h1>
1212
</div><br/>
1313
<div class="step1 form-horizontal">
1414
<label>Branch to Clone:</label>
15-
<select style='margin-left: 0;' class='branch-selection'></select><br>
15+
<select class='branch-selection'></select><br>
1616
<input type='text' placeholder='Folder to clone repo to'>
1717
<button class='btn select-folder' data-button-id='select-folder'>Select Folder</button>
1818
</div><br/>
Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,28 @@
1-
<div id="GitHubExtensionDialog" class="github-login-dialog modal" >
1+
<div class="github-access-login modal template" >
22
<div class="modal-header">
3-
<h1 class="dialog-title">GitHub Extension</h1>
3+
<h1 class="dialog-title">{{title}}</h1>
44
</div>
55
<div class="modal-body">
6-
<div class="about-text">
7-
<h3>Please type in your GitHub data:</h3>
6+
<div class="dialog-message">
87
<p>
9-
<span>Username:&nbsp;</span><input id="GitHubExtension-user" type="text">
10-
</p>
11-
<p>
12-
<span>Password:&nbsp;&nbsp;</span><input id="GitHubExtension-pass" type="password">
8+
Please fill in eiter you Username and Password or use an Oauth Token (for info how to generate these please visit <a href="#">this wiki site</a>)
139
</p>
10+
<div class="oauth-auth form-horizontal">
11+
<label for="repo">Oauth Token:</label>
12+
<input type='text' placeholder='Token'>
13+
</div>
14+
<div class="basic-auth form-horizontal">
15+
<label for="repo">Username:</label>
16+
<input type='text' placeholder='Username'>
17+
<label for="repo">Password:</label>
18+
<input type='password' placeholder='Password'>
19+
</div>
20+
<input type="checkbox" name="remember" value="Remember login">
1421
</div>
1522
</div>
1623
<div class="modal-footer">
17-
<button class="dialog-button btn left" data-button-id="cancel">{{CANCEL}}</button>
18-
<button class="dialog-button btn primary" disabled data-button-id="login">Login</button>
24+
{{#buttons}}
25+
<button class="dialog-button btn {{className}}" data-button-id="{{id}}">{{{text}}}</button>
26+
{{/buttons}}
1927
</div>
2028
</div>

0 commit comments

Comments
 (0)