Skip to content

Commit

Permalink
Re-order advanced settings
Browse files Browse the repository at this point in the history
  • Loading branch information
benlye committed Nov 27, 2020
1 parent 223a401 commit e8aaa5c
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions octoprint_firmwareupdater/templates/firmwareupdater_settings.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@
</label>
<!-- Pre-flash commandline -->
<div class="control-group">
<label class="control-label">{{ _('Pre-flash command') }}</label>
<label class="control-label">{{ _('Pre-flash system command') }}</label>
<div class="controls">
<label class="checkbox">
<input type="checkbox" data-bind="checked: configEnablePreflashCommandline"> Enabled
Expand All @@ -446,67 +446,67 @@
</div>
<!-- End pre-flash commandline -->

<!-- Post-flash commandline -->
<!-- Pre-flash gcode -->
<div class="control-group">
<label class="control-label">{{ _('Post-flash command') }}</label>
<label class="control-label">{{ _('Pre-flash gcode') }}</label>
<div class="controls">
<label class="checkbox">
<input type="checkbox" data-bind="checked: configEnablePostflashCommandline"> Enabled
<input type="checkbox" data-bind="checked: configEnablePreflashGcode"> Enabled
</label>
<div class="input">
<input type="text" class="input-block-level" data-bind="value: configPostflashCommandline, enable: configEnablePostflashCommandline">
<input type="text" class="input-block-level" data-bind="value: configPreflashGcode, enable: configEnablePreflashGcode">
</div>
<span class="help-block">{{ _('System command line to execute after flashing.') }}</span>
<span class="help-block">{{ _('Gcode commands to run before blashing. <b>Pre-flash gcode commands will only run if the printer is connected.</b> Separate multiple commands with a semi colon.') }}</span>
</div>
</div>
<!-- End post-flash commandline -->
<!-- End pre-flash gcode -->

<!-- Post-flash delay -->
<!-- Pre-flash gcode delay -->
<div class="control-group">
<label class="control-label">{{ _('Post-flash command delay') }}</label>
<label class="control-label">{{ _('Pre-flash gcode delay') }}</label>
<div class="controls">
<label class="checkbox">
<input type="checkbox" data-bind="checked: configEnablePostflashDelay"> Enabled
<input type="checkbox" data-bind="checked: configEnablePreflashDelay"> Enabled
</label>
<div class="input-append">
<input type="number" class="input-mini text-right" step=any min="0" max="180" data-bind="value: configPostflashDelay, enable: configEnablePostflashDelay">
<input type="number" class="input-mini text-right" step=any min="0" max="30" data-bind="value: configPreflashDelay, enable: configEnablePreflashDelay">
<span class="add-on">seconds</span>
</div>
<span class="help-block">{{ _('Give the board time to boot before allowing OctoPrint to reconnect.') }}</span>
<span class="help-block">{{ _('Delay after sending pre-flash gcode. Allows time for code to complete before initiating flash.') }}</span>
</div>
</div>
<!-- End post-flash delay -->
<!-- End pre-flash delay -->

<!-- Pre-flash gcode -->
<!-- Post-flash commandline -->
<div class="control-group">
<label class="control-label">{{ _('Pre-flash gcode') }}</label>
<label class="control-label">{{ _('Post-flash system command') }}</label>
<div class="controls">
<label class="checkbox">
<input type="checkbox" data-bind="checked: configEnablePreflashGcode"> Enabled
<input type="checkbox" data-bind="checked: configEnablePostflashCommandline"> Enabled
</label>
<div class="input">
<input type="text" class="input-block-level" data-bind="value: configPreflashGcode, enable: configEnablePreflashGcode">
<input type="text" class="input-block-level" data-bind="value: configPostflashCommandline, enable: configEnablePostflashCommandline">
</div>
<span class="help-block">{{ _('Gcode commands which will be run before the printer is flashed. <b>Pre-flash Gcode commands will only run if the printer is connected.</b> Separate multiple commands with a semi colon.') }}</span>
<span class="help-block">{{ _('System command line to execute after flashing.') }}</span>
</div>
</div>
<!-- End pre-flash gcode -->
<!-- End post-flash commandline -->

<!-- Pre-flash gcode delay -->
<!-- Post-flash delay -->
<div class="control-group">
<label class="control-label">{{ _('Pre-flash gcode delay') }}</label>
<label class="control-label">{{ _('Post-flash command delay') }}</label>
<div class="controls">
<label class="checkbox">
<input type="checkbox" data-bind="checked: configEnablePreflashDelay"> Enabled
<input type="checkbox" data-bind="checked: configEnablePostflashDelay"> Enabled
</label>
<div class="input-append">
<input type="number" class="input-mini text-right" step=any min="0" max="30" data-bind="value: configPreflashDelay, enable: configEnablePreflashDelay">
<input type="number" class="input-mini text-right" step=any min="0" max="180" data-bind="value: configPostflashDelay, enable: configEnablePostflashDelay">
<span class="add-on">seconds</span>
</div>
<span class="help-block">{{ _('Delay after sending pre-flash gcode. Allows time for code to complete') }}</span>
<span class="help-block">{{ _('Give the board time to boot before allowing OctoPrint to reconnect.') }}</span>
</div>
</div>
<!-- End pre-flash delay -->
<!-- End post-flash delay -->

<!-- Post-flash gcode -->
<div class="control-group">
Expand Down

0 comments on commit e8aaa5c

Please sign in to comment.