-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create application portal for group leaders (#780)
* Listing group applications (WIP) * Fixed displayed application names on internal portal * Applicants' names are hyperlinks to individual applications * Finished basic application look * Admin of first choice group processes the application * Fixed authentication error for applications page * create view to move application to next group * create application email text and upgrade views * functionality to send email to person in group * check if group exists before send mail * check for superuser permissions * empty commit * delete unused file and remove superuser privelige * create card for application * add approve application page and separate into components * add link to applications * add comments for future work * separate into own personalia box * send email on successful new application * create form to send email to applicant * better styled and working form for writing email * add timepicker * translation and email header and back button * translate internalportal * add badge to internalportal and translations * empty application list message and group choice list order * edit email url to be full path * create modal before sending to next group * better links for error on sending application further * change permission on applications view * update locale file * create translation for interview email * email for deny and approve with translations * more translations to emails. debugging * finish application translations * change translation in approve page * remove newline on top of email, fix email copy bug and translate Subject * delete weirdly created file I dont understand * remove static/ from gitignore to add to new static files * change to group names --------- Co-authored-by: Njål Telstø <[email protected]> Co-authored-by: zara <[email protected]>
- Loading branch information
1 parent
1f88aee
commit f1fefd3
Showing
51 changed files
with
1,748 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,6 @@ profilepictures/ | |
env/ | ||
venv/ | ||
.vscode/ | ||
static/ | ||
**/__pycache__ | ||
/static/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: PACKAGE VERSION\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2023-10-23 17:45+0200\n" | ||
"POT-Creation-Date: 2023-11-27 17:21+0100\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <[email protected]>\n" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: PACKAGE VERSION\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2023-10-23 17:45+0200\n" | ||
"POT-Creation-Date: 2023-11-27 17:21+0100\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <[email protected]>\n" | ||
|
17 changes: 17 additions & 0 deletions
17
applications/migrations/0020_alter_applicationgroupchoice_options.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Generated by Django 3.2.18 on 2023-11-27 00:53 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('applications', '0019_applicationgroup_open_for_applications'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name='applicationgroupchoice', | ||
options={'ordering': ['priority']}, | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
applications/templates/applications/new_application_email.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Hei, | ||
|
||
Denne mailen blir sendt til deg fordi det har kommet en ny søknad til Hackerspace som har din gruppe på første valg. | ||
|
||
Du finner aktive søknader her: {{ applications_url }} | ||
|
||
|
||
Mvh, | ||
Hackerspace NTNU | ||
|
||
----------------------------------- | ||
|
||
|
||
Hello, | ||
|
||
This email is sent to you because there is a new applicant to Hackerspace with your group as highest priority. | ||
|
||
You can find active applications here: {{ applications_url }} | ||
|
||
|
||
Best regards, | ||
Hackerspace NTNU |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: PACKAGE VERSION\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2023-10-23 17:45+0200\n" | ||
"POT-Creation-Date: 2023-11-27 17:21+0100\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <[email protected]>\n" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: PACKAGE VERSION\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2023-10-23 17:45+0200\n" | ||
"POT-Creation-Date: 2023-11-27 17:21+0100\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <[email protected]>\n" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
from django.db.models.fields import forms | ||
from django.utils.translation import gettext_lazy as _ | ||
|
||
from news.forms import SplitDateTimeFieldCustom | ||
|
||
|
||
class InterviewEmailForm(forms.Form): | ||
location = forms.CharField( | ||
label=_("Plassering"), | ||
max_length=100, | ||
required=True, | ||
) | ||
location_link = forms.CharField( | ||
label=_("Lenke til plassering"), | ||
max_length=100, | ||
required=False, | ||
) | ||
start_time = SplitDateTimeFieldCustom( | ||
label=_("Starttidspunkt"), | ||
required=True, | ||
) | ||
end_time = SplitDateTimeFieldCustom( | ||
label=_("Sluttidspunkt"), | ||
required=False, | ||
) |
Oops, something went wrong.