Skip to content

WIP - Tailwind Forms #543

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

Open
wants to merge 10 commits into
base: form-base
Choose a base branch
from
Open

WIP - Tailwind Forms #543

wants to merge 10 commits into from

Conversation

sravfeyn
Copy link
Member

@sravfeyn sravfeyn commented Apr 4, 2025

Product Description

Technical Summary

Safety Assurance

Safety story

Automated test coverage

QA Plan

Labels & Review

  • The set of people pinged as reviewers is appropriate for the level of risk of the change

@sravfeyn
Copy link
Member Author

sravfeyn commented Apr 4, 2025

Here is how you can open it

  • Go to old opportunity list http://localhost:8000/a/test-1/opportunity/
  • Click View on any Active Opportunity
  • You will see ‘Configure Verification Flags’, click on it
  • You will go to a page like http://localhost:8000/a/test-1/opportunity/<opp_id>/verification_flags_config/. This is the old verification flags page.
  • You can prepend tw to go to new page for the same. http://localhost:8000/a/test-1/opportunity/<opp_id>/tw/verification_flags_config/. (alternatively, you can substitute opp_id with any valid opp_id to open it directly)

@sravfeyn sravfeyn closed this Apr 4, 2025
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)

self.fields["duplicate"].widget.attrs["class"] = CHECKBOX_CLASS
Copy link
Member Author

Choose a reason for hiding this comment

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

@black All you need to do to be able to customize the styling is by applying various tailwind classes on the fields here in Python. You can also change non-field related styles directly by editing verification_flags_config.html file https://github.com/dimagi/commcare-connect/pull/543/files#diff-584b1126b36c4ea38e26c452e1b8b70b8f8775a15233cf7ca0fcc348be27a112

@sravfeyn sravfeyn reopened this Apr 4, 2025
@sravfeyn sravfeyn changed the base branch from yume-ui to form-base April 4, 2025 10:35
@sravfeyn sravfeyn closed this Apr 4, 2025
@sravfeyn sravfeyn reopened this Apr 4, 2025
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.

2 participants