SciPost Code Repository

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

Add homepage URLField to AffiliateJournal

parent 91f237c2
No related branches found
No related tags found
No related merge requests found
# Generated by Django 3.2.12 on 2022-02-23 15:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('affiliates', '0007_alter_affiliatepublication__metadata_crossref'),
]
operations = [
migrations.AddField(
model_name='affiliatejournal',
name='homepage',
field=models.URLField(blank=True, max_length=256),
),
]
......@@ -30,6 +30,8 @@ class AffiliateJournal(models.Model):
unique=True,
)
homepage = models.URLField(max_length=256, blank=True)
class Meta:
ordering = ["publisher", "name"]
permissions = (("manage_journal_content", "Manage Journal content"),)
......
......@@ -18,6 +18,14 @@
<h2 class="highlight">Affiliate Journal: {{ object }}</h2>
<h3>Journal information</h3>
<table class="table">
<tr>
<th>Homepage</th>
<td>{% if object.homepage %}<a href="{{ object.homepage }}" target="_blank">{{ object.homepage }}</a>{% else %}(not defined){% endif %}</td>
</tr>
</table>
{% if perms.affiliates.can_edit_affiliatedjournal %}
<h3 class="highlight">Journal managers</h3>
<div class="row p-2">
......
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