odoo/documentation#19135

Created by fw-bot
Merged at 049c95ab1088b43bfb092036401184a3646d7e92

Statuses:

label
odoo-dev:19.0-17.0-add-card-img-nikbr-550618-fw
head
1c375044fd170924d0b3fbfeca84c8f70e185956
merged
12 hours ago by Documentation, Niki Brown (nikbr)
odoo/documentation
17.0 #18946
18.0 #19131
saas-18.3 #19132
saas-18.4 #19133
19.0 #19135
saas-19.1 #19136
saas-19.2 #19137
saas-19.3 #19139
saas-19.4 #19140
master #19141 ready

[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