node-red-contrib-opentext
Version:
node-red-contrib-opentext - An Opentext Core client
64 lines (56 loc) • 2.36 kB
HTML
<script type="text/html" data-template-name="download">
<!-- node-input-name -->
<div class="form-row">
<label for="node-input-name"><i class="fa fa-tag"></i> <span data-i18n="download.label.name"></span></label>
<input type="text" id="node-input-name" data-i18n="[placeholder]download.placeholder.name" style="width:60%;">
</div>
<!-- node-base_url -->
<div class="form-row" id="node-base_url">
<label for="node-input-base_url"><i class="fa fa-link fa-fw"></i> <span data-i18n="download.label.base_url"></span></label>
<input type="text" id="node-input-base_url" data-i18n="[placeholder]download.placeholder.base_url" style="width:60%;">
</div>
<!-- node file_name -->
<div class="form-row" id="node-file_name">
<label for="node-input-file_name"><i class="fa fa-tag fa-fw"></i> <span data-i18n="download.label.file_name"></span></label>
<input type="text" id="node-input-file_name" data-i18n="[placeholder]download.placeholder.file_name" style="width:60%;">
</div>
<!-- node-value -->
<div class="form-row" id="node-value">
<label for="node-input-value"><i class="fa fa-user fa-fw"></i> <span data-i18n="download.label.value"></span></label>
<input type="text" id="node-input-value" data-i18n="[placeholder]download.placeholder.value" style="width:60%;">
</div>
<!-- node-type -->
<div class="form-row" id="node-contenttype">
<label for="node-input-contenttype"><i class="fa fa-envelope fa-fw"></i> <span data-i18n="download.label.type"></span></label>
<input type="email" id="node-input-contenttype" data-i18n="[placeholder]download.placeholder.type" style="width:60%;">
</div>
</script>
<!-- text/javascript -->
<script type="text/javascript">
(function() {
RED.nodes.registerType("download", {
category: 'opentext',
color: "#E1E8F6",
defaults: {
name: {value: ""},
base_url: {value: ""},
value: {value: ""},
type: {value: ""},
to_name: {value: ""},
to_email: {value: ""},
email_subject: {value: ""},
email_message: {value: ""},
},
inputs: 1,
outputs: 1,
icon: "download.png",
align: "right",
label: function () {
return this.name || this._("download.download");
},
labelStyle: function () {
return this.name ? "node_label_italic" : "";
},
});
})();
</script>