File tree Expand file tree Collapse file tree 2 files changed +158
-0
lines changed
appointment/templates/appointment Expand file tree Collapse file tree 2 files changed +158
-0
lines changed Original file line number Diff line number Diff line change
1
+ {% extends BASE_TEMPLATE %}
2
+ {% load i18n %}
3
+ {% load static %}
4
+ {% block customCSS %}
5
+ < style >
6
+ body {
7
+ font-family : 'Arial' , sans-serif;
8
+ background-color : # f5f5f5 ;
9
+ color : # 333 ;
10
+ margin : 0 ;
11
+ padding : 0 ;
12
+ display : flex;
13
+ justify-content : center;
14
+ align-items : center;
15
+ height : 100vh ;
16
+ }
17
+
18
+ .container {
19
+ background-color : # fff ;
20
+ padding : 40px ;
21
+ border-radius : 8px ;
22
+ box-shadow : 0 4px 6px rgba (0 , 0 , 0 , 0.1 );
23
+ width : 100% ;
24
+ max-width : 400px ;
25
+ }
26
+
27
+ h2 {
28
+ color : # 333 ;
29
+ margin-bottom : 20px ;
30
+ }
31
+
32
+ .messages {
33
+ list-style : none;
34
+ padding : 0 ;
35
+ margin-bottom : 20px ;
36
+ }
37
+
38
+ .messages li {
39
+ background-color : # f8d7da ;
40
+ color : # 721c24 ;
41
+ padding : 10px ;
42
+ margin-bottom : 10px ;
43
+ border-radius : 4px ;
44
+ }
45
+
46
+ form {
47
+ display : flex;
48
+ flex-direction : column;
49
+ }
50
+
51
+ form p {
52
+ margin-bottom : 10px ;
53
+ }
54
+
55
+ input [type = "password" ] {
56
+ padding : 10px ;
57
+ margin-bottom : 20px ;
58
+ border : 1px solid # ccc ;
59
+ border-radius : 4px ;
60
+ }
61
+
62
+ button {
63
+ background-color : # 007bff ;
64
+ color : # fff ;
65
+ padding : 10px ;
66
+ border : none;
67
+ border-radius : 4px ;
68
+ cursor : pointer;
69
+ font-size : 16px ;
70
+ }
71
+
72
+ button : hover {
73
+ background-color : # 0056b3 ;
74
+ }
75
+ </ style >
76
+ {% endblock %}
77
+ {% block title %}
78
+ {% trans 'Reset Your Password' %}
79
+ {% endblock %}
80
+ {% block description %}
81
+ {% trans 'Reset Your Password' %}
82
+ {% endblock %}
83
+ {% block body %}
84
+ < div class ="container ">
85
+ < h2 > {% trans 'Reset Your Password' %}</ h2 >
86
+ <!-- Display messages -->
87
+ {% if messages %}
88
+ < ul class ="messages ">
89
+ {% for message in messages %}
90
+ < li {% if message.tags %} class ="{{ message.tags }} "{% endif %} > {{ message }}</ li >
91
+ {% endfor %}
92
+ </ ul >
93
+ {% endif %}
94
+
95
+ <!-- Password Reset Form -->
96
+ < form method ="post ">
97
+ {% csrf_token %}
98
+ {{ form.as_p }} <!-- Renders the form fields -->
99
+ < button type ="submit "> {% trans 'Reset Password' %}</ button >
100
+ </ form >
101
+ {% endblock %}
102
+ {% block customJS %}
103
+ < script src ="{% static 'js/js-utils.js' %} "> </ script >
104
+ {% endblock %}
Original file line number Diff line number Diff line change
1
+ {% extends BASE_TEMPLATE %}
2
+ {% load i18n %}
3
+ {% load static %}
4
+ {% block customCSS %}
5
+ < style >
6
+ /* Add your custom CSS here */
7
+ body {
8
+ font-family : 'Nunito' , sans-serif;
9
+ background-color : # f7f7f7 ;
10
+ margin : 0 ;
11
+ padding : 20px ;
12
+ }
13
+
14
+ .container {
15
+ max-width : 600px ;
16
+ background : # ffffff ;
17
+ margin : 40px auto;
18
+ padding : 40px ;
19
+ border-radius : 8px ;
20
+ box-shadow : 0 4px 6px rgba (0 , 0 , 0 , 0.1 );
21
+ }
22
+
23
+ .title {
24
+ color : # 333 ;
25
+ text-align : center;
26
+ }
27
+
28
+ .message {
29
+ font-size : 18px ;
30
+ text-align : center;
31
+ line-height : 1.6 ;
32
+ margin-top : 20px ;
33
+ }
34
+ </ style >
35
+ {% endblock %}
36
+ {% block title %}{{ page_title }}{% endblock %}
37
+ {% block description %}{{ page_description }}{% endblock %}
38
+ {% block body %}
39
+ < div class ="container ">
40
+ < h1 class ="title "> {{ page_title }}</ h1 >
41
+ < p class ="message ">
42
+ {{ page_message }}
43
+ </ p >
44
+ {% if messages %}
45
+ {% for message in messages %}
46
+ < div class ="alert alert-dismissible {% if message.tags %}alert-{% if message.level == DEFAULT_MESSAGE_LEVELS.ERROR %}danger{% else %}{{ message.tags }}{% endif %}{% endif %} "
47
+ role ="alert "> {{ message }}</ div >
48
+ {% endfor %}
49
+ {% endif %}
50
+ </ div >
51
+ {% endblock %}
52
+ {% block customJS %}
53
+ < script src ="{% static 'js/js-utils.js' %} "> </ script >
54
+ {% endblock %}
You can’t perform that action at this time.
0 commit comments