diff --git a/prediction_service/templates/prediction_service/home-Admin.html b/prediction_service/templates/prediction_service/home-Admin.html index 2d5671c3214ab61568ec1aade6a88e9357e3b9b9..b1f031660435eac3386293de69de4a8a81326245 100644 --- a/prediction_service/templates/prediction_service/home-Admin.html +++ b/prediction_service/templates/prediction_service/home-Admin.html @@ -9,7 +9,7 @@ <h1>Admin Dashboard!</h1> <div class="row col-sm-12"> {% for post in posts %} - <div class="card" style="width: 18rem; margin-right: 15px;"> + <div class="card" style="width: 18rem; margin-right: 15px; margin-bottom: 20px;"> <div class="card-body"> <h5 class="card-title">{{post.title}} ID: {{post.mlmodel.id}}</h5> <h6 class="card-subtitle mb-2 text-muted">By {{ post.author }} on {{ post.date_posted }}</h6> @@ -20,20 +20,27 @@ </div> {% endfor %} - <form method="POST" action="/home/"> - {% csrf_token %} - {% for account in pending %} - <div class="card" style="width: 18rem; margin-right: 15px;"> - <div class="card-body"> - <h5 class="card-title">Username: {{ account.user.user }}</h5> - <h6 class="card-subtitle mb-2 text-muted">AI Engineer Request</h6> - <label class="checkbox-label" for="approve-checkbox-{{ account.user }}">Approve</label> - <input type="checkbox" id="{{ account.user }}" name="approved_accounts" value="{{ account.user.id }}"> - </div> - </div> - {% endfor %} - <button type="submit" class="btn btn-primary">Submit</button> - </form> + + + <div class="card"> + <div class="card-body"> + <h5 class="card-title">Pending AI Engineer Requests:</h5> + <form method="POST" action="/home/"> + {% csrf_token %} + {% for account in pending %} + <div class="card" style="width: 18rem; margin-right: 15px;"> + <div class="card-body"> + <h5 class="card-title">Username: {{ account.user.user }}</h5> + <h6 class="card-subtitle mb-2 text-muted">AI Engineer Request</h6> + <label class="checkbox-label" for="approve-checkbox-{{ account.user }}">Approve</label> + <input type="checkbox" id="{{ account.user }}" name="approved_accounts" value="{{ account.user.id }}"> + </div> + </div> + {% endfor %} + <button type="submit" class="btn btn-primary">Submit</button> + </form> + </div> + </div> </div>