Giter Club home page Giter Club logo

django_platter's Introduction

Django Platter

Installation

  • pip install django
  • pip install django-crispy-forms
  • pip install crispy-bootstrap4

User Credentials

SuperUser

  • Username: sherminchai
  • Password: 12345

Head Office User

  • Username: houser
  • Password: headoffice123

District Office User

  • Username: douser
  • Password: districtoffice123

Branch Location User

  • Username: bluser
  • Password: branchlocation123

Webpages and Functions

Index Page (index.html)

  • Login Option: For existing admins to log in.
  • Create Admin Account: For creating new admin accounts.

Create Admin Account (createadmin.html)

  • 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.

Login Page (login_view.html)

  • Form Fields: Username and Password.
  • Redirect: Leads to Head Office Dashboard upon successful login.

Head Office Dashboard (dashboardHO.html)

  • 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 (headoffice.html)

  • Display: Information relevant to the Head Office.

District Office Page (districtoffice.html)

  • Display: List of all District Offices added to the database.

Branch Location Page (branchlocation.html)

  • Display: Branch locations categorized by District Offices.
  • Note: Users from Branch Locations are directed to this page upon login.

Create New User Page (createuser.html)

  • 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.

Add Location Page (addlocation.html)

  • 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 and branchlocation.html to view newly added entries.

District Office Dashboard (dashboardDO.html)

  • Options:
    • Access both districtoffice.html and branchlocation.html.
    • Navigate to the respective webpages as needed.

IMPORTANT THINGS TO NOTE

  • 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

django_platter's People

Contributors

sherminchaijm avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.