- pip install django
- pip install django-crispy-forms
- pip install crispy-bootstrap4
- Username:
sherminchai
- Password:
12345
- Username:
houser
- Password:
headoffice123
- Username:
douser
- Password:
districtoffice123
- Username:
bluser
- Password:
branchlocation123
- Login Option: For existing admins to log in.
- Create Admin Account: For creating new admin accounts.
- Form Fields: Username, Email, Password, Confirm Password.
- Permissions: Select Head Office checkbox to gain full access.
- Access: Can access Head Office, District Office, and Branch Location webpages.
- Functionality: Create new users and assign permissions; Add District Office and Branch Location entries.
- Redirect: Leads to Login page after successful registration.
- Form Fields: Username and Password.
- Redirect: Leads to Head Office Dashboard upon successful login.
- Options:
- Head Office Page (
headoffice.html
) - District Office Page (
districtoffice.html
) - Branch Location Page (
branchlocation.html
) - Create New User (
createuser.html
) - Add Location (
addlocation.html
)
- Head Office Page (
- Display: Information relevant to the Head Office.
- Display: List of all District Offices added to the database.
- Display: Branch locations categorized by District Offices.
- Note: Users from Branch Locations are directed to this page upon login.
- Form Fields: Username, Email, Password, Confirm Password.
- Permissions:
- District Office: Access to District Office and Branch Location pages.
- Branch Location: Access only to Branch Location page.
- Functionality:
- Add new District Office entries to the DistrictOfficeList database.
- Add Branch Location entries and associate them with existing District Offices.
- Redirect: Returns to
districtoffice.html
andbranchlocation.html
to view newly added entries.
- Options:
- Access both
districtoffice.html
andbranchlocation.html
. - Navigate to the respective webpages as needed.
- Access both
- Need to tick the correct checkbox for different users in order to gain access to the webpages
- Required to log in to access the webpages based on the permission granted
- Need to select which districtofficelist to add the branch location to successfully add them to the DistrictOfficeList