UNPKG

node-red-contrib-opentext

Version:

node-red-contrib-opentext - An Opentext Core client

64 lines (55 loc) 2.3 kB
<script type="text/html" data-template-name="capture"> <!-- node-input-name --> <div class="form-row"> <label for="node-input-name"><i class="fa fa-tag"></i> <span data-i18n="capture.label.name"></span></label> <input type="text" id="node-input-name" data-i18n="[placeholder]capture.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="capture.label.base_url"></span></label> <input type="text" id="node-input-base_url" data-i18n="[placeholder]capture.placeholder.base_url" style="width:60%;"> </div> <!-- node-doc_id --> <div class="form-row" id="node-doc_id"> <label for="node-input-doc_id"><i class="fa fa-user fa-fw"></i> <span data-i18n="capture.label.doc_id"></span></label> <input type="text" id="node-input-doc_id" data-i18n="[placeholder]capture.placeholder.doc_id" style="width:60%;"> </div> <!-- node-doc_contenttype --> <div class="form-row" id="node-doc_contenttype"> <label for="node-input-doc_contenttype"><i class="fa fa-envelope fa-fw"></i> <span data-i18n="capture.label.doc_contenttype"></span></label> <input type="email" id="node-input-doc_contenttype" data-i18n="[placeholder]capture.placeholder.doc_contenttype" style="width:60%;"> </div> <div class="form-row"> <label for="node-input-output_type"><i class="fa fa-terminal"></i>Output type</label> <select id="node-input-output_type"> <option value="PDF">PDF</option> <option value="TXT">TXT</option> </select> </div> </script> <!-- text/javascript --> <script type="text/javascript"> (function() { RED.nodes.registerType("capture", { category: 'opentext', color: "#E1E8F6", defaults: { name: {value: ""}, base_url: {value: ""}, doc_id: {value: ""}, doc_contenttype: {value: ""}, output_type: { value:"TXT", required: true }, }, inputs: 1, outputs: 1, icon: "sign.png", align: "right", label: function () { return this.name || this._("capture.capture"); }, labelStyle: function () { return this.name ? "node_label_italic" : ""; }, }); })(); </script>