Spaces:
Runtime error
Runtime error
Download index.html from Srinu007/Stridespharmaagent: direct link, hf CLI and curl.
- Browser
- Download file 2.67 kB
-
https://huggingface.co/spaces/Srinu007/Stridespharmaagent/resolve/main/index.html
- Command line
-
hf download hf://spaces/Srinu007/Stridespharmaagent/index.html
-
curl -L -o index.html https://huggingface.co/spaces/Srinu007/Stridespharmaagent/resolve/main/index.html
2.67 kB
| <html> | |
| <head> | |
| <title>Audit Management System</title> | |
| <link href="[cdn.jsdelivr.net](https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css)" rel="stylesheet"> | |
| </head> | |
| <body class="bg-light"> | |
| <div class="container mt-5"> | |
| {% if not user %} | |
| <div class="card mx-auto" style="max-width: 400px;"> | |
| <div class="card-body"> | |
| <h3 class="card-title">Login</h3> | |
| <form action="/login" method="post"> | |
| <div class="mb-3"> | |
| <label>Username</label> | |
| <input type="text" name="username" class="form-control" required> | |
| </div> | |
| <div class="mb-3"> | |
| <label>Password</label> | |
| <input type="password" name="password" class="form-control" required> | |
| </div> | |
| <button type="submit" class="btn btn-primary w-100">Sign In</button> | |
| </form> | |
| <div class="mt-3 small text-muted"> | |
| Auditor: auditor1 / password123<br> | |
| Reviewer: reviewer1 / admin123 | |
| </div> | |
| </div> | |
| </div> | |
| {% else %} | |
| <div class="d-flex justify-content-between align-items-center mb-4"> | |
| <h2>Welcome, {{ user.username }} ({{ user.role }})</h2> | |
| <a href="/logout" class="btn btn-outline-danger">Logout</a> | |
| </div> | |
| {% if user.role == 'auditor' %} | |
| <div class="card shadow-sm p-4"> | |
| <h4>Upload Audit Responses</h4> | |
| <form action="/submit-finding" method="post"> | |
| <textarea name="finding" class="form-control mb-3" rows="4" placeholder="Enter audit findings..."></textarea> | |
| <button type="submit" class="btn btn-success">Submit for Review</button> | |
| </form> | |
| </div> | |
| {% elif user.role == 'reviewer' %} | |
| <div class="card shadow-sm p-4"> | |
| <h4>Pending Reviews</h4> | |
| <ul class="list-group"> | |
| <li class="list-group-item d-flex justify-content-between align-items-center"> | |
| Finding #102: Manufacturing Deviation | |
| <form action="/review-finding" method="post"> | |
| <button name="decision" value="approved" class="btn btn-sm btn-primary">Approve</button> | |
| <button name="decision" value="rejected" class="btn btn-sm btn-danger">Reject</button> | |
| </form> | |
| </li> | |
| </ul> | |
| </div> | |
| {% endif %} | |
| {% endif %} | |
| </div> | |
| </body> | |
| </html> | |