Skip to content
Snippets Groups Projects
Commit f661cfa6 authored by Moreau Elise's avatar Moreau Elise
Browse files

create view to messenger

parent 8d76f218
No related branches found
No related tags found
No related merge requests found
{% extends 'common/layout.twig' %}
\ No newline at end of file
{% extends 'common/layout.twig' %}
\ No newline at end of file
{% extends 'common/layout.twig' %}
{% block content %}
<div class="ui right sidebar" id="list_tchat">
</div>
<div class="current_tchat">
<h2> {{group.name}}</h2>
<div class="list_members">
{% for user in group.users %}
<a class="ui image label" href="/users/{{user.getId}}"> <img src="/assets/img/default-avatar.png"> {{user.username}} </a>
{% endfor %}
</div>
</div>
<div class="ui comments" id="current_messages">
{% for message in messages %}
<div class="comment">
<a class="avatar">
<img src="/assets/img/default-avatar.png">
</a>
<div class="ui content">
<a class="author">{{message.transmitter.username}}</a>
<div class="metadata">
<span class="date">{{message.date}}</span>
</div>
<div class="text">
{{message.body}}
</div>
</div>
</div>
{% endfor %}
</div>
<div class="reply">
<form class="ui reply form" action="/groups/{{group.getId}}/messages" method="post">
<div class="field">
<textarea name="body" rows="3"></textarea>
</div>
<button class="ui blue labeled submit icon button" type="submit">
<i class="icon edit"></i> Add Reply
</button>
</form>
</div>
{% endblock %}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment