Update various windows that open to have their height automatically set
Some windows have a variable height based on the user's permissions (e.g. having a capcode option). This sets the window height to the minimum requiremed height based on the document loaded in. Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
@@ -1,6 +1,30 @@
|
||||
{% extends "board/base.html" %}
|
||||
{% load i18n post_body %}
|
||||
|
||||
{% block extrastyle %}
|
||||
<style>
|
||||
table {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
th {
|
||||
width: 1%;
|
||||
white-space: wrap;
|
||||
text-align: right;
|
||||
}
|
||||
textarea {
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
input[type=text] {
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<form method="post" action="{% url 'board:post_create' url=board.url %}" enctype="multipart/form-data">
|
||||
{% csrf_token %}
|
||||
|
||||
@@ -1,11 +1,34 @@
|
||||
{% extends "board/base.html" %}
|
||||
{% load i18n post_body %}
|
||||
|
||||
{% block extrastyle %}
|
||||
<style>
|
||||
table {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
th {
|
||||
width: 1%;
|
||||
white-space: wrap;
|
||||
text-align: right;
|
||||
}
|
||||
textarea {
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
input[type=text] {
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<form method="post" action="{% url 'board:reply_create' url=board.url id=post.id %}" enctype="multipart/form-data">
|
||||
{% csrf_token %}
|
||||
<table>
|
||||
{# {{ form.as_table }} #}
|
||||
{% for field in form %}
|
||||
{% if field.name != "capcode" %}
|
||||
<tr>
|
||||
|
||||
Reference in New Issue
Block a user