odoo/documentation#19132

Created by fw-bot

Blocked

label
odoo-dev:saas-18.3-17.0-add-card-img-nikbr-550612-fw
head
d6788933fb84470212bd8677c585c03dd1c157f8
odoo/documentation
17.0 #18946
18.0 #19131 missing r+
saas-18.3 #19132 missing r+
saas-18.4 #19133 missing r+
19.0 #19135 missing r+
saas-19.1 #19136 missing r+
saas-19.2 #19137 missing r+
saas-19.3 #19139 missing r+
saas-19.4 #19140 missing r+
master #19141 missing r+

[IMP] Add image option to cards, update guidelines

Summary:

Extends the custom Card RST directive to allow for images and alt text based on bootstrap conventions. Added an example in the guidelines and tweaked layout javascript to make card images render correctly.

Task: https://www.odoo.com/odoo/project/3835/tasks/6393116

<img width="1707" height="994" alt="image" src="https://github.com/user-attachments/assets/14e89b9b-4997-4cb3-abc2-3866d3605bab" />

 .. card:: Card with image
                :target: ../documentation
                :large:
                :image: placeholder-card-image.png
                :alt: Placeholder card image

                Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor.

This 17.0 PR can be FWP up to master.

Forward-Port-Of: #18946