SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 7ac573e0 authored by Jorran de Wit's avatar Jorran de Wit
Browse files

Restructure commentaries html

parent 01ddca43
No related branches found
No related tags found
No related merge requests found
...@@ -23,10 +23,10 @@ ...@@ -23,10 +23,10 @@
<div class="col-md-4"> <div class="col-md-4">
<div class="panel"> <div class="panel">
<h2>Search SciPost Commentaries:</h2> <h2>Search SciPost Commentaries:</h2>
<form action="{% url 'commentaries:commentaries' %}" class="tinyform" method="post"> <form action="{% url 'commentaries:commentaries' %}" class="small" method="post">
{% csrf_token %} {% csrf_token %}
{{ form|bootstrap:'4-8' }} {{ form|bootstrap:'4,8,sm' }}
<input class="btn btn-secondary" type="submit" name="Submit" /> <input class="btn btn-sm btn-secondary" type="submit" name="Submit" />
</form> </form>
</div> </div>
</div> </div>
......
...@@ -30,53 +30,59 @@ ...@@ -30,53 +30,59 @@
{% endblock headsup %} {% endblock headsup %}
{% block bodysup %} {% block content %}
<section> <div class="row">
<div class="flex-greybox"> <div class="col-12">
<h1>SciPost Commentary Page &nbsp; (non-SciPost publications)</h1> <div class="panel">
</div> <h1>SciPost Commentary Page (non-SciPost publications)</h1>
</div>
<hr class="hr12">
<div class="row">
<div class="col-4">
<h2>Original publication: </h2>
</div> </div>
</div> </div>
{{ commentary.header_as_table }}
<h3>Abstract:</h3>
<p>{{ commentary.pub_abstract }}</p>
</section> <hr>
<div class="row">
<div class="col-12">
<h2>Original publication: </h2>
{{ commentary.header_as_table }}
</div>
</div>
<div class="row">
<div class="col-12">
<h3>Abstract:</h3>
<p>{{ commentary.pub_abstract }}</p>
</div>
</div>
{% include 'scipost/comments_block.html' %} {% include 'scipost/comments_block.html' %}
{% if user.is_authenticated and commentary.open_for_commenting and perms.scipost.can_submit_comments %} {% if user.is_authenticated and commentary.open_for_commenting and perms.scipost.can_submit_comments %}
<section> <hr>
<hr class="hr12"> <div class="row">
<div class="flex-greybox"> <div class="col-12">
<h1>Contribute a Comment:</h1> <div class="panel">
<h2>Contribute a Comment:</h2>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<form action="{% url 'commentaries:commentary' arxiv_or_DOI_string=commentary.arxiv_or_DOI_string %}" method="post">
{% csrf_token %}
{% load crispy_forms_tags %}
{% crispy form %}
</form>
</div> </div>
<form action="{% url 'commentaries:commentary' arxiv_or_DOI_string=commentary.arxiv_or_DOI_string %}" method="post"> <div class="col-12">
{% csrf_token %}
{% load crispy_forms_tags %}
{% crispy form %}
</form>
<div class="row">
<div class="col-10">
<h3>Preview of your comment:</h3> <h3>Preview of your comment:</h3>
<p id="preview-comment_text"></p> <p id="preview-comment_text"></p>
</div>
</div> </div>
</div>
</section>
{% endif %} {% endif %}
{% endblock bodysup %} {% endblock content %}
/* Temporarily due to crispy form */
legend {
font-size: inherit !important;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment