Implement key parameter rendering for components. In Stock viewer still missing

This commit is contained in:
2022-01-11 19:35:09 +01:00
parent ea623212bb
commit a566e198b8
4 changed files with 47 additions and 9 deletions

View File

@@ -39,7 +39,7 @@
<tbody>
<tr>
<td class="align-middle" scope="row">
{{component.name}}
{{component.name}}{% if key_parameter_string %}<br><span class="text-secondary">{{key_parameter_string}}</span>{% endif %}
</td>
<td class="align-middle" >
{% if component.package %}
@@ -128,7 +128,7 @@
<td>
{{param.resolved_value_as_string}}
</td>
<td><span class="text-info">from Package</span></td>
<td><span class="text-secondary">from Package</span></td>
{% endfor %}
{% for param in parameters %}
<tr>

View File

@@ -48,7 +48,12 @@
{% endif %}
</div>
<div class="flex-grow-1 ms-3">
<h6 class="mt-0 text-primary">{{ comp.name }}</h6>
<h6 class="mt-0 text-primary">
{{ comp.name }}
{% for key_param in comp.get_key_parameters_as_text %}
{{key_param}}
{% endfor %}
</h6>
{% if comp.package %}
Package: {{comp.package}}<br>
{% endif %}