Skip to content

Commit

Permalink
Rüdenliste fertiggestellt
Browse files Browse the repository at this point in the history
  • Loading branch information
conpassione committed Dec 15, 2024
1 parent 57dc659 commit 05cdf24
Show file tree
Hide file tree
Showing 10 changed files with 247 additions and 10 deletions.
44 changes: 41 additions & 3 deletions ContentBlocks/ContentElements/Licensdoglist/assets/frontend.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,44 @@
/* Created by Content Blocks */

.cptextblock {
border: 1px solid red;
background-color: firebrick;
.licdogslist {
--_clr-accent: var(--clr-brand--primary);
--_clr-header: var(--clr-bw-090);
container: licdogslist / inline-size;

.licdogs {
display: grid;
gap: var(--gutter);
}

.licdogcard--devider {
grid-column: 1 / -1;
}

.licdogcard {
display: grid;
gap: var(--gutter);
grid-template-columns: 1fr;
@container licdogslist (width > 480px) {
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
border: 1px solid var(--_clr-accent);
}

.licdogcard > * {
padding: calc(var(--gutter)/2);
}

.licdogcard--header {
grid-column: 1 / -1;
color: var(--_clr-header);
}

.licdogcard--variety-1 {
background-color: var(--_clr-accent);
}

.licdogcard--variety-2 {
background-color: var(--_clr-accent);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<f:asset.css identifier="cplicdogs" href="{cb:assetPath()}/frontend.css" />

<div class="cplicdogslist">
<div class="licdogslist">
<f:if condition="{data.header}">
<f:cObject
typoscriptObjectPath="tt_content.header"
Expand All @@ -19,12 +19,45 @@
<f:for as="dog" each="{licdogs}" iteration="i-licdogs">
<f:if condition="({variety} == {dog.data.p_variety}) && ({i-licdogs.index} == 0) "><h3 class="h3 licdogs--devider">Museau Normale</h3></f:if>
<f:if condition="({variety} == {dog.data.p_variety}) && ({i-licdogs.index} > 0) "></f:if>
<f:if condition="({variety} != {dog.data.p_variety})"><h3 class="h3 licdogs--devider">Face Rase</h3>
<f:if condition="({variety} != {dog.data.p_variety})"><h3 class="h3 licdogcard--devider">Face Rase</h3>
<f:variable name="variety">{dog.data.p_variety}</f:variable>
</f:if>
<div class="licdogscard" aria-label="Dogs">
<h3 class="licdogscard--header h3-font">{dog.data.p_name}</h3>
<p>{dog.data.p_birth_date}</p>
<div class="licdogcard" id="dog{dog.data.uid}" aria-label="Dogs">
<h3 class="licdogcard--header licdogcard--variety-{dog.data.p_variety} h3-font">{dog.data.p_name} {dog.kennels.0.data.k_name}</h3>
<div class="licdogcard--dog">
<h4><f:translate key="LLL:EXT:cpkm/Resources/Private/Language/locallang.xlf:licdogs.dog"/></h4>
<time datetime="{dog.data.p_birth_date -> f:format.date(format: '%d.%m.%Y')}">
<f:format.date format="%d. %B %Y">{dog.data.p_birth_date}</f:format.date></time><br>
<f:translate key="LLL:EXT:cpkm/Resources/Private/Language/locallang.xlf:licdogs.dog.color"/>: {dog.data.p_color}<br>
<f:translate key="LLL:EXT:cpkm/Resources/Private/Language/locallang.xlf:licdogs.dog.size"/>: {dog.data.p_size}<br>
<f:translate key="LLL:EXT:cpkm/Resources/Private/Language/locallang.xlf:licdogs.dog.results"/>:<br>
<f:for as="resultdoc" each="{dog.resultdocs}" iteration="idocs">
<f:link.file class="file-link--icon" file="{resultdoc}" target="_blank">PDF-{idocs.cycle}</f:link.file><br>
</f:for>
</div>
<div class="licdogcard--address">
<h4><f:translate key="LLL:EXT:cpkm/Resources/Private/Language/locallang.xlf:licdogs.owner"/></h4>
{dog.data.p_first_name} {dog.data.p_last_name}<br>
{dog.data.p_address -> f:format.nl2br()}<br>
<f:link.external uri="tel:{dog.data.p_mobile}" class="phone-link--icon">{dog.data.p_mobile}</f:link.external><br>
<f:link.email email="{dog.data.p_email}" class="mail-link--icon">{dog.data.p_email}</f:link.email> <br>
<f:link.external uri="{dog.data.p_web}" target="_blank" class="url-link--icon">{dog.data.p_web}</f:link.external><br>
</div>
<div class="licdogcard--breeder">
<h4><f:translate key="LLL:EXT:cpkm/Resources/Private/Language/locallang.xlf:licdogs.breeder"/></h4>
{dog.kennels.0.data.k_name}<br>
{dog.kennels.0.data.k_first_name} {dog.kennels.0.data.k_last_name}<br>
<f:link.external uri="{dog.kennels.0.data.k_web}" target="_blank" class="url-link--icon">{dog.kennels.0.data.k_web}</f:link.external>
</div>
<div class="licdogcard--images">
<f:if condition="{dog.images}">
<f:cObject
typoscriptObjectPath="tt_content.image"
data="{header: '', showcaption:'1', files: dog.images}"
table="tt_content"
/>
</f:if>
</div>
</div>
</f:for>
</f:then>
Expand Down
32 changes: 32 additions & 0 deletions Resources/Private/Language/de.locallang.xlf
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
<file source-language="en" target-language="de" original="locallang.xlf" datatype="plaintext" product-name="conpassione/cpkm" date="2024-12-15T18:08:19+01:00">
<header></header>
<body>
<trans-unit id="licdogs.breeder" resname="licdogs.breeder">
<source>Breeder</source>
<target>Züchter</target>
</trans-unit>
<trans-unit id="licdogs.dog" resname="licdogs.dog">
<source>Dog</source>
<target>Hund</target>
</trans-unit>
<trans-unit id="licdogs.dog.color" resname="licdogs.dog.color">
<source>Color</source>
<target>Farbe</target>
</trans-unit>
<trans-unit id="licdogs.dog.results" resname="licdogs.dog.results">
<source>Result of the approval</source>
<target>Resultat der Ankörung</target>
</trans-unit>
<trans-unit id="licdogs.dog.size" resname="licdogs.dog.size">
<source>Size</source>
<target>Grösse</target>
</trans-unit>
<trans-unit id="licdogs.owner" resname="licdogs.owner">
<source>Owner</source>
<target>Besitzer</target>
</trans-unit>
</body>
</file>
</xliff>
2 changes: 1 addition & 1 deletion Resources/Private/Language/de.locallang_db.xlf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
<file source-language="en" target-language="de" original="Labels.xlf" datatype="plaintext" product-name="conpassione/kennel" date="2024-10-17T17:05:35+02:00">
<file source-language="en" target-language="de" original="locallang_db.xlf" datatype="plaintext" product-name="conpassione/cpkm" date="2024-12-15T18:08:19+01:00">
<header></header>
<body>
<trans-unit id="extname" resname="extname">
Expand Down
31 changes: 31 additions & 0 deletions Resources/Private/Language/fr.locallang.xlf
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
<file source-language="en" target-language="fr" original="locallang.xlf" datatype="plaintext" product-name="conpassione/cpkm" date="2024-12-15T18:08:19+01:00">
<body>
<trans-unit id="licdogs.breeder" resname="licdogs.breeder">
<source>Breeder</source>
<target>Éleveur</target>
</trans-unit>
<trans-unit id="licdogs.dog" resname="licdogs.dog">
<source>Dog</source>
<target>Ètalon</target>
</trans-unit>
<trans-unit id="licdogs.dog.color" resname="licdogs.dog.color">
<source>Color</source>
<target>Couleur</target>
</trans-unit>
<trans-unit id="licdogs.dog.results" resname="licdogs.dog.results">
<source>Result of the approval</source>
<target>Résultat de la sélection</target>
</trans-unit>
<trans-unit id="licdogs.dog.size" resname="licdogs.dog.size">
<source>Size</source>
<target>Taille</target>
</trans-unit>
<trans-unit id="licdogs.owner" resname="licdogs.owner">
<source>Owner</source>
<target>Propriétaire</target>
</trans-unit>
</body>
</file>
</xliff>
23 changes: 23 additions & 0 deletions Resources/Private/Language/fr.locallang_db.xlf
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
<file source-language="en" target-language="fr" original="locallang_db.xlf" datatype="plaintext" product-name="conpassione/cpkm" date="2024-12-15T18:08:19+01:00">
<body>
<trans-unit id="extname" resname="extname">
<source>Kennel Management</source>
<target>Gestion de l&#39;élevage</target>
</trans-unit>
<trans-unit id="pages.label.kennel" resname="pages.label.kennel">
<source>Kennel</source>
<target>Centre d&#39;élevage</target>
</trans-unit>
<trans-unit id="pages.label.litter" resname="pages.label.litter">
<source>Litter</source>
<target>Annonce de saillie et de portée</target>
</trans-unit>
<trans-unit id="pages.label.pedigree" resname="pages.label.pedigree">
<source>Pedigree</source>
<target>Pedigree</target>
</trans-unit>
</body>
</file>
</xliff>
31 changes: 31 additions & 0 deletions Resources/Private/Language/it.locallang.xlf
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
<file source-language="en" target-language="it" original="locallang.xlf" datatype="plaintext" product-name="conpassione/cpkm" date="2024-12-15T18:08:19+01:00">
<body>
<trans-unit id="licdogs.breeder" resname="licdogs.breeder">
<source>Breeder</source>
<target>Allevatore</target>
</trans-unit>
<trans-unit id="licdogs.dog" resname="licdogs.dog">
<source>Dog</source>
<target>Cane</target>
</trans-unit>
<trans-unit id="licdogs.dog.color" resname="licdogs.dog.color">
<source>Color</source>
<target>Colore</target>
</trans-unit>
<trans-unit id="licdogs.dog.results" resname="licdogs.dog.results">
<source>Result of the approval</source>
<target>Risultato dell&#39;approvazione</target>
</trans-unit>
<trans-unit id="licdogs.dog.size" resname="licdogs.dog.size">
<source>Size</source>
<target>Altezza</target>
</trans-unit>
<trans-unit id="licdogs.owner" resname="licdogs.owner">
<source>Owner</source>
<target>Proprietario</target>
</trans-unit>
</body>
</file>
</xliff>
23 changes: 23 additions & 0 deletions Resources/Private/Language/it.locallang_db.xlf
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
<file source-language="en" target-language="it" original="locallang_db.xlf" datatype="plaintext" product-name="conpassione/cpkm" date="2024-12-15T18:08:19+01:00">
<body>
<trans-unit id="extname" resname="extname">
<source>Kennel Management</source>
<target>Amministrazione dell&#39;allevamento</target>
</trans-unit>
<trans-unit id="pages.label.kennel" resname="pages.label.kennel">
<source>Kennel</source>
<target>Centro di allevamento</target>
</trans-unit>
<trans-unit id="pages.label.litter" resname="pages.label.litter">
<source>Litter</source>
<target>Rapporto sugli stalloni e sulla cucciolata</target>
</trans-unit>
<trans-unit id="pages.label.pedigree" resname="pages.label.pedigree">
<source>Pedigree</source>
<target>Albero genealogico</target>
</trans-unit>
</body>
</file>
</xliff>
26 changes: 26 additions & 0 deletions Resources/Private/Language/locallang.xlf
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
<file source-language="en" original="locallang.xlf" datatype="plaintext" product-name="conpassione/cpkm" date="2024-12-15T18:08:19+01:00">
<header></header>
<body>
<trans-unit id="licdogs.breeder" resname="licdogs.breeder">
<source>Breeder</source>
</trans-unit>
<trans-unit id="licdogs.dog" resname="licdogs.dog">
<source>Dog</source>
</trans-unit>
<trans-unit id="licdogs.dog.color" resname="licdogs.dog.color">
<source>Color</source>
</trans-unit>
<trans-unit id="licdogs.dog.results" resname="licdogs.dog.results">
<source>Result of the approval</source>
</trans-unit>
<trans-unit id="licdogs.dog.size" resname="licdogs.dog.size">
<source>Size</source>
</trans-unit>
<trans-unit id="licdogs.owner" resname="licdogs.owner">
<source>Owner</source>
</trans-unit>
</body>
</file>
</xliff>
2 changes: 1 addition & 1 deletion Resources/Private/Language/locallang_db.xlf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
<file source-language="en" original="labels.xlf" datatype="plaintext" product-name="conpassione/kennel" date="2024-10-17T17:05:35+02:00">
<file source-language="en" original="locallang_db.xlf" datatype="plaintext" product-name="conpassione/cpkm" date="2024-12-15T18:08:19+01:00">
<header></header>
<body>
<trans-unit id="extname" resname="extname">
Expand Down

0 comments on commit 05cdf24

Please sign in to comment.