Skip to content
Code-Schnipsel Gruppen Projekte
Commit 2a8c75ec erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

refactor: consider text articles in article view / list

Übergeordneter 19483041
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
Keine zugehörigen Merge Requests gefunden
......@@ -171,6 +171,10 @@ public function toHTML(): string
'customFields' => $customFields
]);
if ($this->Article instanceof QUI\ERP\Accounting\Articles\Text) {
return $Engine->fetch(\dirname(__FILE__).'/ArticleViewText.html');
}
return $Engine->fetch(\dirname(__FILE__).'/ArticleView.html');
}
}
<tr>
<td class="articles-article-pos"
data-label="{locale group='quiqqer/erp' var='article.list.articles.header.pos'}"
>
{$position}
</td>
<td class="articles-article-information"
data-label="{locale group='quiqqer/erp' var='article.list.articles.header.description'}"
colspan="7"
>
<div class="articles-article-information-title">
{$this->getAttribute('title')}
</div>
<div class="articles-article-information-description">
{$this->getAttribute('description')}
</div>
<ul class="quiqqer-order-basket-articles-article-fields">
{foreach $customFields as $field}
<li class="quiqqer-order-basket-articles-article-fields-field">
<span>{$field.title}:</span>
{if isset($field.custom_calc) && isset($field.custom_calc.valueText)}
<span>{$field.custom_calc.valueText}</span>
{/if}
</li>
{/foreach}
</ul>
</td>
</tr>
0% Lade oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren