mirror of https://gitlab.federez.net/re2o/re2o
15 changed files with 378 additions and 11 deletions
Binary file not shown.
@ -0,0 +1,70 @@ |
|||
# SOME DESCRIPTIVE TITLE. |
|||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER |
|||
# This file is distributed under the same license as the PACKAGE package. |
|||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. |
|||
# |
|||
#, fuzzy |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: PACKAGE VERSION\n" |
|||
"Report-Msgid-Bugs-To: \n" |
|||
"POT-Creation-Date: 2018-07-26 21:49+0200\n" |
|||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
|||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
|||
"Language: \n" |
|||
"MIME-Version: 1.0\n" |
|||
"Content-Type: text/plain; charset=UTF-8\n" |
|||
"Content-Transfer-Encoding: 8bit\n" |
|||
"Plural-Forms: nplurals=2; plural=(n > 1);\n" |
|||
|
|||
#: models.py:256 |
|||
msgid "Contact email adress" |
|||
msgstr "Adresse email de contact" |
|||
|
|||
#: models.py:263 |
|||
msgid "Description of the associated email adress." |
|||
msgstr "Description de l'adresse mail associée." |
|||
|
|||
#: models.py:273 |
|||
msgid "Can see contact email" |
|||
msgstr "Peut voir un mail de contact" |
|||
|
|||
#: templates/preferences/aff_mailcontact.html:30 |
|||
msgid "Adress" |
|||
msgstr "Adresse" |
|||
|
|||
#: templates/preferences/aff_mailcontact.html:31 |
|||
msgid "Remark" |
|||
msgstr "Commentaire" |
|||
|
|||
#: templates/preferences/display_preferences.html:205 |
|||
msgid "Contact email adresses list" |
|||
msgstr "Liste des adresses email de contact" |
|||
|
|||
#: templates/preferences/display_preferences.html:207 |
|||
msgid "Add an adress" |
|||
msgstr "Ajouter une adresse" |
|||
|
|||
#: templates/preferences/display_preferences.html:209 |
|||
msgid "Delete one or multiple adresses" |
|||
msgstr "Supprimer une ou plusieurs adresses" |
|||
|
|||
#: views.py:210 |
|||
msgid "The adress was created." |
|||
msgstr "L'adresse a été créée." |
|||
|
|||
#: views.py:230 |
|||
msgid "Email adress updated." |
|||
msgstr "L'adresse email a été mise à jour." |
|||
|
|||
#: views.py:233 |
|||
msgid "Edit" |
|||
msgstr "Éditer" |
|||
|
|||
#: views.py:251 |
|||
msgid "The email adress was deleted." |
|||
msgstr "L'adresse email a été supprimée." |
|||
|
|||
#: views.py:254 |
|||
msgid "Delete" |
|||
msgstr "Supprimer" |
|||
@ -0,0 +1,28 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Generated by Django 1.10.7 on 2018-06-30 15:27 |
|||
from __future__ import unicode_literals |
|||
|
|||
from django.db import migrations, models |
|||
import re2o.mixins |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('preferences', '0046_optionaluser_mail_extension'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.CreateModel( |
|||
name='MailContact', |
|||
fields=[ |
|||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
|||
('address', models.EmailField(default='contact@example.org', help_text="Contact email adress", max_length=254)), |
|||
('commentary', models.CharField(blank=True, help_text="Description of the associated email adress.", max_length=256, null=True)), |
|||
], |
|||
options={ |
|||
'permissions': (('view_mailcontact', "Can see contact email"),), |
|||
}, |
|||
bases=(re2o.mixins.AclMixin, models.Model), |
|||
), |
|||
] |
|||
@ -0,0 +1,47 @@ |
|||
{% 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 i18n %} |
|||
{% load acl %} |
|||
{% load logs_extra %} |
|||
<table class="table table-striped"> |
|||
<thead> |
|||
<tr> |
|||
<th>{% trans "Adress" %}</th> |
|||
<th>{% trans "Remark" %}</th> |
|||
<th></th> |
|||
</tr> |
|||
</thead> |
|||
{% for mailcontact in mailcontact_list %} |
|||
<tr> |
|||
<td>{{ mailcontact.address }}</td> |
|||
<td>{{ mailcontact.commentary }}</td> |
|||
<td class="text-right"> |
|||
{% can_edit mailcontact %} |
|||
{% include 'buttons/edit.html' with href='preferences:edit-mailcontact' id=mailcontact.id %} |
|||
{% acl_end %} |
|||
{% history_button mailcontact %} |
|||
</td> |
|||
</tr> |
|||
{% endfor %} |
|||
</table> |
|||
@ -0,0 +1,52 @@ |
|||
{% 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 %} |
|||
{% load i18n %} |
|||
|
|||
{% block title %}{% trans "Contact" %}{% endblock %} |
|||
|
|||
{% block content %} |
|||
<h2>{% blocktrans %}Contacter l'association {{asso_name}}{% endblocktrans %}</h2> |
|||
</br> |
|||
|
|||
{% for contact in contacts %} |
|||
|
|||
<div class="panel panel-info"> |
|||
<div class="panel-heading"><h4>{{ contact.get_name }}</h4></div> |
|||
<div class="panel-body"> |
|||
<div class="row"> |
|||
<div class="col-sm-9">{{ contact.commentary}}</div> |
|||
<div class="col-sm-3"><a href="mailto:{{ contact.address }}">{{ contact.address }}</a></div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
|
|||
{% endfor %} |
|||
|
|||
|
|||
|
|||
{% endblock %} |
|||
|
|||
Loading…
Reference in new issue