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

Update work_search.html #10122

Conversation

longbui23
Copy link
Contributor

Closes #10049

This PR does these things:

  • Add an option to "add a new book" when no results are found on the book search page
  • Ensure the layout aligns with the page and stakeholder expectations

Technical

  • Insert an HTML anchor (<a>) element with the following attributes:
    • href="/books/add": Links to the "/books/add" route
    • class="btn btn-primary": Applies Bootstrap button styling
    • Content: Displays localized text for "Add a new book" using $_() function
    • Enclosed in a closing </div> tag, suggesting it's part of a container

Testing

  • Use the automatic testing.
  • Confirm that the new button is added for adding a new book if no results are found on the book search page
  • Cross-check for any visual inconsistencies on related pages and expectations of the stakeholder.

Screenshot

Stakeholders

@RayBB

@longbui23
Copy link
Contributor Author

Co-author: @QuangPhung15

@longbui23 longbui23 closed this Dec 6, 2024
@longbui23 longbui23 deleted the 10049/features/add-book-when-no-result branch December 6, 2024 02:18
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.

Add an option to "add a new book" when no results are found on the book search page
1 participant