forked from rDrama/rDrama
add margin and emoji button
parent
9642aa64d9
commit
18fdd429bf
|
@ -1,6 +1,8 @@
|
|||
{% extends "default.html" %}
|
||||
{%- import 'util/macros.html' as macros with context -%}
|
||||
{% block pagetitle %}!{{group}}{% endblock %}
|
||||
{% block content %}
|
||||
<div class="mx-2">
|
||||
{% if v.id != group.owner_id %}
|
||||
<button id="leave-{{group}}" type="button" class="mt-4 btn btn-danger btn-block {% if v.id not in group.membership_user_ids %}d-none{% endif %}" data-nonce="{{g.nonce}}" data-onclick="postToastSwitch(this,'/!{{group}}/leave','leave-{{group}}','apply-{{group}}','d-none')">
|
||||
{%- if v.id in group.member_ids or group.name == 'verifiedrich' -%}
|
||||
|
@ -14,6 +16,7 @@
|
|||
{% endif %}
|
||||
|
||||
{% if v.id == group.owner_id %}
|
||||
{% include "modals/emoji.html" %}
|
||||
<h5 class="mt-5">!{{group}} Description</h3>
|
||||
<form class="mt-3" action="/!{{group.name}}/description" method="post" data-nonce="{{g.nonce}}" data-onsubmit="sendFormXHR(this)">
|
||||
<div class="container pb-0" style="background-color: transparent !important">
|
||||
|
@ -21,10 +24,11 @@
|
|||
<div class="col col-md-6 px-0 py-3 py-md-0">
|
||||
<div class="body">
|
||||
<input hidden name="formkey" value="{{v|formkey}}">
|
||||
<input maxlength="100" class="form-control" type="text" name="description" {% if group.description %}value="{{group.description}}"{% endif %}>
|
||||
<small>Limit of 100 characters</small>
|
||||
<input id="edit-group-description" maxlength="100" class="form-control allow-emojis" type="text" name="description" {% if group.description %}value="{{group.description}}"{% endif %}>
|
||||
{{macros.emoji_btn('edit-group-description')}}
|
||||
<div class="footer">
|
||||
<div class="d-flex">
|
||||
<small class="mt-2">Limit of 100 characters</small>
|
||||
<button type="submit" class="btn btn-primary ml-auto">Submit</button>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -122,4 +126,5 @@
|
|||
{{process_memberships(members, 'members')}}
|
||||
{{process_memberships(applications, 'applications')}}
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
|
Loading…
Reference in New Issue