mirror of https://github.com/portainer/portainer
feat(templates): add support for the note field (#805)
parent
7bf708faab
commit
2761959f93
|
@ -15,9 +15,9 @@
|
|||
<rd-widget-body classes="padding">
|
||||
<form class="form-horizontal">
|
||||
<!-- description -->
|
||||
<div class="form-group" ng-if="state.selectedTemplate.Description">
|
||||
<div class="form-group" ng-if="state.selectedTemplate.Note">
|
||||
<div class="col-sm-12">
|
||||
<span class="small" style="margin-left: 5px;">{{ state.selectedTemplate.Description }}</span>
|
||||
<span class="small" style="margin-left: 5px;" ng-bind-html="state.selectedTemplate.Note"></span>
|
||||
</div>
|
||||
</div>
|
||||
<!-- !description -->
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
function TemplateViewModel(data) {
|
||||
this.Title = data.title;
|
||||
this.Description = data.description;
|
||||
this.Note = data.note ? data.note : data.description;
|
||||
this.Category = data.category;
|
||||
this.Logo = data.logo;
|
||||
this.Image = data.image;
|
||||
|
|
Loading…
Reference in New Issue