-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure_does_group_exist.html
47 lines (46 loc) · 1.76 KB
/
azure_does_group_exist.html
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
36
37
38
39
40
41
42
43
44
45
46
47
<script type="text/javascript">
RED.nodes.registerType('azure_does_group_exist',{
category: 'authomize_azure',
color: '#a6bbcf',
defaults: {
name: {value:""},
auth: { type: 'azure_config', required: true },
groupName: { value: '', required: true },
groupNameType: {value: ''},
},
inputs: 1,
outputs: 2,
icon: "switch.png",
label: function() {
return this.name || "azure_does_group_exist";
},
oneditprepare: function () {
$("#node-input-groupName").typedInput({
type: "msg",
types: ["msg", "flow", "global", "str"],
typeField: "#node-input-groupNameType"
});
},
});
</script>
<script type="text/html" data-template-name="azure_does_group_exist">
<div class="form-row">
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
<div class="form-row">
<label for="node-input-auth"><i class="fa fa-cogs"></i> AzureAD Credentials</label>
<input type="text" id="node-input-auth" placeholder="auth">
</div>
<div class="form-row">
<label for="node-input-groupName">
<i class="fa fa-user"></i> Group Name
</label>
<input type="text" id="node-input-groupName" placeholder="Enter the group name">
<input type="hidden" id="node-input-groupNameType" />
</div>
</script>
<script type="text/html" data-help-name="azure_does_group_exist">
<p>Checks if a group exists in Azure AD</p>
<p>Returns the group id as msg.groupId</p>
</script>