Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Sith
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
59
Issues
59
List
Boards
Labels
Service Desk
Milestones
Merge Requests
9
Merge Requests
9
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
AE
Sith
Commits
a56d3a30
Commit
a56d3a30
authored
Mar 12, 2017
by
Skia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a help_text to Weekmail edit form
parent
73cbfd3e
Pipeline
#791
passed with stage
in 3 minutes and 19 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
15 deletions
+22
-15
com/views.py
com/views.py
+3
-1
locale/fr/LC_MESSAGES/django.po
locale/fr/LC_MESSAGES/django.po
+19
-14
No files found.
com/views.py
View file @
a56d3a30
...
...
@@ -9,6 +9,7 @@ from django.core.exceptions import ValidationError
from
django.utils
import
timezone
from
django.conf
import
settings
from
django.db.models
import
Max
from
django.forms.models
import
modelform_factory
from
django
import
forms
from
datetime
import
timedelta
...
...
@@ -259,7 +260,8 @@ class WeekmailPreviewView(ComTabsMixin, CanEditPropMixin, DetailView):
class
WeekmailEditView
(
ComTabsMixin
,
QuickNotifMixin
,
CanEditPropMixin
,
UpdateView
):
model
=
Weekmail
template_name
=
'com/weekmail.jinja'
fields
=
[
'title'
,
'intro'
,
'joke'
,
'protip'
,
'conclusion'
]
form_class
=
modelform_factory
(
Weekmail
,
fields
=
[
'title'
,
'intro'
,
'joke'
,
'protip'
,
'conclusion'
],
help_texts
=
{
'title'
:
_
(
"Delete and save to regenerate"
)})
success_url
=
reverse_lazy
(
'com:weekmail'
)
current_tab
=
"weekmail"
...
...
locale/fr/LC_MESSAGES/django.po
View file @
a56d3a30
...
...
@@ -6,7 +6,7 @@
msgid
""
msgstr
""
"Report-Msgid-Bugs-To:
\n
"
"POT-Creation-Date: 2017-03-12 1
7:57
+0100
\n
"
"POT-Creation-Date: 2017-03-12 1
8:11
+0100
\n
"
"PO-Revision-Date: 2016-07-18
\n
"
"Last-Translator: Skia <skia@libskia.so>
\n
"
"Language-Team: AE info <ae.info@utbm.fr>
\n
"
...
...
@@ -1037,7 +1037,7 @@ msgstr "Vous n'avez pas la permission de faire cela"
msgid
"Begin date"
msgstr
"Date de début"
#: club/views.py:170 com/views.py:9
8
counter/views.py:933
#: club/views.py:170 com/views.py:9
9
counter/views.py:933
#: election/views.py:131
msgid
"End date"
msgstr
"Date de fin"
...
...
@@ -1267,7 +1267,7 @@ msgid "Coming soon... don't miss!"
msgstr
"Prochainement... à ne pas rater!"
#: com/templates/com/weekmail.jinja:5 com/templates/com/weekmail.jinja.py:9
#: com/views.py:3
6
core/templates/core/user_tools.jinja:69
#: com/views.py:3
7
core/templates/core/user_tools.jinja:69
msgid
"Weekmail"
msgstr
"Weekmail"
...
...
@@ -1347,43 +1347,47 @@ msgstr "Astuce"
msgid
"Final word"
msgstr
"Le mot de la fin"
#: com/views.py:
29
#: com/views.py:
30
msgid
"Communication administration"
msgstr
"Administration de la communication"
#: com/views.py:4
1
core/templates/core/user_tools.jinja:70
#: com/views.py:4
2
core/templates/core/user_tools.jinja:70
msgid
"Weekmail destinations"
msgstr
"Destinataires du Weekmail"
#: com/views.py:4
6
#: com/views.py:4
7
msgid
"Index page"
msgstr
"Page d'accueil"
#: com/views.py:5
1
#: com/views.py:5
2
msgid
"Info message"
msgstr
"Message d'info"
#: com/views.py:5
6
#: com/views.py:5
7
msgid
"Alert message"
msgstr
"Message d'alerte"
#: com/views.py:9
7
election/views.py:130
#: com/views.py:9
8
election/views.py:130
msgid
"Start date"
msgstr
"Date de début"
#: com/views.py:
99
#: com/views.py:
100
msgid
"Until"
msgstr
"Jusqu'à"
#: com/views.py:10
0
#: com/views.py:10
1
msgid
"Automoderation"
msgstr
"Automodération"
#: com/views.py:10
6 com/views.py:108 com/views.py:110
#: com/views.py:10
7 com/views.py:109 com/views.py:111
msgid
"This field is required."
msgstr
"Ce champ est obligatoire."
#: com/views.py:270
#: com/views.py:264
msgid
"Delete and save to regenerate"
msgstr
"Supprimer et sauver pour regénérer"
#: com/views.py:272
msgid
"Weekmail of the "
msgstr
"Weekmail du "
...
...
@@ -1730,7 +1734,8 @@ msgid ""
"Enter a valid page name. This value may contain only unaccented letters, "
"numbers and ./+/-/_ characters."
msgstr
""
"Entrez un nom de page correct. Uniquement des lettres non accentuées, numéros, et ./+/-/_"
"Entrez un nom de page correct. Uniquement des lettres non accentuées, "
"numéros, et ./+/-/_"
#: core/models.py:748
msgid
"page name"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment