Skip to content

Commit 418437d

Browse files
committed
changed some code style and changed uuidfield
1 parent e1651c7 commit 418437d

File tree

5 files changed

+18
-19
lines changed

5 files changed

+18
-19
lines changed

lms/lmsdb/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from flask_login import UserMixin, current_user # type: ignore
1515
from peewee import ( # type: ignore
1616
BooleanField, Case, CharField, Check, DateTimeField, ForeignKeyField,
17-
IntegerField, JOIN, ManyToManyField, TextField, fn,
17+
IntegerField, JOIN, ManyToManyField, TextField, UUIDField, fn,
1818
)
1919
from playhouse.signals import Model, post_save, pre_save # type: ignore
2020
from werkzeug.security import (
@@ -139,7 +139,7 @@ class User(UserMixin, BaseModel):
139139
password = CharField()
140140
role = ForeignKeyField(Role, backref='users')
141141
api_key = CharField()
142-
uuid = CharField(default=uuid4, unique=True)
142+
uuid = UUIDField(default=uuid4, unique=True)
143143

144144
def get_id(self):
145145
return str(self.uuid)

lms/static/my.css

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,9 @@ a {
4848

4949
#login-container,
5050
#signup-container,
51-
#changepassword-container,
52-
#resetpassword-container {
51+
#change-password-container,
52+
#reset-password-container,
53+
#recover-password-container {
5354
height: 100%;
5455
align-items: center;
5556
display: flex;
@@ -58,8 +59,9 @@ a {
5859

5960
#login,
6061
#signup,
61-
#changepassword,
62-
#resetpassword {
62+
#change-password,
63+
#reset-password,
64+
#recover-password {
6365
margin: auto;
6466
max-width: 420px;
6567
padding: 15px;
@@ -68,7 +70,8 @@ a {
6870

6971
#login-logo,
7072
#signup-logo,
71-
#resetpassword-logo {
73+
#reset-password-logo,
74+
#recover-password-logo {
7275
margin-bottom: 1rem;
7376
}
7477

@@ -740,10 +743,6 @@ code .grader-add .fa {
740743
text-align: center;
741744
}
742745

743-
/* #change-password-user {
744-
text-align: center;
745-
} /*
746-
747746
#archive-row {
748747
text-align: center;
749748
}

lms/templates/changepassword.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
{% block page_content %}
55
<div class="container">
6-
<div id="changepassword-container">
7-
<div id="changepassword" class="text-center">
6+
<div id="change-password-container">
7+
<div id="change-password" class="text-center">
88
<h1 id="main-title" class="h3 font-weight-normal">{{ _('שינוי סיסמה') }}</h1>
99
<p>
1010
{{ _('הזינו סיסמה ישנה וסיסמה חדשה לצורך שינוי הסיסמה:') }}

lms/templates/recoverpassword.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
{% block page_content %}
55
<div class="container">
6-
<div id="resetpassword-container">
7-
<div id="resetpassword" class="text-center">
8-
<img id="resetpassword-logo" src="{{ url_for('static', filename='avatar.jpg') }}" alt="{{ _('תמונת הפרופיל של קורס פייתון') }}" width="72" height="72">
6+
<div id="recover-password-container">
7+
<div id="recover-password" class="text-center">
8+
<img id="recover-password-logo" src="{{ url_for('static', filename='avatar.jpg') }}" alt="{{ _('תמונת הפרופיל של קורס פייתון') }}" width="72" height="72">
99
<h1 id="main-title" class="h3 font-weight-normal">{{ _('איפוס סיסמה') }}</h1>
1010
<p>
1111
{{ _('הזינו סיסמה לצורך שינוי הסיסמה:') }}

lms/templates/resetpassword.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
{% block page_content %}
55
<div class="container">
6-
<div id="resetpassword-container">
7-
<div id="resetpassword" class="text-center">
8-
<img id="resetpassword-logo" src="{{ url_for('static', filename='avatar.jpg') }}" alt="{{ _('תמונת הפרופיל של קורס פייתון') }}" width="72" height="72">
6+
<div id="reset-password-container">
7+
<div id="reset-password" class="text-center">
8+
<img id="reset-password-logo" src="{{ url_for('static', filename='avatar.jpg') }}" alt="{{ _('תמונת הפרופיל של קורס פייתון') }}" width="72" height="72">
99
<h1 id="main-title" class="h3 font-weight-normal">{{ _('איפוס סיסמה') }}</h1>
1010
<p>
1111
{{ _('הזינו אימייל לצורך שליחת קישור לאיפוס הסיסמה:') }}

0 commit comments

Comments
 (0)