12216 color to detail view, add type to svg

This commit is contained in:
Arthur 2023-10-20 15:06:24 -07:00
parent 846accf37c
commit 1244aa56b0
2 changed files with 7 additions and 0 deletions

View File

@ -159,6 +159,7 @@ class CableTraceSVG:
labels.append(location_label) labels.append(location_label)
elif instance._meta.model_name == 'circuit': elif instance._meta.model_name == 'circuit':
labels[0] = f'Circuit {instance}' labels[0] = f'Circuit {instance}'
labels.append(instance.type)
labels.append(instance.provider) labels.append(instance.provider)
if instance.description: if instance.description:
labels.append(instance.description) labels.append(instance.description)

View File

@ -29,6 +29,12 @@
<th scope="row">{% trans "Description" %}</th> <th scope="row">{% trans "Description" %}</th>
<td>{{ object.description|placeholder }}</td> <td>{{ object.description|placeholder }}</td>
</tr> </tr>
<tr>
<th scope="row">{% trans "Color" %}</th>
<td>
<span class="badge color-label" style="background-color: #{{ object.color }}">&nbsp;</span>
</td>
</tr>
</table> </table>
</div> </div>
</div> </div>