class MediaItemForm(ModelForm):
class Meta:
model = MediaItem
+ fields = ('title', 'recorded_from_date', 'recorded_to_date', 'collector',
+ 'collection', 'summary', 'scientist', 'contributor', 'author',
+ 'topic', 'comment', 'public_access')
+
def clean_code(self):
return self.cleaned_data['code'] or None
{% endif %}
{% dl_field item "author" %}
- {% dl_field item "subject" %}
+ {% dl_field item "topic" %}
<dt>{% trans "Remarks" %}</dt>
<dd>{{ item.comment|html_line_break|safe }}</dd>
<dl class="listing">
<dt>{% trans "Organization" %}</dt>
<dd>{% organization %}</dd>
- {% dl_field item "public_access_label" %}
+ {% dl_field item "public_access" %}
{% dl_field item "depositor" %}
<dt>{% trans "Rights" %}</dt>
<dd>{% if item.performances %}
<td>{{ field.label_tag.as_hidden }}{{ field.as_hidden }}</td>
{% else %}
<tr><td class="error">{{ field.errors }}</td></tr>
- <td>{{ field.label_tag }}:</td>
+ <td>{% if field.required %}
+ <span style="font-weight:bold">{{ field.label_tag }}:</span>
+ {% else %}
+ {{ field.label_tag }}:
+ {% endif %}
+ </td>
{% if field.html_name == "collection" %}
<td> {% trans "Title" %} : {{ item.collection.title }}<br />
{% trans "Code" %} : {{ item.collection.code }}<br />