28 lines
834 B
HTML
28 lines
834 B
HTML
|
|
<script type="text/javascript">
|
|
RED.nodes.registerType('lower-case-creds',{
|
|
category: 'config',
|
|
color: '#a6bbcf',
|
|
defaults: {
|
|
},
|
|
credentials: {
|
|
username: {type: "text"},
|
|
password: {type: "password"}
|
|
},
|
|
label: function() {
|
|
return this.name||"Config";
|
|
}
|
|
});
|
|
</script>
|
|
|
|
<script type="text/html" data-template-name="lower-case-creds">
|
|
<div class="form-row">
|
|
<label for="node-input-mydb"><i class="fa fa-database"></i>Username</label>
|
|
<input type="text" id="node-config-input-username">
|
|
</div>
|
|
<div class="form-row">
|
|
<label for="node-input-name"><i class="fa fa-tag"></i>Password</label>
|
|
<input type="password" id="node-config-input-password" placeholder="Name">
|
|
</div>
|
|
</script>
|