When replying to inbound sms show templates in all user's folders

This commit is contained in:
Pea Tyczynska
2019-03-19 18:30:05 +00:00
parent 6925b36b27
commit 3fc4f6866c
6 changed files with 55 additions and 28 deletions

View File

@@ -1,5 +1,5 @@
from flask import jsonify, redirect, render_template, session, url_for
from flask_login import login_required
from flask_login import current_user, login_required
from notifications_python_client.errors import HTTPError
from notifications_utils.recipients import format_phone_number_human_readable
from notifications_utils.template import SMSPreviewTemplate
@@ -44,7 +44,7 @@ def conversation_reply(
service_id,
notification_id,
):
templates = current_service.get_templates('sms')
templates = current_service.get_user_templates_across_folders(current_user.id, template_type='sms')
return render_template(
'views/templates/choose-reply.html',
templates=templates,