odoo/documentation#19131

Created by fw-bot
Merged at 80c3420acf1771326fa2be8852426c284bf4510c

Statuses:

label
odoo-dev:18.0-17.0-add-card-img-nikbr-547288-fw
head
817e17ce62c93641d020305f1f53ffe7ff6b404d
merged
8 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