Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TIC-Desk
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Teckids
TIC-Desk
Commits
7679250f
Unverified
Commit
7679250f
authored
5 years ago
by
Tom Teichler
Browse files
Options
Downloads
Patches
Plain Diff
Add possibility to manage birthday mails.
parent
1f474d98
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!51
Add possibility to manage birthday mails. Closes #75
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ticdesk_org/forms.py
+5
-0
5 additions, 0 deletions
ticdesk_org/forms.py
ticdesk_org/views.py
+2
-0
2 additions, 0 deletions
ticdesk_org/views.py
with
7 additions
and
0 deletions
ticdesk_org/forms.py
+
5
−
0
View file @
7679250f
...
...
@@ -124,6 +124,11 @@ class EditUserForm(forms.Form):
label
=
_
(
'
Beschreibung
'
),
help_text
=
_
(
'
z.B. Vorstellungstext
'
))
setting_birthday_mail_days
=
forms
.
IntegerField
(
required
=
False
,
label
=
_
(
'
Geburtstags-E-Mails
'
),
help_text
=
_
(
'
Gib hier ein, wie viele Tage im Voraus du wissen möchtest, wann wer Geburtstag hat. Zum Beispiel 5.
'
))
# Not editable, but generate mail to OTRS on change
street
=
forms
.
CharField
(
label
=
_
(
'
Straße und Hausnummer
'
))
postal_code
=
forms
.
CharField
(
label
=
_
(
'
Postleitzahl (PLZ)
'
))
...
...
This diff is collapsed.
Click to expand it.
ticdesk_org/views.py
+
2
−
0
View file @
7679250f
...
...
@@ -429,6 +429,7 @@ def edit_user(request, uid):
'
members_share_info
'
:
user
.
members_share_info
,
'
iban
'
:
user
.
iban
,
'
bic
'
:
user
.
bic
,
'
setting_birthday_mail_days
'
:
user
.
setting_birthday_mail_days
,
}
edit_user_form
=
EditUserForm
(
initial
=
initial
)
...
...
@@ -462,6 +463,7 @@ def edit_user(request, uid):
user
.
members_share_info
=
edit_user_form
.
cleaned_data
[
'
members_share_info
'
]
user
.
iban
=
edit_user_form
.
cleaned_data
[
'
iban
'
]
user
.
bic
=
edit_user_form
.
cleaned_data
[
'
bic
'
]
user
.
setting_birthday_mail_days
=
edit_user_form
.
cleaned_data
[
'
setting_birthday_mail_days
'
]
# Not editable, but generate mail to OTRS on change
if
(
'
postal_code
'
in
edit_user_form
.
changed_data
or
'
place
'
in
edit_user_form
.
changed_data
or
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment