Skip to content

Commit fe4f0ae

Browse files
committed
require comments and add "non veteran" option in mentor request form
1 parent 57a6aff commit fe4f0ae

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

pybot/endpoints/slack/message_templates/commands.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def mentor_request_blocks(services, skillsets):
7878
{
7979
"type": "section",
8080
"block_id": "comments",
81-
"text": {"type": "mrkdwn", "text": "*Add additional comments* (optional)"},
81+
"text": {"type": "mrkdwn", "text": "*Add comments* (required)"},
8282
"accessory": {
8383
"type": "button",
8484
"action_id": "comments_btn",
@@ -111,6 +111,10 @@ def mentor_request_blocks(services, skillsets):
111111
"text": {"type": "plain_text", "text": "Military Spouse"},
112112
"value": "Military Spouse",
113113
},
114+
{
115+
"text": {"type": "plain_text", "text": "Non Veteran"},
116+
"value": "Non Veteran",
117+
},
114118
],
115119
},
116120
},

pybot/endpoints/slack/message_templates/mentor_request.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,14 @@ def affiliation(self, new_affiliation: str) -> None:
8181
self.clear_errors()
8282

8383
def validate_self(self) -> bool:
84-
if not self.service or not self.affiliation:
84+
if not self.service or not self.affiliation or not self.details:
8585
return False
8686
self.clear_errors()
8787
return True
8888

8989
def add_errors(self) -> None:
9090
submit_attachment = {
91-
"text": ":warning: Service and group certification are required. :warning:",
91+
"text": ":warning: Service, group certification and comments are required. :warning:",
9292
"color": "danger",
9393
}
9494
self.attachments = [submit_attachment]

0 commit comments

Comments
 (0)