|
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>User List</title>
- </head>
- <body>
- <h2>Family member dashboard</h2>
- <ul>
- <li>
- {{ user.given_name }} {{ user.surname }}
- <a href="{{ url_for('update_user', user_id=user.user_id) }}">Update</a>
- </li>
- </ul>
- <h3>Jobs:</h3>
- <ul>
- {% for job in jobs %}
- <li>
- {{ job.required_caregiving_type }} - {{ job.other_requirements }}
- <a href="{{ url_for('update_job', job_id=job.job_id) }}">Update</a>
- <a href="{{ url_for('delete_job', job_id=job.job_id) }}" onclick="return confirm('Are you sure you want to delete this job?')">Delete</a>
- </li>
- {% endfor %}
- </ul>
- <a href="{{ url_for('create_job') }}">Create New Job</a>
- <br>
- <a href="{{ url_for('logout_user') }}">Logout</a>
- </body>
- </html>
|