fix boat damage show
This commit is contained in:
		@@ -57,10 +57,10 @@
 | 
			
		||||
        {% if boatdamage.fixed_at %}
 | 
			
		||||
          <small class="block text-gray-600 dark:text-gray-100">Repariert von {{ boatdamage.user_fixed.name }} am/um {{ boatdamage.fixed_at | date(format='%d.%m.%Y (%H:%M)') }}</small>
 | 
			
		||||
        {% else %}
 | 
			
		||||
          {% if "cox" in loggedin_user.roles %}
 | 
			
		||||
          {% if loggedin_user and "cox" in loggedin_user.roles %}
 | 
			
		||||
            <form action="/boatdamage/{{ boatdamage.id }}/fixed" method="post" class="flex justify-between mt-3">
 | 
			
		||||
              <input type="text" name="desc" value="{{ boatdamage.desc }}" class="grow input rounded-s" />
 | 
			
		||||
              {% if "tech" in loggedin_user.roles %}
 | 
			
		||||
              {% if loggedin_user and "tech" in loggedin_user.roles %}
 | 
			
		||||
                <input type="submit" class="btn btn-primary" style="border-top-left-radius: 0; border-bottom-left-radius: 0;" value="Repariert und verifiziert" />
 | 
			
		||||
              {% else %}
 | 
			
		||||
                <input type="submit" class="btn btn-primary" style="border-top-left-radius: 0; border-bottom-left-radius: 0;" value="Repariert" />
 | 
			
		||||
@@ -72,7 +72,7 @@
 | 
			
		||||
        {% if boatdamage.verified_at %}
 | 
			
		||||
          <small class="block text-gray-600 dark:text-gray-100">Verifziert von {{ boatdamage.user_verified.name }} am/um {{ boatdamage.verified_at | date(format='%d.%m.%Y (%H:%M)') }}</small>
 | 
			
		||||
        {% else %}
 | 
			
		||||
          {% if "tech" in loggedin_user.roles and boatdamage.fixed_at  %}
 | 
			
		||||
          {% if loggedin_user and "tech" in loggedin_user.roles and boatdamage.fixed_at  %}
 | 
			
		||||
            <form action="/boatdamage/{{ boatdamage.id }}/verified" method="post" class="flex justify-between mt-3">
 | 
			
		||||
              <input type="text" name="desc" value="{{ boatdamage.desc }}" class="grow input rounded-s"/>
 | 
			
		||||
              <input type="submit" class="btn btn-dark" style="border-top-left-radius: 0; border-bottom-left-radius: 0;"  value="Verifiziert" />
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user