SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 91e063af authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Improve Comment form

parent a52e9a13
No related branches found
No related tags found
No related merge requests found
...@@ -56,20 +56,23 @@ class CommentForm(forms.ModelForm): ...@@ -56,20 +56,23 @@ class CommentForm(forms.ModelForm):
self.helper = FormHelper() self.helper = FormHelper()
self.helper.layout = Layout( self.helper.layout = Layout(
Div( Div(
Div(
Fieldset(
'Specify categorization',
'is_rem', 'is_que', 'is_ans', 'is_obj', 'is_rep', 'is_val', 'is_lit', 'is_sug',
style="border: 0px; font-size: 80%"),
css_class="col-3"),
Div( Div(
Field('comment_text'), Field('comment_text'),
Field('anonymous'),
HTML('<p>In your comment, you can use LaTeX \$...\$ for in-text equations or \ [ ... \ ] for on-line equations.</p>'), HTML('<p>In your comment, you can use LaTeX \$...\$ for in-text equations or \ [ ... \ ] for on-line equations.</p>'),
HTML('<p id="goodCommenter"><i>Be professional. Only serious and meaningful comments will be vetted through.</i></p>'), HTML('<p id="goodCommenter"><i>Be professional. Only serious and meaningful comments will be vetted through.</i></p>'),
HTML('<p id="goodCommenter"><i> By clicking on Submit, the commenter certifies that all sources used are duly referenced and cited. Failure to do so will lead to exclusion from the portal.</i></p>'), HTML('<p id="goodCommenter"><i> By clicking on Submit, the commenter certifies that all sources used are duly referenced and cited. Failure to do so will lead to exclusion from the portal.</i></p>'),
Submit('submit', 'Submit your Comment for vetting', css_class="submitComment"),
css_class="col-9"), css_class="col-9"),
Div(
Fieldset(
'Specify categorization:',
'is_rem', 'is_que', 'is_ans', 'is_obj', 'is_rep', 'is_val', 'is_lit', 'is_sug',
style="border: 0px; font-size: 90%"),
HTML('<br>'),
Div(
Field('anonymous'),
Submit('submit', 'Submit your Comment for vetting', css_class="submitComment"),
),
css_class="col-3"),
css_class="row"), css_class="row"),
) )
......
...@@ -196,6 +196,7 @@ a:hover { ...@@ -196,6 +196,7 @@ a:hover {
background-color: #002B49; background-color: #002B49;
color: #ffffff; color: #ffffff;
border: 1px solid #FFA300; border: 1px solid #FFA300;
padding: 5px;
} }
header { header {
...@@ -283,7 +284,7 @@ nav form { ...@@ -283,7 +284,7 @@ nav form {
} }
p#goodCommenter { p#goodCommenter {
font-size: 80%; font-size: 90%;
} }
section { section {
......
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