/** * Small Shutter * * @param unique id for this widget * @param name of the shutter * @param a gad/item for long move * @param a gad/item for short move * @param a gad/item for the actual position */ {% macro smallshut(id, txt, gad_move, gad_stop, gad_position) %} {% import "basic.html" as basic %} {% set uid = uid(page, id) %} /** Design */
{% if txt %} {{ txt }} {% endif %} | {% if gad_move %} {{ basic.button(id~'up', gad_move, '', 'arrow-u', '1', 'micro') }} {% endif %} | {% if gad_stop %} {{ basic.button(id~'stop', gad_stop, '', icon0~'audio_stop.png', '1', 'micro') }} {% endif %} | {% if gad_move %} {{ basic.button(id~'down', gad_move, '', 'arrow-d', '0', 'micro') }} {% endif %} | {{ basic.formula(id~'position', '', gad_position, 'percent', '( VAR )') }} |
---|