Add organization blogs

This commit is contained in:
cuom1999 2022-05-30 01:59:53 -05:00
parent 99fc3d1015
commit 5fff6b1510
27 changed files with 1119 additions and 630 deletions

View file

@ -1,14 +1,7 @@
{% extends "base.html" %}
{% block media %}
<style>
th {
text-align: left
}
</style>
{% endblock %}
{% extends "organization/home-base.html" %}
{% block body %}
<table>
{% block middle_content %}
<table class="table">
<tr>
<th>{{ _('User:') }}</th>
<td>{{ link_user(object.user) }}</td>
@ -26,10 +19,8 @@
<td>{{ object.time|date(_("N j, Y, g:i a")) }}</td>
</tr>
<tr>
<th colspan="2">{{ _('Reason:') }}</th>
</tr>
<tr>
<td colspan="2" style="padding-left: 2em">{{ object.reason }}</td>
<th>{{ _('Reason:') }}</th>
<td>{{ object.reason }}</td>
</tr>
</table>
{% endblock %}

View file

@ -1,6 +1,6 @@
{% extends "base.html" %}
{% extends "organization/home-base.html" %}
{% block body %}
{% block middle_content %}
{% include "organization/requests/tabs.html" %}
{% if requests %}
@ -16,7 +16,7 @@
<td>{{ link_user(r.user) }}</td>
<td>
<a href="{{ url('request_organization_detail', object.id, object.slug, r.id) }}">
{{- r.time|date(_("N j, Y, H:i")) -}}
{{- r.time|date(_("N j, Y, g:i a")) -}}
</a>
</td>
<td>{{ r.state }}</td>

View file

@ -1,5 +1,5 @@
{% extends "base.html" %}
{% block body %}
{% extends "organization/home-base.html" %}
{% block middle_content %}
{% include "messages.html" %}
{% include "organization/requests/tabs.html" %}
@ -21,7 +21,7 @@
<tr id="request-{{ form.instance.id }}">
<td>{{ form.id }}{{ link_user(form.instance.user) }}</td>
<td><a href="{{ url('request_organization_detail', object.id, object.slug, form.instance.id) }}">
{{ form.instance.time|date(_("N j, Y, H:i")) }}
{{ form.instance.time|date(_("N j, Y, g:i a")) }}
</a></td>
<td>{{ form.state }}</td>
<td>{{ form.instance.reason|truncatechars(50) }}</td>

View file

@ -1,6 +1,6 @@
{% extends "base.html" %}
{% extends "organization/home-base.html" %}
{% block js_media %}
{% block org_js %}
<script type="text/javascript">
$(function () {
$('#id_reason').keydown(function (e) {
@ -12,7 +12,7 @@
</script>
{% endblock %}
{% block body %}
{% block middle_content %}
<form action="" method="post" class="form-area">
{% csrf_token %}
<p><label for="{{ form.reason.id_for_label }}"><b>{{ _('Your reason for joining:') }}</b></label></p>