mirror of
				https://gitlab.crans.org/bde/nk20
				synced 2025-11-04 01:12:08 +01:00 
			
		
		
		
	Fix minor front bugs
This commit is contained in:
		
				
					committed by
					
						
						Bombar Maxime
					
				
			
			
				
	
			
			
			
						parent
						
							dac14b13df
						
					
				
				
					commit
					7313e5a337
				
			@@ -121,11 +121,11 @@
 | 
			
		||||
                        <i class="fa fa-edit"></i> {% trans "Edit" %}
 | 
			
		||||
                    </a>
 | 
			
		||||
                    <div class="btn-group btn-group-toggle float-right" data-toggle="buttons">
 | 
			
		||||
                        <label class="btn btn-sm btn-outline-primary active">
 | 
			
		||||
                        <label for="single_conso" class="btn btn-sm btn-outline-primary active">
 | 
			
		||||
                            <input type="radio" name="conso_type" id="single_conso" checked>
 | 
			
		||||
                            {% trans "Single consumptions" %}
 | 
			
		||||
                        </label>
 | 
			
		||||
                        <label class="btn btn-sm btn-outline-primary">
 | 
			
		||||
                        <label for="double_conso" class="btn btn-sm btn-outline-primary">
 | 
			
		||||
                            <input type="radio" name="conso_type" id="double_conso">
 | 
			
		||||
                            {% trans "Double consumptions" %}
 | 
			
		||||
                        </label>
 | 
			
		||||
 
 | 
			
		||||
@@ -10,19 +10,19 @@ SPDX-License-Identifier: GPL-2.0-or-later
 | 
			
		||||
    <div class="row">
 | 
			
		||||
        <div class="col-xl-12">
 | 
			
		||||
            <div class="btn-group btn-group-toggle" style="width: 100%; padding: 0 0 2em 0" data-toggle="buttons">
 | 
			
		||||
                <label class="btn btn-sm btn-outline-primary active">
 | 
			
		||||
                <label for="type_gift" class="btn btn-sm btn-outline-primary active">
 | 
			
		||||
                    <input type="radio" name="transaction_type" id="type_gift" checked>
 | 
			
		||||
                    {% trans "Gift" %}
 | 
			
		||||
                </label>
 | 
			
		||||
                <label class="btn btn-sm btn-outline-primary">
 | 
			
		||||
                <label for="type_transfer" class="btn btn-sm btn-outline-primary">
 | 
			
		||||
                    <input type="radio" name="transaction_type" id="type_transfer">
 | 
			
		||||
                    {% trans "Transfer" %}
 | 
			
		||||
                </label>
 | 
			
		||||
                <label class="btn btn-sm btn-outline-primary">
 | 
			
		||||
                <label for="type_credit" class="btn btn-sm btn-outline-primary">
 | 
			
		||||
                    <input type="radio" name="transaction_type" id="type_credit">
 | 
			
		||||
                    {% trans "Credit" %}
 | 
			
		||||
                </label>
 | 
			
		||||
                <label class="btn btn-sm btn-outline-primary">
 | 
			
		||||
                <label type="type_debit" class="btn btn-sm btn-outline-primary">
 | 
			
		||||
                    <input type="radio" name="transaction_type" id="type_debit">
 | 
			
		||||
                    {% trans "Debit" %}
 | 
			
		||||
                </label>
 | 
			
		||||
@@ -194,6 +194,16 @@ SPDX-License-Identifier: GPL-2.0-or-later
 | 
			
		||||
 | 
			
		||||
                    return true;
 | 
			
		||||
               });
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
            // Ensure we begin in gift mode. Removing these lines may cause problems when reloading.
 | 
			
		||||
            $("#type_gift").prop('checked', 'true');
 | 
			
		||||
            $("#type_transfer").removeAttr('checked');
 | 
			
		||||
            $("#type_credit").removeAttr('checked');
 | 
			
		||||
            $("#type_debit").removeAttr('checked');
 | 
			
		||||
            $("label[for='type_gift']").attr('class', 'btn btn-sm btn-outline-primary');
 | 
			
		||||
            $("label[for='type_transfer']").attr('class', 'btn btn-sm btn-outline-primary');
 | 
			
		||||
            $("label[for='type_debit']").attr('class', 'btn btn-sm btn-outline-primary');
 | 
			
		||||
        });
 | 
			
		||||
 | 
			
		||||
        $("#type_gift").click(function() {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user