forked from rDrama/rDrama
add margin and emoji button
parent
9642aa64d9
commit
18fdd429bf
|
@ -1,6 +1,8 @@
|
||||||
{% extends "default.html" %}
|
{% extends "default.html" %}
|
||||||
|
{%- import 'util/macros.html' as macros with context -%}
|
||||||
{% block pagetitle %}!{{group}}{% endblock %}
|
{% block pagetitle %}!{{group}}{% endblock %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
<div class="mx-2">
|
||||||
{% if v.id != group.owner_id %}
|
{% 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')">
|
<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' -%}
|
{%- if v.id in group.member_ids or group.name == 'verifiedrich' -%}
|
||||||
|
@ -14,6 +16,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if v.id == group.owner_id %}
|
{% if v.id == group.owner_id %}
|
||||||
|
{% include "modals/emoji.html" %}
|
||||||
<h5 class="mt-5">!{{group}} Description</h3>
|
<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)">
|
<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">
|
<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="col col-md-6 px-0 py-3 py-md-0">
|
||||||
<div class="body">
|
<div class="body">
|
||||||
<input hidden name="formkey" value="{{v|formkey}}">
|
<input hidden name="formkey" value="{{v|formkey}}">
|
||||||
<input maxlength="100" class="form-control" type="text" name="description" {% if group.description %}value="{{group.description}}"{% endif %}>
|
<input id="edit-group-description" maxlength="100" class="form-control allow-emojis" type="text" name="description" {% if group.description %}value="{{group.description}}"{% endif %}>
|
||||||
<small>Limit of 100 characters</small>
|
{{macros.emoji_btn('edit-group-description')}}
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
<div class="d-flex">
|
<div class="d-flex">
|
||||||
|
<small class="mt-2">Limit of 100 characters</small>
|
||||||
<button type="submit" class="btn btn-primary ml-auto">Submit</button>
|
<button type="submit" class="btn btn-primary ml-auto">Submit</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -122,4 +126,5 @@
|
||||||
{{process_memberships(members, 'members')}}
|
{{process_memberships(members, 'members')}}
|
||||||
{{process_memberships(applications, 'applications')}}
|
{{process_memberships(applications, 'applications')}}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in New Issue