-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #206 from Teknologforeningen/feature/user-editable…
…-info User-editable information
- Loading branch information
Showing
32 changed files
with
726 additions
and
278 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
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
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,14 @@ | ||
|
||
from members.models import Member | ||
from members.forms import BSModelForm | ||
from members.validators import CommonValidators | ||
from ldap import LDAPError | ||
|
||
class EditProfileForm(BSModelForm, CommonValidators): | ||
class Meta: | ||
model = Member | ||
fields = ['preferred_name', 'phone', 'email', 'street_address', 'postal_code', 'city', 'country', 'graduated', 'graduated_year', 'subscribed_to_modulen', 'allow_studentbladet', 'allow_publish_info'] | ||
|
||
def clean(self): | ||
BSModelForm.clean(self) | ||
CommonValidators.clean(self) |
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 |
---|---|---|
@@ -1,22 +1,43 @@ | ||
.navbar { | ||
margin-bottom: 20px; | ||
margin-bottom: 20px; | ||
} | ||
|
||
.searchbar { | ||
padding: 20px; | ||
padding-top: 0px; | ||
padding: 20px; | ||
padding-top: 0px; | ||
} | ||
|
||
.alphabet { | ||
padding: 20px; | ||
padding-top: 0px; | ||
font-size: 130%; | ||
padding: 20px; | ||
padding-top: 0px; | ||
font-size: 130%; | ||
} | ||
|
||
.errorlist { | ||
padding: 10px; | ||
list-style-type: none; | ||
font-weight: bold; | ||
} | ||
|
||
#member-information button { | ||
margin-bottom: 20px; | ||
} | ||
|
||
.monospace { | ||
font-family: monospace; | ||
} | ||
|
||
.admin-link { | ||
color: black; | ||
color: black; | ||
} | ||
|
||
.order-by { | ||
cursor: pointer; | ||
cursor: pointer; | ||
} | ||
|
||
/* .text-right comes from Bootstrap, and is used (at least) on the member profile pages. This addition makes sure that the text in a table cell can be replaced with an input field (not checkbox) without the row changing size. */ | ||
.text-right:has(input):has(.form-control) { | ||
vertical-align: middle !important; | ||
padding-top: 0 !important; | ||
padding-bottom: 0 !important; | ||
} |
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
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
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
Oops, something went wrong.