Browse Source

Fix description obligatoire

squash_migration
Gabriel Detraz 8 years ago
committed by root
parent
commit
377670a656
  1. 20
      preferences/migrations/0029_auto_20180318_0213.py
  2. 5
      preferences/models.py
  3. 12
      preferences/templates/preferences/display_preferences.html

20
preferences/migrations/0029_auto_20180318_0213.py

@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2018-03-18 01:13
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('preferences', '0028_assooption_description'),
]
operations = [
migrations.AlterField(
model_name='assooption',
name='description',
field=models.TextField(blank=True, null=True),
),
]

5
preferences/models.py

@ -561,7 +561,10 @@ class AssoOption(PreferencesModel):
null=True,
blank=True,
)
description = models.TextField(default="")
description = models.TextField(
null=True,
blank=True,
)
class Meta:
permissions = (

12
preferences/templates/preferences/display_preferences.html

@ -57,10 +57,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<th>Creations de clubs par tous</th>
<td>{{ useroptions.all_can_create_club }}</td>
</tr>
<tr>
<th>Auto inscription</th>
<td>{{ useroptions.self_adhesion }}</td>
</tr>
{% if useroptions.user_solde %}
<tr>
<th>Solde maximum</th>
@ -69,6 +65,10 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<td>{{ useroptions.min_online_payment }}</td>
</tr>
{% endif %}
<tr>
<th>Auto inscription</th>
<td>{{ useroptions.self_adhesion }}</td>
</tr>
</table>
<h4>Préférences machines</h4>
<a class="btn btn-primary btn-sm" role="button" href="{% url 'preferences:edit-options' 'OptionalMachine' %}">
@ -185,7 +185,9 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<td>{{ assooptions.utilisateur_asso }}</td>
<th>Moyen de paiement automatique</th>
<td>{{ assooptions.payment }}</td>
<th>Description de l'association</th>
</tr>
<tr>
<th>Description de l'association</th>
<td>{{ assooptions.description }}</td>
</tr>

Loading…
Cancel
Save