Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#1745 added new submission configuration field for manuscript file name #1748

Merged
merged 1 commit into from
Aug 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.29 on 2020-08-01 09:24
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('submission', '0047_auto_20200720_1415'),
]

operations = [
migrations.AddField(
model_name='submissionconfiguration',
name='submission_file_text',
field=models.CharField(default='Manuscript File', help_text='During submission the author will be asked to upload a filethat is considered the main text of the article. You can usethis field to change the label for that file in submission.', max_length=255),
),
]
7 changes: 7 additions & 0 deletions src/submission/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1517,6 +1517,13 @@ class SubmissionConfiguration(models.Model):
help_text=_('The default section of '
'articles when no option is presented'),
)
submission_file_text = models.CharField(
max_length=255,
default='Manuscript File',
help_text='During submission the author will be asked to upload a file'
'that is considered the main text of the article. You can use'
'this field to change the label for that file in submission.',
)

def __str__(self):
return 'SubmissionConfiguration for {0}'.format(self.journal.name)
Expand Down
2 changes: 1 addition & 1 deletion src/templates/admin/elements/submit/file.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ <h5><i class="fa fa-upload">&nbsp;</i>{% trans "Add New File" %}</h5>
<label>
Label <span class="red">*</span>
</label>
<input type="text" name="label" id="id_label" required="" maxlength="200" value="Manuscript">
<input type="text" name="label" id="id_label" required="" maxlength="200" value="{{ request.journal.submissionconfiguration.submission_file_text }}">
</div>
</div>
<div class="row expanded">
Expand Down
2 changes: 1 addition & 1 deletion src/templates/admin/submission/manager/configurator.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<form method="POST">
{% csrf_token %}
{% include "elements/forms/errors.html" %}
{{ form|foundationinline }}
{{ form|foundation }}
<button class="success button">Save Configuration</button>
</form>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/templates/admin/submission/submit_files.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
using one of the 'Choose file' buttons, then upload it with the 'Upload file' button next to it. You
will then be asked for some additional information (label, description etc.){% endblocktrans %}</p>
<div class="title-area">
<h2>{% trans "Manuscript File" %}</h2>
<h2>{{ request.journal.submissionconfiguration.submission_file_text }}</h2>
</div>
<div class="row expanded">
<div class="large-3 columns">
Expand Down