<script type="text/javascript">
    RED.nodes.registerType('Workouts',{
        category: 'endomondo',
        color: '#00ff00',
        defaults: {
            name: {value:""},
            user: {value:""},
            password: {value:""}
        },
        inputs:1,
        outputs:1,
        icon: "white-globe.png",
        label: function() {
            return this.name || "Workouts";
        }
    });
</script>

<script type="text/x-red" data-template-name="Workouts">
    <div class="form-row">
        <label for="node-input-user"><i class="icon-tag"></i> User</label>
        <input type="text" id="node-input-user">
    </div>
    <div class="form-row">
        <label for="node-input-password"><i class="icon-tag"></i> Password</label>
        <input type="password" id="node-input-password">
    </div>

    <div class="form-row">
        <label for="node-input-name"><i class="icon-tag"></i> Name</label>
        <input type="text" id="node-input-name" placeholder="Name">
    </div>
</script>

<script type="text/x-red" data-help-name="Workouts">
    <p>A node to get workouts from <a href="http://www.endomondo.com">Endomondo</a></p>
</script>

<script type="text/javascript">
    RED.nodes.registerType('Workouts',{
        category: 'function',
        color: '#00ff00',
        defaults: {
            name: {value:""},
            user: {value:""},
            password: {value:""}
        },
        inputs:1,
        outputs:1,
        icon: "white-globe.png",
        label: function() {
            return this.name || "Workouts";
        }
    });
</script>

<script type="text/x-red" data-template-name="Workouts">
    <div class="form-row">
        <label for="node-input-user"><i class="icon-tag"></i> User</label>
        <input type="text" id="node-input-user">
    </div>
    <div class="form-row">
        <label for="node-input-password"><i class="icon-tag"></i> Password</label>
        <input type="password" id="node-input-password">
    </div>

    <div class="form-row">
        <label for="node-input-name"><i class="icon-tag"></i> Name</label>
        <input type="text" id="node-input-name" placeholder="Name">
    </div>
</script>

<script type="text/x-red" data-help-name="Workouts">
    <p>A node to get workouts from <a href="http://www.endomondo.com">Endomondo</a></p>
</script>

Set category again to function
Set category again to function
