From 21718e5c0377426fb75db4f807d7a34e0f9d846d Mon Sep 17 00:00:00 2001
From: Jingchao Zhong <92573736+perryzjc@users.noreply.github.com>
Date: Mon, 26 Feb 2024 19:29:44 -0800
Subject: [PATCH] Update UI logic for request info and pass the test
---
app/views/main/_deny_modal.html.erb | 106 +++---
app/views/main/dashboard.html.erb | 108 +++---
features/admin.feature | 427 ++++++++++++-----------
features/step_definitions/admin_steps.rb | 42 +--
4 files changed, 356 insertions(+), 327 deletions(-)
diff --git a/app/views/main/_deny_modal.html.erb b/app/views/main/_deny_modal.html.erb
index 5ebafe1a..92114fec 100644
--- a/app/views/main/_deny_modal.html.erb
+++ b/app/views/main/_deny_modal.html.erb
@@ -5,24 +5,25 @@
- <%= label_tag 'denial_reason', 'Reason', class: 'control-label' %>
- <%# The text field values are now filled when the modal is opened %>
- <%= text_field_tag 'js_name_field', nil, class: "form-control" %>
-
-
- <%= check_box_tag :skip_email, 'skip_email', false, class: 'form-check-input' %>
- <%= label_tag 'skip_email', 'Skip email notifcation?', class: 'form-check-label' %>
-
+ <%= hidden_field_tag :action_type, '', class: "form-control action-type" %>
+ <%= label_tag 'action_reason', 'Reason', class: 'control-label' %>
+ <%= text_field_tag :action_reason_placeholder, '', class: "form-control action-reason", id: "action_reason" %>
+
+
+ <%= check_box_tag :skip_email, 'skip_email', false, class: 'form-check-input' %>
+ <%= label_tag 'skip_email', 'Skip email notifcation?', class: 'form-check-label' %>
+
diff --git a/app/views/main/dashboard.html.erb b/app/views/main/dashboard.html.erb
index ca4d6840..bb83db7c 100644
--- a/app/views/main/dashboard.html.erb
+++ b/app/views/main/dashboard.html.erb
@@ -1,44 +1,44 @@
<% provide(:title, "BJC Teacher Dashboard") %>