8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-22 11:23:10 +00:00

Fix description obligatoire

This commit is contained in:
Gabriel Detraz 2018-03-18 02:14:45 +01:00 committed by root
parent d9c68e0978
commit 377670a656
3 changed files with 31 additions and 6 deletions

View file

@ -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),
),
]

View file

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

View file

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