diff --git a/app/assets/javascripts/templateFolderForm.js b/app/assets/javascripts/templateFolderForm.js index 268b90863..09d5a883d 100644 --- a/app/assets/javascripts/templateFolderForm.js +++ b/app/assets/javascripts/templateFolderForm.js @@ -294,11 +294,23 @@ if (this.currentState === 'add-new-template') { this.$form.find('.template-list-item').addClass('js-hidden'); $('.live-search').addClass('js-hidden'); + $('#breadcrumb-template-folders').addClass('js-hidden'); + $('#template-list').addClass('js-hidden'); this.$form.find('input[type=checkbox]').prop('checked', false); this.selectionStatus.update({ total: 0, templates: 0, folders: 0 }); + + $('#page-title').text('New Template'); + $('#page-description').text('Every message starts with a template. Select to start with a blank template or copy an existing template.'); + document.title = 'New Templates'; } else { this.$form.find('.template-list-item').removeClass('js-hidden'); $('.live-search').removeClass('js-hidden'); + $('#breadcrumb-template-folders').removeClass('js-hidden'); + $('#template-list').removeClass('js-hidden'); + + $('#page-title').text('Select or create a template'); + $('#page-description').text('Every message starts with a template. To send, choose or create a template.'); + document.title = 'Select or create a template'; } if (currentStateObj && 'setFocus' in currentStateObj) { diff --git a/app/templates/views/templates/choose.html b/app/templates/views/templates/choose.html index 0b2293234..4589a9682 100644 --- a/app/templates/views/templates/choose.html +++ b/app/templates/views/templates/choose.html @@ -32,9 +32,9 @@ {% else %}