feat(templates): add support for the note field (#805)

pull/812/head
Anthony Lapenna 2017-04-18 17:16:00 +01:00 committed by GitHub
parent 7bf708faab
commit 2761959f93
2 changed files with 3 additions and 2 deletions

View File

@ -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 -->

View File

@ -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;