5e263e09a1118f14427dd489e8df3ec1.png PSMList 0.4.0 PSM-040-061

Général

Ordre affichage : 55 Création : 05/07/2023 11h46
Index BL : 61 Modification : 05/07/2023 23h17
BL : PSM-040-061

Source : Aucune Soeurs : -

Dev

Fin dev :   D (Done) Ticket : -
Contrôle dev effectué : Fiche : -

C.Qualif. :   #000000
Activé : Icône FA : Par défaut

Contact : ARS - Arshellan Qualification : Nouveauté
Répartition : - Module : Details
Dev : ARS - Arshellan Sous module : Ship

Provenance : 0.4.0  New Constat : -

Début : S.27 Charge j. : -
Fin : S.27 Délai j. : -
Priorité : - Pokercard : -
Estimatif j. : -

Description : Add a technical shape div just above the costs on the ship's detail page and also add a field for description

Texte Commit : -

Description client : In the detail pages for ships, you can now find more information about the technical shape of the ship.

Client

Fascicule : Ne pas communiquer :
Alerte Mailing :

PreP

Statut PreP :   OK - Validé Testeur : ARS - Arshellan

Discussion

ARS

Arshellan

mercredi 5 juillet 2023 à 11:58

in technicalshape.php<br/><br/><br/><br/> /**<br/> * @ORM\Column(type="string", length=127, nullable=true)<br/> */<br/> private $description;<br/><br/><br/><br/><br/><br/><br/> public function getDescription(): ?string {<br/> return $this->description;<br/> }<br/> public function setDescription(?string $description): self {<br/> $this->description = $description;<br/> return $this;<br/> }

ARS

Arshellan

mercredi 5 juillet 2023 à 12:10

card_display.css 422<br/><br/><br/><br/>/* technical shape display (ships) */<br/>.techshape_container {<br/> display: flex;<br/> align-items: center;<br/> font-size: 0.98em;<br/>}<br/>.techshape_container img {<br/> height: 100px;<br/>}<br/>.techshape_container .infos {<br/> height: 100%;<br/> display: flex;<br/> flex-wrap: wrap;<br/>}<br/>.techshape_container .infos p {<br/> width: 100%;<br/> margin: 0.3em 0 0.3em 1em;<br/>}<br/>.techshape_container .infos p.name {<br/> font-weight: bold;<br/> font-family: monospace;<br/> font-size: 1.5em;<br/>}

ARS

Arshellan

mercredi 5 juillet 2023 à 12:11

ship/detail.html.twig 212<br/><br/><br/> <div class="rawInfo_container whitebox techshape_container"><br/> <img src="{{ asset('img/technicalshape/' ~ ship.technicalshape.name ~ '.png') }}" alt="{{ ship.technicalshape.name }}"><br/> <div class="infos"><br/> <p class="name">{{ ship.technicalshape.name }}</p><br/> <p class="desc">{{ ship.technicalshape.description ?? '<i>No description provided</i>'|raw }}</p><br/> <p class="link"><br/> See all shapes (<a href="{{ path('technicalshape_list') }}">here</a>).<br/> </p><br/> </div><br/> </div>

ARS

Arshellan

mercredi 5 juillet 2023 à 14:10

the import script is in the mail, delete the lines before adding it