From 93959c87f4220a6b94cbe116e64fe49c34a21630 Mon Sep 17 00:00:00 2001 From: matthieu Date: Mon, 8 Jan 2018 16:33:50 +0100 Subject: [PATCH 1/2] =?UTF-8?q?Ajout=20d'une=20page=20A=20propos=20pr?= =?UTF-8?q?=C3=A9santant=20l'association,=20re2o=20et=20listant=20c'est=20?= =?UTF-8?q?principaux=20contributeurs.=20Ajout=20d'un=20champ=20descriptio?= =?UTF-8?q?n=20(dans=20les=20parametres=20d'association)=20dans=20l'onglet?= =?UTF-8?q?=20pr=C3=A9f=C3=A9rences.=20issue=20#64?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../migrations/0028_assooption_description.py | 20 ++++++ preferences/models.py | 1 + .../preferences/display_preferences.html | 2 + re2o/templates/re2o/about.html | 62 +++++++++++++++++++ re2o/urls.py | 3 +- re2o/views.py | 11 +++- templates/base.html | 1 + 7 files changed, 98 insertions(+), 2 deletions(-) create mode 100644 preferences/migrations/0028_assooption_description.py create mode 100644 re2o/templates/re2o/about.html diff --git a/preferences/migrations/0028_assooption_description.py b/preferences/migrations/0028_assooption_description.py new file mode 100644 index 00000000..f4f1ccc2 --- /dev/null +++ b/preferences/migrations/0028_assooption_description.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.10.7 on 2018-01-08 14:12 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('preferences', '0027_merge_20180106_2019'), + ] + + operations = [ + migrations.AddField( + model_name='assooption', + name='description', + field=models.TextField(default=''), + ), + ] diff --git a/preferences/models.py b/preferences/models.py index 8dfc4260..ffe3b7f4 100644 --- a/preferences/models.py +++ b/preferences/models.py @@ -436,6 +436,7 @@ class AssoOption(models.Model): blank=True, null=True ) + description = models.TextField(default="") class Meta: permissions = ( diff --git a/preferences/templates/preferences/display_preferences.html b/preferences/templates/preferences/display_preferences.html index 2b1caec8..9df422d7 100644 --- a/preferences/templates/preferences/display_preferences.html +++ b/preferences/templates/preferences/display_preferences.html @@ -159,6 +159,8 @@ with this program; if not, write to the Free Software Foundation, Inc., Objet utilisateur de l'association {{ assooptions.utilisateur_asso }} + Description de l'association + {{ assooptions.description }}

Messages personalisé dans les mails

diff --git a/re2o/templates/re2o/about.html b/re2o/templates/re2o/about.html new file mode 100644 index 00000000..0d631d4a --- /dev/null +++ b/re2o/templates/re2o/about.html @@ -0,0 +1,62 @@ +{% extends "re2o/sidebar.html" %} +{% comment %} +Re2o est un logiciel d'administration développé initiallement au rezometz. Il +se veut agnostique au réseau considéré, de manière à être installable en +quelques clics. + +Copyright © 2017 Gabriel Détraz +Copyright © 2017 Goulven Kermarec +Copyright © 2017 Augustin Lemesle + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License along +with this program; if not, write to the Free Software Foundation, Inc., +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +{% endcomment %} + +{% load bootstrap3 %} + +{% block title %}Historique{% endblock %} + +{% block content %} +

À propos de {{AssoName}}

+ {{ description }} +

À propos de Re2o

+

Re2o est un logiciel d'administration développé initiallement au rezometz. Il +se veut agnostique au réseau considéré, de manière à être installable en +quelques clics. +

+

Liste des contributeurs

+