PSMList 0.4.0 PSM-040-061
| Ordre affichage : | 55 | Création : | 05/07/2023 11h46 |
| Index BL : | 61 | Modification : | 05/07/2023 23h17 |
| BL : | PSM-040-061 | ||
| Source : | Aucune | Soeurs : | - |
| 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. | ||
| Fascicule : | Ne pas communiquer : | ||
| Alerte Mailing : |
| Statut PreP : | OK - Validé | Testeur : | ARS - Arshellan |
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/> }
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/>}
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>