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

refactor(admin-ui): js in edit revision (DateTime, Reorder, Sortable, ..) #770

Merged
merged 17 commits into from
Feb 16, 2024

Conversation

theus77
Copy link
Member

@theus77 theus77 commented Feb 16, 2024

Q A
Bug fix? n
New feature? n
BC breaks? n
Deprecations? y
Fixed tickets? n
Documentation? n
  • datetime picker in edit revision + auto open modal
  • fixes uuid v4,
  • jquery-ui sortable,
  • ajax update invalid messages,
  • reorder children in edit CT,
  • parse ATOM date

@theus77 theus77 changed the title refactor: datetime picker in edit revision refactor: datetime picker in edit revision + auto open modal Feb 16, 2024
@theus77 theus77 changed the title refactor: datetime picker in edit revision + auto open modal refactor: datetime picker in edit revision + auto open modal + fixes(uuid v4, jquery-ui sortable, ajax update invalid messages, reorder children in edit CT, parse ATOM date) Feb 16, 2024
@theus77 theus77 marked this pull request as ready for review February 16, 2024 10:13
@theus77 theus77 requested a review from a team as a code owner February 16, 2024 10:13
Comment on lines +175 to +204

// const targetLabel = $('#' + target + '__label')
// const targetError = $('#' + target + '__error')
//
// const propPath = $('#' + item.propertyPath + '_value')
// if (propPath.length && propPath.prop('nodeName') === 'TEXTAREA') {
// target = item.propertyPath + '_value'
// }

// const targetParent = $('#' + target)
// if (targetLabel.length) {
// targetLabel.closest('div.form-group').addClass('has-error')
// if (item.message && targetError.length > 0) {
// targetError.addClass('has-error')
// if ($('#' + target + '__error span.help-block').length === 0) {
// targetError.append('<span class="help-block"><ul class="list-unstyled"></ul></span>')
// }
// $('#' + target + '__error' + ' span.help-block ul.list-unstyled').append('<li><span class="glyphicon glyphicon-exclamation-sign"></span> ' + item.message + '</li>')
// }
// } else {
// $('#' + target).closest('div.form-group').addClass('has-error')
// targetParent.parents('.form-group').addClass('has-error')
// if (item.message) {
// if (targetParent.parents('.form-group').find(' span.help-block').length === 0) {
// targetParent.parent('.form-group').append('<span class="help-block"><ul class="list-unstyled"><li><span class="glyphicon glyphicon-exclamation-sign"></span> ' + item.message + '</li></ul></span>')
// } else {
// targetParent.parents('.form-group').find(' span.help-block ul.list-unstyled').append('<li><span class="glyphicon glyphicon-exclamation-sign"></span> ' + item.message + '</li>')
// }
// }
// }
Copy link
Member

Choose a reason for hiding this comment

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

work in progress ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes. I'll clean it after the refactoring of all FieldTypes

@Davidmattei Davidmattei changed the title refactor: datetime picker in edit revision + auto open modal + fixes(uuid v4, jquery-ui sortable, ajax update invalid messages, reorder children in edit CT, parse ATOM date) refactor(admin-ui): js in edit revision (DateTime, Reorder, Sortable, ..) Feb 16, 2024
@theus77 theus77 merged commit e31c86d into ems-project:6.x Feb 16, 2024
4 checks passed
@theus77 theus77 deleted the ref/edit-revision branch March 5, 2024 04:25
@Davidmattei Davidmattei added this to the 6.0.0 milestone Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants