Minor optimisations for training program
This commit is contained in:
parent
571cf9da4a
commit
10c73276d4
|
@ -523,9 +523,6 @@ class Passe(Markdownizable):
|
|||
|
||||
def __str__(self):
|
||||
if self.label:
|
||||
if self.regexp:
|
||||
return f"{self.label} {self.regexp} ({self.number_of_skill} | {self.difficulty})"
|
||||
else:
|
||||
return f"{self.label} ({self.number_of_skill} | {self.difficulty})"
|
||||
else:
|
||||
return f"- ({self.number_of_skill} | {self.difficulty})"
|
||||
|
|
|
@ -19,9 +19,9 @@
|
|||
{% for trainingprogram in trainingprogram_list %}
|
||||
<tr role="row" class="{% cycle 'odd' 'even' %}">
|
||||
<td>{{ trainingprogram.rank }}</td>
|
||||
<td>{{ trainingprogram.passe.label }} {{ trainingprogram.passe.repetition }}</td>
|
||||
<td class="text-center">{{ trainingprogram.passe.number_of_skill}}</td>
|
||||
<td class="text-center">{{ trainingprogram.passe.difficulty }}</td>
|
||||
<td>{{ trainingprogram.passe.label }}</td>
|
||||
<td class="text-center">{{ trainingprogram.number_of_skill}}</td>
|
||||
<td class="text-center">{{ trainingprogram.difficulty }}</td>
|
||||
{% if request.user|has_group:"trainer" %}
|
||||
<td class="text-right p-2">
|
||||
<a href="#" class="up">
|
||||
|
|
Loading…
Reference in New Issue