diff --git a/app/templates/admin/messages.html b/app/templates/admin/messages.html index e4b36c4b..1b241082 100644 --- a/app/templates/admin/messages.html +++ b/app/templates/admin/messages.html @@ -1,16 +1,21 @@ {# app/templates/admin/messages.html #} {% extends "admin/base.html" %} -{% from 'shared/macros/headers.html' import page_header %} +{% from 'shared/macros/headers.html' import page_header_flex %} {% from 'shared/macros/alerts.html' import loading_state, error_state %} +{% from 'shared/macros/modals.html' import form_modal %} {% block title %}Messages{% endblock %} {% block alpine_data %}adminMessages({{ conversation_id or 'null' }}){% endblock %} {% block content %} -{{ page_header('Messages', buttons=[ - {'text': 'New Conversation', 'icon': 'plus', 'click': 'showComposeModal = true', 'primary': True} -]) }} +{% call page_header_flex(title='Messages') %} + +{% endcall %} {{ loading_state('Loading conversations...') }} @@ -271,86 +276,59 @@ -
-
-
-
-

New Conversation

- +{% call form_modal('composeModal', 'New Conversation', show_var='showComposeModal', submit_action='createConversation()', submit_text='Start Conversation', loading_var='creatingConversation', loading_text='Creating...') %} + +
+
+ +
-
- -
- - -
+ +
+ + +
- -
- - -
+ +
+ + +
- -
- - -
- - -
- - -
- - -
- - -
-
+ +
+ + +
-
+{% endcall %} {% endblock %} {% block page_scripts %}