allow growth toggle radio buttons, non-functional, just looks
This commit is contained in:
@@ -51,10 +51,26 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<script>console.log( 'set freq to {{bt.freq}}' ); $('#bill-type-freq-{{bt.id}}').val( {{bt.freq}} );</script>
|
<script>$('#bill-type-freq-{{bt.id}}').val( {{bt.freq}} );</script>
|
||||||
<div class="px-0 col-2"><input type="text" class="form-control text-center" id="bill-type-grow-{{bt.id}}"
|
<div class="px-0 col-2">
|
||||||
value="{{'%.2f'|format(bt.ann_growth_min)}} / {{'%.2f'|format(bt.ann_growth_avg)}} / {{'%.2f'|format(bt.ann_growth_max)}}%"
|
<div class="btn-group w-100" role="group">
|
||||||
disabled> </div>
|
<input type="radio" class="btn-check" name="bill-type-growth-{{bt.id}}" id="bill-type-growth-min-{{bt.id}}" autocomplete="off" value=min-g-{{bt.id}}>
|
||||||
|
<label class="btn btn-outline-secondary" for="bill-type-growth-min-{{bt.id}}">
|
||||||
|
{% if bt.ann_growth_min < 10 %} {% endif %}
|
||||||
|
{{'%.2f'|format(bt.ann_growth_min)}}
|
||||||
|
</label>
|
||||||
|
<input type="radio" class="btn-check" name="bill-type-growth-{{bt.id}}" id="bill-type-growth-avg-{{bt.id}}" autocomplete="off" checked value=avg-g-{{bt.id}}>
|
||||||
|
<label class="btn btn-outline-secondary" for="bill-type-growth-avg-{{bt.id}}">
|
||||||
|
{% if bt.ann_growth_avg < 10 %} {% endif %}
|
||||||
|
{{'%.2f'|format(bt.ann_growth_avg)}}
|
||||||
|
</label>
|
||||||
|
<input type="radio" class="btn-check" name="bill-type-growth-{{bt.id}}" id="bill-type-growth-max-{{bt.id}}" autocomplete="off" value=max-g-{{bt.id}}>
|
||||||
|
<label class="btn btn-outline-secondary" for="bill-type-growth-max-{{bt.id}}">
|
||||||
|
{% if bt.ann_growth_max < 10 %} {% endif %}
|
||||||
|
{{'%.2f'|format(bt.ann_growth_max)}}
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<button id="bill-type-chg-{{bt.id}}" class="px-0 col-1 btn btn-success" onClick="StartUpdateBillType( {{bt.id}} )">Change</button>
|
<button id="bill-type-chg-{{bt.id}}" class="px-0 col-1 btn btn-success" onClick="StartUpdateBillType( {{bt.id}} )">Change</button>
|
||||||
<button id="bill-type-del-{{bt.id}}" class="px-0 col-1 btn btn-danger" onClick="DelBillType({{bt.id}})"><span class="bi bi-trash3"> Delete</button>
|
<button id="bill-type-del-{{bt.id}}" class="px-0 col-1 btn btn-danger" onClick="DelBillType({{bt.id}})"><span class="bi bi-trash3"> Delete</button>
|
||||||
<button id="bill-type-save-{{bt.id}}" class="px-0 col-1 btn btn-success d-none" onClick="UpdateBillType( {{bt.id}} )">Save</button>
|
<button id="bill-type-save-{{bt.id}}" class="px-0 col-1 btn btn-success d-none" onClick="UpdateBillType( {{bt.id}} )">Save</button>
|
||||||
|
|||||||
Reference in New Issue
Block a user