-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(questionnaires): Allows directors to block new questionnaires (#279
) * feat(questionnaires): Allows directors to block new questionnaires * Fixes Hound issues * Updates app/views/questionnaires/new.html.haml Co-authored-by: Peter Kos <pkos91@icloud.com> * fix: Compatibility fix with hm-222 Co-authored-by: Peter Kos <pkos91@icloud.com>
- Loading branch information
1 parent
54d2cea
commit 5e03082
Showing
6 changed files
with
37 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,23 @@ | ||
- title "Apply" | ||
.form-container | ||
%h1.section-title | ||
Apply for | ||
%span.emphasized= HackathonConfig['name'] | ||
- title "Application" | ||
- if HackathonConfig['accepting_questionnaires'] | ||
.form-container | ||
%h1.section-title | ||
Apply for | ||
%span.emphasized= HackathonConfig['name'] | ||
= render 'form' | ||
- else | ||
.form-container | ||
#disclaimer | ||
%h1.section-title | ||
Applications Closed | ||
%p | ||
- if HackathonConfig['questionnaires_closed_message'].present? | ||
= markdown(HackathonConfig['questionnaires_closed_message']) | ||
- else | ||
Sorry, we are no longer accepting new applications to | ||
%strong | ||
#{HackathonConfig['name']}. | ||
%br | ||
%p.session-link.right | ||
Don't need your account? #{link_to "Delete my account", user_registration_path, data: { confirm: "Are you sure? Your account and any related data will be permanently erased." }, method: :delete} | ||
|
||
= render 'form' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters