Verison 1.0.3 Release
Based on Buildbotics 0.4.14
This commit is contained in:
45
src/pug/templates/modbus-reg-view.pug
Normal file
45
src/pug/templates/modbus-reg-view.pug
Normal file
@@ -0,0 +1,45 @@
|
||||
//-/////////////////////////////////////////////////////////////////////////////
|
||||
//- //
|
||||
//- This file is part of the Buildbotics firmware. //
|
||||
//- //
|
||||
//- Copyright (c) 2015 - 2018, Buildbotics LLC //
|
||||
//- All rights reserved. //
|
||||
//- //
|
||||
//- This file ("the software") is free software: you can redistribute it //
|
||||
//- and/or modify it under the terms of the GNU General Public License, //
|
||||
//- version 2 as published by the Free Software Foundation. You should //
|
||||
//- have received a copy of the GNU General Public License, version 2 //
|
||||
//- along with the software. If not, see <http://www.gnu.org/licenses/>. //
|
||||
//- //
|
||||
//- The software is distributed in the hope that it will be useful, but //
|
||||
//- WITHOUT ANY WARRANTY; without even the implied warranty of //
|
||||
//- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU //
|
||||
//- Lesser General Public License for more details. //
|
||||
//- //
|
||||
//- You should have received a copy of the GNU Lesser General Public //
|
||||
//- License along with the software. If not, see //
|
||||
//- <http://www.gnu.org/licenses/>. //
|
||||
//- //
|
||||
//- For information regarding this software email: //
|
||||
//- "Joseph Coffland" <joseph@buildbotics.com> //
|
||||
//- //
|
||||
//-/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
script#modbus-reg-view-template(type="text/x-template")
|
||||
tr.modbus-reg
|
||||
td.reg-index {{index}}
|
||||
td.reg-type
|
||||
select(v-model="model['reg-type']", @change="change")
|
||||
option(v-for="opt in template['reg-type']['values']", :value="opt")
|
||||
| {{opt}}
|
||||
|
||||
td.reg-addr
|
||||
input(v-model="model['reg-addr']", @change="change", type="text",
|
||||
:min="template['reg-addr'].min", :max="template['reg-addr'].max",
|
||||
pattern="[0-9]*", :disabled="model['reg-type'] == 'disabled'",
|
||||
number)
|
||||
|
||||
td.reg-value
|
||||
input(v-model="model['reg-value']", @change="change", type="text",
|
||||
:min="template['reg-value'].min", :max="template['reg-value'].max",
|
||||
pattern="[0-9]*", :disabled="!has_user_value", number)
|
||||
Reference in New Issue
Block a user