Skip to content
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

Add class representing a Div #3169

Merged
merged 1 commit into from
Nov 13, 2024
Merged

Add class representing a Div #3169

merged 1 commit into from
Nov 13, 2024

Conversation

stveit
Copy link
Contributor

@stveit stveit commented Nov 7, 2024

Adds a blank div as replacement for the crispyforms Div class.
Part of the uncrispyfication (#2794).

Arnold ManualDetentionForm and DetentionProfileForm use Divs with a specific class added to it
to make it hide and reappear. Tried to recreate the effect using widget manipulation, changes to arnold.scss etc etc..

Using a FormRow worked the best, but still wasnt perfect (it messed up the margins for some reason). As a FormRow is just a div with the "row" css class added to it, it seems reasonable to have a class for blank div that you can do whatever you want with.

@stveit stveit self-assigned this Nov 7, 2024
Copy link

github-actions bot commented Nov 7, 2024

🦙 MegaLinter status: ✅ SUCCESS

Descriptor Linter Files Fixed Errors Elapsed time
✅ PYTHON black 992 0 11.17s
✅ PYTHON ruff 987 0 0.1s

See detailed report in MegaLinter reports

MegaLinter is graciously provided by OX Security

Copy link

github-actions bot commented Nov 7, 2024

Test results

    9 files      9 suites   8m 32s ⏱️
2 138 tests 2 138 ✅ 0 💤 0 ❌
4 015 runs  4 015 ✅ 0 💤 0 ❌

Results for commit 64ec82a.

♻️ This comment has been updated with latest results.

Copy link

codecov bot commented Nov 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.39%. Comparing base (3f0faab) to head (64ec82a).
Report is 4 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3169      +/-   ##
==========================================
- Coverage   60.39%   60.39%   -0.01%     
==========================================
  Files         605      605              
  Lines       43704    43709       +5     
  Branches       48       48              
==========================================
+ Hits        26396    26398       +2     
- Misses      17296    17299       +3     
  Partials       12       12              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

python/nav/web/crispyforms.py Outdated Show resolved Hide resolved
python/nav/web/crispyforms.py Outdated Show resolved Hide resolved
python/nav/web/crispyforms.py Outdated Show resolved Hide resolved
Just a blank div that can be customized with classes
and stuff.
replaces crispyforms Div.
Copy link

sonarcloud bot commented Nov 13, 2024

Copy link
Contributor

@podliashanyk podliashanyk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nicely done!

@stveit stveit merged commit d4678db into master Nov 13, 2024
13 of 14 checks passed
@stveit stveit deleted the uncrispify/add-div-class branch November 13, 2024 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants