-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
24d4dfb
commit 6a2d532
Showing
27 changed files
with
515 additions
and
32 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
GOOGLE_API_KEY=AIzaSyAh5HbTtCHsO_ZWAtCtn_q5h2_Jw7tEfe8 | ||
HUGGING_FACE_API_KEY=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 | ||
|
||
SMS_ACCOUNT_SSID_API_KEY=AC954136eee66cc8ba187c7722f5840d13 | ||
SMS_ACCOUNT_AUTH_API_KEY=d1501d7b07f1625cce8b4c46c1d5a8f1 | ||
SMS_FROM_NUMBER=+12085516281 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,30 @@ | ||
# Generated by Django 5.0.7 on 2024-07-28 02:21 | ||
|
||
import django.db.models.deletion | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('core', '0003_ambulance_bedsinventory_o2inventory_staffmember'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='Labor', | ||
fields=[ | ||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('name', models.CharField(max_length=255)), | ||
], | ||
), | ||
migrations.CreateModel( | ||
name='Attendance', | ||
fields=[ | ||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('date', models.DateField()), | ||
('status', models.CharField(choices=[('Present', 'Present'), ('Absent', 'Absent')], max_length=10)), | ||
('labor', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.labor')), | ||
], | ||
), | ||
] |
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,32 @@ | ||
# Generated by Django 5.0.7 on 2024-07-28 03:21 | ||
|
||
import django.db.models.deletion | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('core', '0004_labor_attendance'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='Task', | ||
fields=[ | ||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('title', models.CharField(max_length=100)), | ||
('description', models.TextField()), | ||
], | ||
), | ||
migrations.CreateModel( | ||
name='TaskAssignment', | ||
fields=[ | ||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('date_assigned', models.DateField()), | ||
('status', models.CharField(max_length=10)), | ||
('labor', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.labor')), | ||
('task', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.task')), | ||
], | ||
), | ||
] |
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,18 @@ | ||
# Generated by Django 5.0.7 on 2024-07-28 03:54 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('core', '0005_task_taskassignment'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='task', | ||
name='description', | ||
field=models.CharField(choices=[('Sewage & Drainage', 'Sewage & Drainage'), ('Waste Management', 'Waste Management'), ('Public Transport', 'Public Transport'), ('Public Health Services', 'Public Health Services'), ('Education and Cultural', 'Education and Cultral'), ('Services', 'Services'), ('Water Treatment and Supplies', 'Water Treatment and Supplies')], max_length=60), | ||
), | ||
] |
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+1020 Bytes
core/migrations/__pycache__/0006_alter_task_description.cpython-312.pyc
Binary file not shown.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,19 @@ | ||
{% extends 'maintain/partial/base.html' %} | ||
{% load static %} | ||
{% block index %} | ||
|
||
<div class="container"> | ||
<div class="col-md-12"> | ||
<div style="display: flex;align-items: center;justify-content: center;height: 70vh;"> | ||
<form method="post" style="display: flex;align-items: center;justify-content: center;flex-direction: column;"> | ||
{% csrf_token %} | ||
<h2>Add Labor</h2> | ||
<img style="width: 10em;" src="../../../static/core/image/workforce.svg" alt=""> | ||
<input style="width: 100%;border: 1px solid grey; background-color: transparent;padding: 5px 10px;border-radius: 5px;margin-bottom: 10px;" type="text" name="name" placeholder="Enter labor name" required> | ||
<button class="add_vehicle" type="submit">Add Labor</button> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
{% endblock index %} |
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,30 @@ | ||
{% extends 'core/partial/base.html' %} | ||
{% load static %} | ||
|
||
{% block index %} | ||
<style> | ||
#id_date_assigned, | ||
#id_status, | ||
#id_task, | ||
#id_labor{ | ||
width: 100%; | ||
border: 1px solid grey; | ||
background-color: transparent; | ||
padding: 5px 10px; | ||
border-radius: 5px; | ||
margin-bottom: 10px; | ||
margin-top: 10px; | ||
} | ||
</style> | ||
<div class="container"> | ||
<div class="col-md-12" style="min-height: 70vh;"> | ||
<h1>Assign Task</h1> | ||
<form method="post"> | ||
{% csrf_token %} | ||
{{ form.as_p }} | ||
<button class="add_vehicle" type="submit">Assign Task</button> | ||
</form> | ||
</div> | ||
</div> | ||
|
||
{% endblock index %} |
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,27 @@ | ||
{% extends 'maintain/partial/base.html' %} | ||
{% load static %} | ||
{% block index %} | ||
<style> | ||
#id_status, | ||
#id_labor{ | ||
width: 100%; | ||
border: 1px solid grey; | ||
background-color: transparent; | ||
padding: 5px 10px; | ||
border-radius: 5px; | ||
margin-bottom: 10px; | ||
margin-top: 10px; | ||
} | ||
</style> | ||
<div class="container" style="min-height: 70vh;"> | ||
<div class="col-md-12"> | ||
<h2>Mark Attendance</h2> | ||
<form method="post"> | ||
{% csrf_token %} | ||
{{ form.as_p }} | ||
<button class="add_vehicle" type="submit">Submit</button> | ||
</form> | ||
</div> | ||
</div> | ||
|
||
{% endblock index %} |
Oops, something went wrong.