force 2columns in tables
This commit is contained in:
@@ -136,7 +136,7 @@ class Maraude(models.Model):
|
|||||||
return '%(dayname)s %(day)i %(month)s' % {
|
return '%(dayname)s %(day)i %(month)s' % {
|
||||||
'dayname': WEEKDAYS[self.date.weekday()][1], # Retrieve text inside tuple
|
'dayname': WEEKDAYS[self.date.weekday()][1], # Retrieve text inside tuple
|
||||||
'day': self.date.day,
|
'day': self.date.day,
|
||||||
'month': MONTHS[self.date.month][:3] + ".",
|
'month': MONTHS[self.date.month],
|
||||||
}
|
}
|
||||||
|
|
||||||
def est_terminee(self):
|
def est_terminee(self):
|
||||||
|
|||||||
@@ -32,5 +32,5 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% table object_list cols=3 cell_template=table_cell_template %}
|
{% table object_list cols=2 cell_template=table_cell_template %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
{% if object.est_terminee %}<a href="{% url 'notes:details-maraude' object.id %}" class="btn btn-link">
|
{% if object.est_terminee %}<a href="{% url 'notes:details-maraude' object.id %}" class="btn btn-link">
|
||||||
{% else %}<a href="#" class="btn btn-link disabled">{% endif %}{{ object }}</a>
|
{% else %}<a href="#" class="btn btn-link disabled">{% endif %}
|
||||||
<div class="pull-right">
|
{{ object }}
|
||||||
<span class="label label-info">{{ object.binome }} & {{ object.referent }}</span>
|
</a>
|
||||||
{% if object.est_terminee %}<span class="label label-success">{{object.rencontres.count}} rencontres</span>{% endif %}
|
<div class="float-right">
|
||||||
</div>
|
<span class="badge badge-info">{{ object.binome }} & {{ object.referent }}</span>
|
||||||
|
{% if object.est_terminee %}<span class="badge badge-success">
|
||||||
|
{{object.rencontres.count}} rencontres
|
||||||
|
</span>{% endif %}
|
||||||
|
</div>
|
||||||
|
|||||||
@@ -1,4 +1,7 @@
|
|||||||
<a href="{% url 'notes:details-sujet' object.pk %}" class="btn btn-link">{{object}}</a>
|
<a href="{% url 'notes:details-sujet' object.pk %}" class="btn btn-link text-left">
|
||||||
|
<span class="text-muted">{{object.genre}}</span> {{object.nom}} {{object.prenom}}<br />
|
||||||
|
{% if object.surnom %}<span class="text-muted">"{{object.surnom}}"</span>{% endif %}
|
||||||
|
</a>
|
||||||
<div class="float-right">
|
<div class="float-right">
|
||||||
<span class="badge badge-info">{{ object.notes.count }} notes</span>
|
<span class="badge badge-info">{{ object.notes.count }} notes</span>
|
||||||
{% with object.statistiques.info_completed as completed %}
|
{% with object.statistiques.info_completed as completed %}
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
<table class="table table-responsize table-sm table-striped table-borderless shadow">
|
<table class="table table-striped table-borderless shadow">
|
||||||
{% if header %}<tr>
|
{% if header %}<tr>
|
||||||
<th colspan="{{ cols_number }}" class="thead-dark text-center">{{ header }}</th>
|
<th colspan="{{ cols_number }}" class="thead-dark text-center">{{ header }}</th>
|
||||||
</tr>{% endif %}
|
</tr>{% endif %}
|
||||||
{% for row in rows %}<tr class="d-flex justify-content-between">
|
{% for row in rows %}<tr class="d-table-row">
|
||||||
{% for object in row %}<td class="flex-shrink-1">
|
{% for object in row %}<td width="50%" class="d-table-cell">
|
||||||
{% if object %}{% include cell_template with object=object %}{%endif%}
|
{% if object %}{% include cell_template with object=object %}{%endif%}
|
||||||
</td>
|
</td>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|||||||
Reference in New Issue
Block a user