htdocs/assets/templates/admin.html
<form method="post" id="admin-form">
<ul class="nav nav-tabs" role="tablist">
<li role="presentation" class="active"><a href="#announce" role="tab" data-toggle="tab">Announcement</a></li>
<li role="presentation"><a href="#core" role="tab" data-toggle="tab">Core</a></li>
<li role="presentation"><a href="#email" role="tab" data-toggle="tab">Email</a></li>
</ul>
<div class="tab-content">
<div role="tabpanel" class="tab-pane active" id="announce">
<div class="form-group col-xs-12">
<label for="announcement">Announcement <span class="glyphicon glyphicon-question-sign" data-toggle="tooltip" title="A message to display on the index page"></span></label><br />
<textarea class="form-control" name="announcement">{{announcement}}</textarea>
</div>
</div>
<div role="tabpanel" class="tab-pane" id="core">
<div class="form-group col-xs-6 col-md-3">
<label for="timezone">Timezone Select <span class="glyphicon glyphicon-question-sign" data-toggle="tooltip" title="Timezone to display dates in."></span></label><br />
<select class="form-control" name="timezone">
{{#each timezones}}
<option value="{{ this }}" {{#ifeq ../timezone this }}selected{{/ifeq}}>{{ this }}</option>
{{/each}}
</select>
</div>
<div class="form-group col-xs-6 col-md-3">
<label for="cron_enabled">Scheduler <span class="glyphicon glyphicon-question-sign" data-toggle="tooltip" title="Toggles the 411 Scheduler, which is responsible for scheduling jobs."></span></label><br />
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-primary {{#if cron_enabled}}active{{/if}}">
<input type="checkbox" autocomplete="off" name="cron_enabled" value="on" {{#if cron_enabled}}checked{{/if}} />
<span class="glyphicon glyphicon-off"></span> Enable
</label>
</div>
</div>
<div class="form-group col-xs-6 col-md-3">
<label for="worker_enabled">Worker <span class="glyphicon glyphicon-question-sign" data-toggle="tooltip" title="Toggles the 411 Worker, which is responsible for executing jobs."></span></label><br />
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-primary {{#if worker_enabled}}active{{/if}}">
<input type="checkbox" autocomplete="off" name="worker_enabled" value="on" {{#if worker_enabled}}checked{{/if}} />
<span class="glyphicon glyphicon-off"></span> Enable
</label>
</div>
</div>
<div class="form-group col-xs-6 col-md-3">
<label for="summary_enabled">Weekly Summary <span class="glyphicon glyphicon-question-sign" data-toggle="tooltip" title="Toggles the weekly summary email that gets sent at the end of each week."></span></label><br />
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-primary {{#if summary_enabled}}active{{/if}}">
<input type="checkbox" autocomplete="off" name="summary_enabled" value="on" {{#if summary_enabled}}checked{{/if}} />
<span class="glyphicon glyphicon-off"></span> Enable
</label>
</div>
</div>
</div>
<div role="tabpanel" class="tab-pane" id="email">
<div class="form-group col-xs-6 col-md-4">
<label for="error_email_enabled">Error Email <span class="glyphicon glyphicon-question-sign" data-toggle="tooltip" title="Toggles the sending of notification emails when a Search is failing."></span></label><br />
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-primary {{#if error_email_enabled}}active{{/if}}">
<input type="checkbox" autocomplete="off" name="error_email_enabled" value="on" {{#if error_email_enabled}}checked{{/if}} />
<span class="glyphicon glyphicon-off"></span> Enable
</label>
</div>
</div>
<div class="form-group col-xs-12 col-md-4">
<label for="error_email_throttle">Error Email Rate <span class="glyphicon glyphicon-question-sign" data-toggle="tooltip" title="Throttles Error Emails to the specified value."></span></label>
<div class="input-group">
<input type="number" class="form-control" name="error_email_throttle" value="{{ error_email_throttle }}" />
<span class="input-group-addon">Minutes</span>
</div>
</div>
<div class="form-group col-xs-12 col-md-4">
<label for="default_email">Default Email <span class="glyphicon glyphicon-question-sign" data-toggle="tooltip" title="Specifies the default email address to send Alert notifications to."></span></label>
<input type="text" class="form-control" name="default_email" value="{{ default_email }}" />
</div>
<div class="form-group col-xs-12 col-md-4">
<label for="from_email">From Email <span class="glyphicon glyphicon-question-sign" data-toggle="tooltip" title="Specifies the from email for emails from 411."></span></label>
<input type="text" class="form-control" name="from_email" value="{{ from_email }}" />
</div>
<div class="form-group col-xs-12 col-md-4">
<label for="from_error_email">From Error Email <span class="glyphicon glyphicon-question-sign" data-toggle="tooltip" title="Specifies the from email for error emails from 411."></span></label>
<input type="text" class="form-control" name="from_error_email" value="{{ from_error_email }}" />
</div>
</div>
</div>
<div class="col-xs-12">
<div class="well text-right">
<button class="btn btn-success" type="submit" id="save-button"><span class="glyphicon glyphicon-floppy-disk"></span> Save</button>
</div>
</div>
</form>