* Vietnamese translation incomplete

My_businesses.html displays the list of businesses owned by the currently logged-in user

My_businesses.html displays the list of businesses owned by the currently logged-in user (English fallback)

Aug. 16, 2025

Posted by admin

 

This template (my_businesses.html) displays the list of businesses owned by the currently logged-in user. Here’s what it does:

- Extends the main blog base template and uses Django’s translation system. - Sets the page title to “My Businesses”.

Main sections:

1. Header

  • Shows the page title, subtitle, and an “Add New Business” button.

2. Messages

  • Displays any Django messages (e.g., success or error alerts).

3. Translation Status Summary

  • If the user has businesses, shows a summary card with counts for:
    • Total businesses
    • Pending translation
    • Translated
    • Reviewed

4. Businesses List

  • For each business, shows a card with:
    • Image (or placeholder)
    • Name, status badge (draft, pending, approved, rejected)
    • Category, short description
    • Translation status badge (pending, translated, reviewed), with translator info and date if available
    • Stats: views, phone clicks, website clicks
    • Creation date
    • Action buttons: View (if approved), Edit, Delete

5. Pagination

  • If there are multiple pages, shows pagination controls.

6. Empty State

  • If the user has no businesses, shows a message and a button to add the first business.

Styling:

  • Custom CSS for cards, badges, translation status, stats, and empty state for a clean, user-friendly look.

This page helps users manage their business listings, track translation progress, and quickly access actions for each business.

 

Vietnamese translation is not available for this article. Showing English content:

 

This template (my_businesses.html) displays the list of businesses owned by the currently logged-in user. Here’s what it does:

- Extends the main blog base template and uses Django’s translation system. - Sets the page title to “My Businesses”.

Main sections:

1. Header

  • Shows the page title, subtitle, and an “Add New Business” button.

2. Messages

  • Displays any Django messages (e.g., success or error alerts).

3. Translation Status Summary

  • If the user has businesses, shows a summary card with counts for:
    • Total businesses
    • Pending translation
    • Translated
    • Reviewed

4. Businesses List

  • For each business, shows a card with:
    • Image (or placeholder)
    • Name, status badge (draft, pending, approved, rejected)
    • Category, short description
    • Translation status badge (pending, translated, reviewed), with translator info and date if available
    • Stats: views, phone clicks, website clicks
    • Creation date
    • Action buttons: View (if approved), Edit, Delete

5. Pagination

  • If there are multiple pages, shows pagination controls.

6. Empty State

  • If the user has no businesses, shows a message and a button to add the first business.

Styling:

  • Custom CSS for cards, badges, translation status, stats, and empty state for a clean, user-friendly look.

This page helps users manage their business listings, track translation progress, and quickly access actions for each business.

 

Attached Files

0 files found.

You are viewing this article in public mode. Some features may be limited.