* adds direct object links into mail templates * refactors transferring app-model identification data from fore- to background (celery) properly
		
			
				
	
	
		
			52 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			52 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
{% load i18n %}
 | 
						|
 | 
						|
<div>
 | 
						|
    <h2>{% translate 'Deduction changed' %}</h2>
 | 
						|
    <h4>{{obj.identifier}}</h4>
 | 
						|
    <hr>
 | 
						|
    <article>
 | 
						|
        {% translate 'Hello ' %} {{user.username}},
 | 
						|
        <br>
 | 
						|
        <br>
 | 
						|
        {% translate 'a deduction of this eco account has changed:' %}
 | 
						|
        <br>
 | 
						|
        <a href="{{ obj.get_detail_url_absolute }}"><strong>{{obj.identifier}}</strong></a>
 | 
						|
        <br>
 | 
						|
        <table>
 | 
						|
            <tr>
 | 
						|
               <th scope="col">{% translate 'Attribute' %}</th>
 | 
						|
               <th scope="col">{% translate 'Old' %}</th>
 | 
						|
               <th scope="col">{% translate 'New' %}</th>
 | 
						|
            </tr>
 | 
						|
            <tr>
 | 
						|
                <td>{% translate 'EcoAccount' %}</td>
 | 
						|
                <td>{{data_changes.account.old}}</td>
 | 
						|
                <td>{{data_changes.account.new}}</td>
 | 
						|
            </tr>
 | 
						|
            <tr>
 | 
						|
                <td>{% translate 'Intervention' %}</td>
 | 
						|
                <td>{{data_changes.intervention.old}}</td>
 | 
						|
                <td>{{data_changes.intervention.new}}</td>
 | 
						|
            </tr>
 | 
						|
            <tr>
 | 
						|
                <td>{% translate 'Surface' %}</td>
 | 
						|
                <td>{{data_changes.surface.old}} m²</td>
 | 
						|
                <td>{{data_changes.surface.new}} m²</td>
 | 
						|
            </tr>
 | 
						|
        </table>
 | 
						|
        <br>
 | 
						|
        <br>
 | 
						|
        {% translate 'If this should not have been happened, please contact us. See the signature for details.' %}
 | 
						|
        <br>
 | 
						|
        <br>
 | 
						|
        {% translate 'Best regards' %}
 | 
						|
        <br>
 | 
						|
        KSP
 | 
						|
        <br>
 | 
						|
        <br>
 | 
						|
        <br>
 | 
						|
        {% include 'email/signature.html' %}
 | 
						|
    </article>
 | 
						|
</div>
 | 
						|
 |