diff options
author | Koren Lev <korenlev@gmail.com> | 2017-07-27 16:42:15 +0300 |
---|---|---|
committer | Koren Lev <korenlev@gmail.com> | 2017-07-27 16:42:15 +0300 |
commit | b88c78e3cf2bef22aa2f1c4d0bf305e303bc15f0 (patch) | |
tree | ffa30a6e1511d72562d8772b8700cda52b2752a1 /ui/imports/ui/components/env-os-api-endpoint-info | |
parent | b70483739d1f6f4f0d31987ed2e4d1e30d71d579 (diff) |
adding calipso ui
Change-Id: Ifa6f63daebb07f45580f747341960e898fdb00c4
Signed-off-by: Koren Lev <korenlev@gmail.com>
Diffstat (limited to 'ui/imports/ui/components/env-os-api-endpoint-info')
-rw-r--r-- | ui/imports/ui/components/env-os-api-endpoint-info/env-os-api-endpoint-info.html | 125 | ||||
-rw-r--r-- | ui/imports/ui/components/env-os-api-endpoint-info/env-os-api-endpoint-info.js | 52 |
2 files changed, 177 insertions, 0 deletions
diff --git a/ui/imports/ui/components/env-os-api-endpoint-info/env-os-api-endpoint-info.html b/ui/imports/ui/components/env-os-api-endpoint-info/env-os-api-endpoint-info.html new file mode 100644 index 0000000..3f35b9a --- /dev/null +++ b/ui/imports/ui/components/env-os-api-endpoint-info/env-os-api-endpoint-info.html @@ -0,0 +1,125 @@ +<!-- +######################################################################################## +# Copyright (c) 2017 Koren Lev (Cisco Systems), Yaron Yogev (Cisco Systems) and others # +# # +# All rights reserved. This program and the accompanying materials # +# are made available under the terms of the Apache License, Version 2.0 # +# which accompanies this distribution, and is available at # +# http://www.apache.org/licenses/LICENSE-2.0 # +######################################################################################## + --> +<template name="EnvOsApiEndpointInfo"> +<div class="form-horizontal"> + <!-- Host --> + <div class="form-group"> + <label for="apiHost" + class="col-sm-2 control-label">API host</label> + + <div class="col-sm-3"> + {{> InputModel(createInputArgs + value=model.host + key="host" + type="text" + disabled=disabled + placeholder="API Host") + }} + </div> + + <div class="col-sm-4"> + <p>This is API server</p> + </div> + </div> + + <!-- Port --> + <div class="form-group"> + <label for="dbPort" + class="col-sm-2 control-label" + >Port</label> + + <div class="col-sm-3"> + {{> InputModel(createInputArgs + value=model.port + key="port" + type="text" + disabled=disabled + placeholder="Port") + }} + </div> + + <div class="col-sm-4"> + <p>This is API port</p> + </div> + </div> + + <div class="form-group"> + <label for="adminToken" + class="col-sm-2 control-label" + >Admin Token</label> + + <div class="col-sm-3"> + {{> InputModel(createInputArgs + value=model.admin_token + key="admin_token" + type="text" + disabled=disabled + placeholder="Admin Token") + }} + </div> + + <div class="col-sm-4"> + <p>This is API admin token</p> + </div> + </div> + + <div class="form-group"> + <label for="Username" + class="col-sm-2 control-label" + >Username</label> + + <div class="col-sm-3"> + {{> InputModel(createInputArgs + value=model.user + key="user" + type="text" + disabled=disabled + placeholder="Username") + }} + </div> + + <div class="col-sm-4"> + <p>This is API user name</p> + </div> + </div> + + <div class="form-group"> + <label for="apiPassword" class="col-sm-2 control-label" + >Password</label> + + <div class="col-sm-3"> + {{> InputModel(createInputArgs + value=model.pwd + key="pwd" + type="password" + disabled=disabled + placeholder="Password") + }} + </div> + + <div class="col-sm-4"> + <p>This is API password</p> + </div> + </div> + + <div class="form-group"> + <div class="col-sm-offset-2 col-sm-2"> + <button type="button" + class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--colored toast">Test connection</button> + </div> + + <div class="col-sm-offset-2 col-sm-10 btn-mgt-5"> + <button type="button" class="mdl-button mdl-js-button btnNext sm-next-button">Next</button> + </div> + + </div> +</div> +</template> diff --git a/ui/imports/ui/components/env-os-api-endpoint-info/env-os-api-endpoint-info.js b/ui/imports/ui/components/env-os-api-endpoint-info/env-os-api-endpoint-info.js new file mode 100644 index 0000000..0f503f1 --- /dev/null +++ b/ui/imports/ui/components/env-os-api-endpoint-info/env-os-api-endpoint-info.js @@ -0,0 +1,52 @@ +///////////////////////////////////////////////////////////////////////////////////////// +// Copyright (c) 2017 Koren Lev (Cisco Systems), Yaron Yogev (Cisco Systems) and others / +// / +// All rights reserved. This program and the accompanying materials / +// are made available under the terms of the Apache License, Version 2.0 / +// which accompanies this distribution, and is available at / +// http://www.apache.org/licenses/LICENSE-2.0 / +///////////////////////////////////////////////////////////////////////////////////////// +/* + * Template Component: EnvOsApiEndpointInfo + */ + +//import { Meteor } from 'meteor/meteor'; +import { Template } from 'meteor/templating'; +//import { ReactiveDict } from 'meteor/reactive-dict'; + +import { createInputArgs } from '/imports/ui/lib/input-model'; + +import './env-os-api-endpoint-info.html'; + +/* + * Lifecycles + */ + +Template.EnvOsApiEndpointInfo.onCreated(function() { +}); + +/* +Template.EnvOsApiEndpointInfo.rendered = function() { +}; +*/ + +/* + * Events + */ + +Template.EnvOsApiEndpointInfo.events({ + 'click .sm-next-button': function () { + let instance = Template.instance(); + instance.data.onNextRequested(); + } +}); + +/* + * Helpers + */ + +Template.EnvOsApiEndpointInfo.helpers({ + createInputArgs: createInputArgs +}); + + |