-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings__autoload.tpl
59 lines (55 loc) · 2.38 KB
/
settings__autoload.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{*
* Customer autoload settings page
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* Copyright 2014-2016 Jacques Marneweck. All rights strictly reserved.
*}
{include file="header.tpl" title="Autoload Settings" nav="settings"}
<div>
<h2 class="page-header">Autoload Settings</h2>
</div>
<div>
{include file="_partials/success.tpl"}
{include file="_partials/errors.tpl"}
<form method="post" class="form-horizontal" role="form">
{include file="_partials/csrf.tpl"}
<div class="form-group">
<label for="inputAutoloadType" class="col-sm-2 control-label">Autoload Type</label>
<div class="col-sm-10">
<select name="autoload_type" class="form-control" id="inputAutoloadType">
<option value="percentage"{if $autoload_type eq 'percentage'} selected{/if}>Percentage</option>
<option value="money"{if $autoload_type eq 'money'} selected{/if}>Monetary Value</option>
</select>
</div>
</div>
<div id="percentage">
<div class="form-group">
<label for="inputAutoloadPercentage" class="col-sm-2 control-label">Percentage</label>
<div class="col-sm-10">
<select name="autoload_percentage" class="form-control" id="inputAutoloadPercentage">
{foreach $percentages item=row}
<option value="{$row}"{if $autoload_type eq 'percentage' && $autoload_value eq $row} selected{/if}>{$row}%</option>
{/foreach}
</select>
</div>
</div>
</div>
<div id="monetary">
<div class="form-group">
<label for="inputName" class="col-sm-2 control-label">Monetary Value</label>
<div class="col-sm-10">
<input type="text" name="autoload_monetary_value" class="form-control" id="inputName" placeholder="Enter a monetary value"{if $autoload_type eq 'money'} value="{$autoload_value}"{/if}>
</div>
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button data-disable-with="Processing ..." type="submit" class="btn btn-primary">Update Autoload Settings</button>
</div>
</div>
</form>
</div>
{include file="footer.tpl"}