diff --git a/app.py b/app.py index 9430c6b..450e388 100644 --- a/app.py +++ b/app.py @@ -2,7 +2,7 @@ import os from flask_sqlalchemy import SQLAlchemy -app = Flask(__name__) +app = Flask(__name__, static_folder='static') app.config['SQLALCHEMY_DATABASE_URI'] = os.getenv('SQLALCHEMY_DATABASE_URI') db = SQLAlchemy(app) @@ -15,6 +15,7 @@ class ITDepartments(db.Model): AG_ID = db.Column(db.String(255), nullable=True) class ITPersonnel(db.Model): + # ... __tablename__ = 'ITPersonnel' Last_Name = db.Column(db.String(255), primary_key=True) First_Name = db.Column(db.String(255), nullable=False) diff --git a/templates/index.html b/templates/index.html index 2b40497..bef7c25 100644 --- a/templates/index.html +++ b/templates/index.html @@ -44,73 +44,70 @@ background-color: #4CAF50; color: white; } - button { - display: block; - width: 200px; - height: 40px; - margin: 20px auto; - background-color: #4CAF50; - color: #fff; - border: none; - border-radius: 20px; - cursor: pointer; - font-size: 16px; - } - button:hover { - background-color: #45a049; - } - - - - -
- Logo -

Texas Pipe & Supply IT Department SQL Server Personnel Right Assignments

-
-
- - - - - - - - - - {% for person in personnel %} - - - - - - - - - {% endfor %} -
Last NameFirst NamePositionEmailRemarksDatabase Privileges
{{ person.Last_Name }}{{ person.First_Name }}{{ person.Position }}{{ person.Email }} - - - -
- -
- - + }; + + function validateForm() { + var selects = document.querySelectorAll('select'); + for (var i = 0; i < selects.length; i++) { + if (selects[i].value === '') { + alert('Please select a privilege for all personnel.'); + return false; + } + } + return true; + } + \ No newline at end of file