From d1fd1375a579f233147c23f8bd42db04c6a1ae41 Mon Sep 17 00:00:00 2001
From: Matthew K Defenderfer <mdefende@uab.edu>
Date: Tue, 3 Jun 2025 11:00:37 -0500
Subject: [PATCH] add reservation options to form and submission templates

---
 form.yml.erb   | 6 ++++++
 submit.yml.erb | 6 +++---
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/form.yml.erb b/form.yml.erb
index 427dd3b..301d1f5 100644
--- a/form.yml.erb
+++ b/form.yml.erb
@@ -38,10 +38,16 @@ attributes:
       - [ "<%= p %>", "<%= p %>" ]
     <%- end -%>
 
+  bc_reservation:
+    widget: "text_field"
+    label: Reservation
+    default: ""
+
 form:
   - desktop
   - bc_num_hours
   - bc_partition
+  - bc_reservation
   - bc_num_gpus
   - bc_num_slots
   - bc_num_mems
diff --git a/submit.yml.erb b/submit.yml.erb
index 516b352..e8326da 100644
--- a/submit.yml.erb
+++ b/submit.yml.erb
@@ -25,7 +25,7 @@ script:
     - "--mail-type=BEGIN"
     - "--mail-user=<%= email %>"
 <%- end -%>
-<%- if bc_email_on_started == "1" -%>
-    - "--mail-type=BEGIN"
-    - "--mail-user=<%= email %>"
+<%- if bc_reservation != "" -%>
+    - "--reservation=<%= bc_reservation %>"
 <%- end -%>
+
-- 
GitLab