Add option to allow custom balance amounts and update toggle icon
This commit is contained in:
parent
009040cd3c
commit
5b21ffcde5
@ -649,6 +649,24 @@
|
||||
value="{$_c['minimum_transfer']}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">{Lang::T('Allow Balance Custom
|
||||
Amount')}</label>
|
||||
<div class="col-md-5">
|
||||
<select name="allow_balance_custom" id="allow_balance_custom" class="form-control">
|
||||
<option value="no">
|
||||
{Lang::T('No')}
|
||||
</option>
|
||||
<option value="yes" {if $_c['allow_balance_custom']=='yes' }selected="selected" {/if}>
|
||||
{Lang::T('Yes')}
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
<p class="help-block col-md-4"><small>
|
||||
{Lang::T('Allow Customer buy balance with any amount')}
|
||||
</small>
|
||||
</p>
|
||||
</div>
|
||||
<button class="btn btn-success btn-block" type="submit">
|
||||
{Lang::T('Save Changes')}
|
||||
</button>
|
||||
|
@ -175,24 +175,6 @@
|
||||
extend')}</small>
|
||||
</p>
|
||||
</div>
|
||||
<div class="form-group has-error">
|
||||
<label class="col-md-3 control-label">{Lang::T('Allow Balance Custom
|
||||
Amount')}</label>
|
||||
<div class="col-md-5">
|
||||
<select name="allow_balance_custom" id="allow_balance_custom" class="form-control">
|
||||
<option value="no">
|
||||
{Lang::T('No')}
|
||||
</option>
|
||||
<option value="yes" {if $_c['allow_balance_custom']=='yes' }selected="selected" {/if}>
|
||||
{Lang::T('Yes')}
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
<p class="help-block col-md-4"><small>
|
||||
{Lang::T('Allow Customer buy balance with any amount')}
|
||||
<br>*Please report any issue or bugs</small>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -96,19 +96,19 @@
|
||||
const savedMode = localStorage.getItem('mode');
|
||||
if (savedMode === 'dark') {
|
||||
body.classList.add('dark-mode');
|
||||
toggleIcon.textContent = '🌜';
|
||||
toggleIcon.textContent = '🌞';
|
||||
}
|
||||
|
||||
|
||||
function setMode(mode) {
|
||||
if (mode === 'dark') {
|
||||
body.classList.add('dark-mode');
|
||||
toggleIcon.textContent = '🌜';
|
||||
toggleIcon.textContent = '🌞';
|
||||
} else {
|
||||
body.classList.remove('dark-mode');
|
||||
toggleIcon.textContent = '🌞';
|
||||
toggleIcon.textContent = '🌜';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
toggleIcon.addEventListener('click', () => {
|
||||
if (body.classList.contains('dark-mode')) {
|
||||
setMode('light');
|
||||
|
@ -44,7 +44,7 @@
|
||||
<ul class="nav navbar-nav">
|
||||
<li>
|
||||
<a class="toggle-container" href="#">
|
||||
<i class="toggle-icon" id="toggleIcon">🌞</i>
|
||||
<i class="toggle-icon" id="toggleIcon">🌜</i>
|
||||
</a>
|
||||
</li>
|
||||
<li class="dropdown tasks-menu">
|
||||
|
Loading…
x
Reference in New Issue
Block a user