Template tweeks

This commit is contained in:
Tris 2020-09-13 14:38:36 +10:00
parent ea60558e53
commit 54484918b5
3 changed files with 5 additions and 5 deletions

View File

@ -92,7 +92,7 @@ class Submission(models.Model):
project = models.ForeignKey(Project, related_name='all_submissions', on_delete=models.CASCADE)
date = models.DateTimeField(auto_now_add=True, )
name = models.CharField(max_length=255)
instrument = models.CharField(max_length=100)
instrument = models.CharField(max_length=100, verbose_name="Instrument / Voice")
notes = models.TextField(blank=True)
complete = models.BooleanField(default=False)
key = models.CharField(max_length=512, blank=True)
@ -109,4 +109,4 @@ class Submission(models.Model):
)
def __str__(self):
return f"{self.name}: {self.date}"
return f"{self.name}: {self.date}"

View File

@ -9,13 +9,13 @@ No content
<div class="project-links">
<div class="pills" role="tablist">
<a role="tab" href="{% url 'project_detail' pk=project.id %}">Project info</a>
<a role="tab" href="{% url 'resource_list' project=project.pk %}">Resources</a>
{% for page in project.wiki_pages.all %}
<a class="nav-link {% if page.id == wiki_id %}active{% endif %}"
href="{% url 'wiki' project=project.id pk=page.id %}">{{ page.title }}</a>
{% endfor %}
<a role="tab" href="{% url 'resource_list' project=project.pk %}">Resources</a>
<!--a role="tab" href="">Record a submission</a-->
<a role="tab" href="{% url 'submission_create' project=project.id %}">Send a file</a>
</div>
</div>
{% endblock %}
{% endblock %}

View File

@ -14,7 +14,7 @@
{% endif %}
<div style="flex-grow: 4;">
<form action="" class="vertical" method="POST">
<h3>Add a new ensemble</h3>
<h3>Join an ensemble</h3>
{% csrf_token %}
{{ form }}
<div class="form-actions">