modal.rst 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. Modal Block
  2. ===========
  3. Creates a popup box with a header, footer, and the ability to display the body as a block.
  4. Field Reference
  5. ---------------
  6. Fields and purposes:
  7. * **Button Title** - The text to show on the button. You can insert simple HTML
  8. here as well, such as ``Learn <b>More</b>``.
  9. * **Button Style** - The appearance of the button. This is a choice loaded from
  10. ``CRX_FRONTEND_BTN_STYLE_CHOICES`` Django setting and is inserted as a
  11. CSS class in the HTML.
  12. * **Button Size** - The size of button. This is a choice loaded from
  13. ``CRX_FRONTEND_BTN_SIZE_CHOICES`` Django setting and is inserted as a CSS
  14. class in the HTML.
  15. * **Modal Heading** - The heading, or title, that will display on the modal
  16. * **Content** - Choose from other content blocks for the body of the modal.
  17. * **Modal Footer** - Choose a Simple Text footer or a button link
  18. Once it is published, website visitors can click the button to see the popup message.
  19. .. figure:: img/cupcake_modal_sample.png
  20. :alt: Our cupcake modal
  21. Our cupcake modal as it appears on the page