mix phoenix_kit.gen.admin_page (phoenix_kit v1.7.33)

Copy Markdown View Source

Igniter task that generates admin pages using template files.

Usage

mix phoenix_kit.gen.admin_page MyCategory MyPage "Page Title" --url="/admin/my-page"

Arguments

  • category - The category name
  • page_name - The name for the page module (PascalCase)
  • page_title - The display title for the page

Options

  • --url - The URL path for the page (required)
  • --icon - Heroicon name for the page (optional, defaults to "hero-document-text")
  • --description - Brief description for the page (optional)
  • --category-icon - Heroicon name for the category (optional, defaults to "hero-folder"). Only used when creating a new category.