##// END OF EJS Templates
Add power monitor
Add power monitor

File last commit:

r369:377c342c10a6
r393:737695221ef9
Show More
pedestal_conf_edit.html
50 lines | 1.6 KiB | text/html | HtmlDjangoLexer
{% extends "dev_conf_edit.html" %}
{% load bootstrap4 %}
{% load static %}
{% block extra-head %}
<style type="text/css">
/* show the move cursor as the user moves the mouse over the panel header.*/
.panel-default { cursor: move; }
</style>
<script src="{% static 'js/jquery-ui.min.js' %}"></script>
{% endblock %}
{% block content %}
<form class="form" method="post">
{% csrf_token %}
{% bootstrap_form form layout='horizontal' size='medium' %}
<div style="clear: both;"></div>
<br>
<div class="pull-right">
<button type="button" class="btn btn-primary" onclick="{% if previous %}window.location.replace('{{ previous }}');{% else %}history.go(-1);{% endif %}">Cancel</button>
<button type="submit" class="btn btn-primary">{{button}}</button>
</div>
</form>
{% endblock %}
{% block extra-js %}
<script type="text/javascript">
$("#id_mode").change(function() {
if ($("#id_mode").val()=="position") {
$("#id_angle").removeAttr('disabled');
$("#id_speed").attr('disabled','disabled');
$("#id_max_value").attr('disabled','disabled');
$("#id_min_value").attr('disabled','disabled');
} else if ($("#id_mode").val()=="speed") {
$("#id_speed").removeAttr('disabled');
$("#id_angle").attr('disabled','disabled');
$("#id_max_value").attr('disabled','disabled');
$("#id_min_value").attr('disabled','disabled');
} else if ($("#id_mode").val()=="table" ) {
$("#id_speed").removeAttr('disabled');
$("#id_angle").removeAttr('disabled');
$("#id_max_value").removeAttr('disabled');
$("#id_min_value").removeAttr('disabled');
}
});
</script>
{% endblock%}