-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #165 from snikket-im/feature/multiple-circle-mucs
Support circles with multiple group chats, remove default group chat
- Loading branch information
Showing
7 changed files
with
269 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{% extends "admin_app.html" %} | ||
{% block content %} | ||
<h1>{{ target_circle.name }}</h1> | ||
{%- include "admin_create_circle_group_chat_form.html" -%} | ||
{% endblock %} |
15 changes: 15 additions & 0 deletions
15
snikket_web/templates/admin_create_circle_group_chat_form.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{% from "library.j2" import form_button, render_errors %} | ||
<form method="POST" action="{{ url_for(".edit_circle_add_chat", id_=target_circle.id_) }}"> | ||
{{- group_chat_form.csrf_token -}} | ||
<div class="form layout-expanded"> | ||
<h2 class="form-title">{% trans %}Create new circle group chat{% endtrans %}</h2> | ||
<p class="form-descr weak">{% trans %}Add a chat to your circle so its members can hold group discussions.{% endtrans %}</p> | ||
<p class="form-descr weak"><strong>{% trans %}Tip:{% endtrans %}</strong> {% trans %}This is only for creating group chats that automatically include <em>all</em> members of the circle. If you want a normal group chat, create it in the Snikket app instead.{% endtrans %}</p> | ||
<div class="f-ebox"> | ||
{{ group_chat_form.name.label }} | ||
{{ group_chat_form.name }} | ||
</div> | ||
<div class="f-bbox"> | ||
{%- call form_button("add", group_chat_form.action_save, class="primary") %}{% endcall -%} | ||
</div> | ||
</div></form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.