Skip to content

Add TallyItemForm with optional validation - #26

Open
MHUGGLER wants to merge 1 commit into
codeforsanjose:mainfrom
MHUGGLER:feature/tally-item-form
Open

Add TallyItemForm with optional validation#26
MHUGGLER wants to merge 1 commit into
codeforsanjose:mainfrom
MHUGGLER:feature/tally-item-form

Conversation

@MHUGGLER

Copy link
Copy Markdown

This PR adds a new TallyItemForm component for creating TallyItems in a TallyReport.

The form includes the required fields:

  • name (required)
  • sku
  • modelNum
  • serialNum
  • picture

Features:

  • Simple controlled form using Qwik
  • Tailwind-based styling
  • Optional validation function support (as requested in the issue)
  • Follows existing patterns from LoginForm and RegisterForm components

This is intended as a simple, extensible UI component as discussed in the issue.

preventdefault:submit
class='flex flex-col gap-4 p-4'
>
<h2 class='text-xl font-bold'>Add Tally Item</h2>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

we should change this to be a instead since h tags should be carefully used and not used for styling purposes.

>
<h2 class='text-xl font-bold'>Add Tally Item</h2>

<input

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could you please make this input field into a component as well for reuse?

@JMStudiosJoe JMStudiosJoe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

great work so far. a few changes and should be good to go thank you!

@JMStudiosJoe

Copy link
Copy Markdown
Contributor

Any updates on this pr? Just a couple minor changes then can merge.

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