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

Moving to BS5 with a bit of 3rd party updating #531

Open
wants to merge 33 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
37f4324
Updated template to BS5 styles
trollfot Nov 21, 2023
b84faf3
Updated tinyMCE to the latest Free version, 6.3
trollfot Nov 21, 2023
74367e3
Fix tests for select and tinymce widgets
goschtl Nov 21, 2023
4634094
Fix length of assertation
goschtl Nov 21, 2023
5e992db
format default_options
goschtl Nov 21, 2023
e419cc5
Fixed sequence item 'invalid'/error markings. Removed error class fro…
trollfot Nov 22, 2023
ffa0fea
Fixed bug where the errors were NOT showing when using dateparts.
trollfot Nov 22, 2023
903fc4f
Work on the 'required' part. This is still uncomplete
trollfot Nov 22, 2023
1a5d917
Applied required on checkbox, dateparts, radio and select
trollfot Nov 22, 2023
1530110
Added required and error class for time, password, checkedinput
trollfot Nov 22, 2023
5bd7781
Work on autocomplete, checked_input, checked_password and money_input…
trollfot Nov 22, 2023
696a303
Fixed checked_password error_class display
trollfot Nov 22, 2023
7e598ed
Attempt at making checked_password a tighter input with input-group. …
trollfot Nov 22, 2023
77f1f95
Fixed description class in mapping item.
trollfot Nov 29, 2023
6b6af4a
Made checked_input an input-group
trollfot Nov 29, 2023
e9ad957
DummyField has now a 'required' attribute
trollfot Nov 29, 2023
3e9485b
checkbox with dummy in tests is now required
trollfot Nov 29, 2023
63b4922
Added invalid class at the wrapper level in checkbox_choice template …
trollfot Nov 30, 2023
c8ff367
Fixed 'required' and error classes for dateinput and textaread
trollfot Dec 1, 2023
e26e415
deformdemo from the fork.
trollfot Dec 1, 2023
fcb6b5b
Added invalid to time input field
trollfot Dec 8, 2023
fff4fe3
Fixed styles and markup for errors.
trollfot Dec 13, 2023
2ab37ed
Fixed missing languages in tinymce. Fixed fileupload by removing cust…
trollfot Dec 13, 2023
b2f1257
Made date parts a single input group
trollfot Dec 13, 2023
0d55c59
Update version of dependencies
trollfot Dec 15, 2023
4fdc2ea
reverted version. Just made sure colander is 1.0 stable
trollfot Dec 15, 2023
11f051b
fixing tinymce preload
trollfot Feb 12, 2024
9a6439d
Fixed tinymce selector
trollfot Feb 12, 2024
251ed49
Added error styles on tinymce
trollfot Feb 12, 2024
1fadd9d
blacked
trollfot Feb 12, 2024
0210067
Update CHANGES.txt
trollfot Feb 12, 2024
20b100d
Update TODO.txt
trollfot Feb 12, 2024
048e9ba
Update CHANGES.txt
trollfot Feb 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 11 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@
- Remove spurious styles definition
https://github.com/Pylons/deform/pull/504 [lelit]

- Adds HTML5 validation

- Update JS libs (TinyMCE)

- Update to Bootstrap5

Deprecations
^^^^^^^^^^^^

- Drop support of Python 3.6 and Python 3.7.


.. _2.0.15:

Expand Down
2 changes: 1 addition & 1 deletion TODO.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ TODOs
the name must be provided, on an edit form the name cannot be
provided).

- [ ] Make deform.widget.RichText render only on oid specific element
- [X] Make deform.widget.RichText render only on oid specific element
in templates.

- [ ] Work out RichTextWidget default height and width and overrides
Expand Down
1 change: 1 addition & 0 deletions deform/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Deform."""

# flake8: noqa
from . import exception # API
from . import form # API
Expand Down
1 change: 0 additions & 1 deletion deform/decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


class reify(object):

"""Put the result of a method which uses this (non-data)
descriptor decorator in the instance dict after the first call,
effectively replacing the decorator with an instance variable."""
Expand Down
1 change: 1 addition & 0 deletions deform/field.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Field."""

# Standard Library
import itertools
import re
Expand Down
1 change: 1 addition & 0 deletions deform/form.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Form."""

# Standard Library
import re

Expand Down
1 change: 1 addition & 0 deletions deform/i18n.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""I18n."""

from translationstring import TranslationStringFactory


Expand Down
1 change: 1 addition & 0 deletions deform/renderer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Renderer."""

from pkg_resources import resource_filename

# Deform
Expand Down
1 change: 1 addition & 0 deletions deform/schema.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Schema."""

# Pyramid
import colander

Expand Down
10 changes: 9 additions & 1 deletion deform/static/css/form.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,14 @@ form .required:after {
display:inline;
}

/* ugh, terrible selector coming up */
/* Required input marker on label, based on the 'required' attributes */
label.form-label:has(+ input[required]):after {
content: ' *';
color: red;
}


/* ugh, terrible selector coming up */
.hasDatepicker[readonly] {
cursor: pointer !important;
}
Expand All @@ -34,9 +40,11 @@ form .deform-readonly-text {
.btn-file {
background-color: #f2f2f2;
}

.btn-file:hover {
background-color: #ededed;
}

.upload-filename[readonly] {
background-color: #fdfdfd;
}
109 changes: 0 additions & 109 deletions deform/static/scripts/file_upload.js

This file was deleted.

Loading
Loading