-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathgit-nodes-config.html
More file actions
35 lines (34 loc) · 1.35 KB
/
git-nodes-config.html
File metadata and controls
35 lines (34 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<script type="text/javascript">
RED.nodes.registerType('git-nodes-config',{
category: 'config',
defaults: {
name: {value:""},
git: {value: ""}
},
credentials: {
username: {type:"text"},
useremail: {type:"text"}
},
label: function() {
return this.name;
}
});
</script>
<script type="text/x-red" data-template-name="git-nodes-config">
<div class="form-row">
<label for="node-config-input-name" style="width:150px;"><i class="fa fa-tag"></i> Name</label>
<input type="text" id="node-config-input-name" style='width:60%;'>
</div>
<div class="form-row">
<label for="node-config-input-git" style="width:150px;"><i class="fa fa-code-fork"></i> git repository (ssh)</label>
<input type="text" id="node-config-input-git" style='width:60%;' placeholder="git@github.com:{user-name}/{repository-name}.git">
</div>
<div class="form-row">
<label for="node-config-input-username" style="width:150px;"><i class="fa fa-user-o"></i> user.name</label>
<input type="text" id="node-config-input-username" style='width:60%;'>
</div>
<div class="form-row">
<label for="node-config-input-useremail" style="width:150px;"><i class="fa fa-envelope-o"></i> user.email</label>
<input type="text" id="node-config-input-useremail" style='width:60%;'>
</div>
</script>