88< div class ="email-container ">
99 < h2 > < i class ="fas fa-envelope "> </ i > Send Email</ h2 >
1010 {% include 'ext/message.html' %}
11- < form method =" POST " enctype =" multipart/form-data " >
12- < div class =" form-group " >
13- < label for =" subject " > Subject: </ label >
14- < input type =" text " id =" subject " name =" subject " placeholder =" Enter the email subject " required >
11+
12+ {% if not enable_alerts %}
13+ < div class =" alert alert-info " >
14+ < i class =" fas fa-info-circle " > </ i > Alerts are currently disabled.
1515 </ div >
16- < div class ="form-group ">
17- < label for ="body "> Body:</ label >
18- < textarea id ="body " name ="body " rows ="6 " placeholder ="Write your message here " required > </ textarea >
19- </ div >
20- < div class ="form-group ">
21- < label for ="attachment "> Attachment:</ label >
22- < input type ="file " id ="attachment " name ="attachment ">
23- </ div >
24- < div class ="form-group ">
25- < label for ="recipient "> Recipient:</ label >
26- < select id ="recipient " name ="recipient " required >
27- < option value ="admin "> Admin</ option >
28- < option value ="all_users "> All Users</ option >
29- </ select >
30- </ div >
31- < div class ="form-group ">
32- < label for ="priority "> Priority:</ label >
33- < select id ="priority " name ="priority " required >
34- < option value ="low "> Low</ option >
35- < option value ="high "> High</ option >
36- </ select >
37- </ div >
38- < button type ="submit " class ="btn btn-primary ">
39- < i class ="fas fa-paper-plane "> </ i > Send Email
40- </ button >
41- </ form >
16+ < form method ="POST " enctype ="multipart/form-data " style ="pointer-events: none; opacity: 0.5; ">
17+ < div class ="form-group ">
18+ < label for ="subject "> Subject:</ label >
19+ < input type ="text " id ="subject " name ="subject " placeholder ="Enter the email subject " required >
20+ </ div >
21+ < div class ="form-group ">
22+ < label for ="body "> Body:</ label >
23+ < textarea id ="body " name ="body " rows ="6 " placeholder ="Write your message here " required > </ textarea >
24+ </ div >
25+ < div class ="form-group ">
26+ < label for ="attachment "> Attachment:</ label >
27+ < input type ="file " id ="attachment " name ="attachment ">
28+ </ div >
29+ < div class ="form-group ">
30+ < label for ="recipient "> Recipient:</ label >
31+ < select id ="recipient " name ="recipient " required >
32+ < option value ="admin "> Admin</ option >
33+ < option value ="all_users "> All Users</ option >
34+ </ select >
35+ </ div >
36+ < div class ="form-group ">
37+ < label for ="priority "> Priority:</ label >
38+ < select id ="priority " name ="priority " required >
39+ < option value ="low "> Low</ option >
40+ < option value ="high "> High</ option >
41+ </ select >
42+ </ div >
43+ < button type ="submit " class ="btn btn-primary ">
44+ < i class ="fas fa-paper-plane "> </ i > Send Email
45+ </ button >
46+ </ form >
47+ {% else %}
48+ < form method ="POST " enctype ="multipart/form-data ">
49+ < div class ="form-group ">
50+ < label for ="subject "> Subject:</ label >
51+ < input type ="text " id ="subject " name ="subject " placeholder ="Enter the email subject " required >
52+ </ div >
53+ < div class ="form-group ">
54+ < label for ="body "> Body:</ label >
55+ < textarea id ="body " name ="body " rows ="6 " placeholder ="Write your message here " required > </ textarea >
56+ </ div >
57+ < div class ="form-group ">
58+ < label for ="attachment "> Attachment:</ label >
59+ < input type ="file " id ="attachment " name ="attachment ">
60+ </ div >
61+ < div class ="form-group ">
62+ < label for ="recipient "> Recipient:</ label >
63+ < select id ="recipient " name ="recipient " required >
64+ < option value ="admin "> Admin</ option >
65+ < option value ="all_users "> All Users</ option >
66+ </ select >
67+ </ div >
68+ < div class ="form-group ">
69+ < label for ="priority "> Priority:</ label >
70+ < select id ="priority " name ="priority " required >
71+ < option value ="low "> Low</ option >
72+ < option value ="high "> High</ option >
73+ </ select >
74+ </ div >
75+ < button type ="submit " class ="btn btn-primary ">
76+ < i class ="fas fa-paper-plane "> </ i > Send Email
77+ </ button >
78+ </ form >
79+ {% endif %}
4280</ div >
4381{% endblock %}
82+
0 commit comments