-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/3887 maned ed required for new group #2386
Open
amdomanska
wants to merge
10
commits into
develop
Choose a base branch
from
feature/3887_maned_ed_required_for_new_group
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 5 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
be6538d
validate editor and maned editor
amdomanska 2798a60
style error messages
amdomanska 221dd14
add new editor group functional test
amdomanska cd7d468
refactor scss
amdomanska c232ec3
allow clear for editor
amdomanska aff0c2f
Add appropriate validator to WTForm
amdomanska 5e96ab0
remove comments
amdomanska a4b259c
add comment to the editor group form
amdomanska 787e4d7
remove unnecessary init
amdomanska 7c67a73
migrate template changes to new template structure
richard-jones File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
.editor_group_form { | ||
&--error { | ||
margin-top: -1.5rem; //move visually into question-container | ||
margin-bottom: $spacing-04; | ||
|
||
color: $sanguine; | ||
|
||
&:before { | ||
display: inline-block; | ||
margin-right: $spacing-01; | ||
content: ''; | ||
background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 4.6V7M7 9.4H7.006M4.516 1H9.484L13 4.516V9.484L9.484 13H4.516L1 9.484V4.516L4.516 1Z' stroke='%23982E0A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A"); | ||
background-repeat: no-repeat; | ||
height: 14px; | ||
width: 14px; | ||
} | ||
|
||
} | ||
|
||
} |
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a few oddities here.
There are a bunch of semi-colons on the new code, which aren't necessary, looks like you were in javascript mode when you wrote this :)
Also, overriding the main validate function isn't something I've seen done before. The validation effect we want to achieve is for both managing editor and editor to be required fields, so we just need to remove the Optional validator from both of those, surely?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're absolutely right—there's definitely something strange going on here! I must have had one foot in JavaScript and the other in... well, somewhere else entirely. 😅 Thanks for catching those rogue semi-colons.
As for the validation function override, I honestly have no idea what I was thinking there. I'll get that sorted out right away and remove the unnecessary override. Thanks for the sharp eye, and sorry for the code 💩 !