script template

This commit is contained in:
Sanj 2012-09-08 02:34:34 +05:30
parent 888c5c34d9
commit 315d3a4ce3
2 changed files with 55 additions and 6 deletions

View File

@ -73,7 +73,9 @@ class Script(ItfModel):
'contact': self.contact,
'script_file': self.script.url,
'license_adapt': self.license_adapt,
'license_perform': self.license_perform
'license_perform': self.license_perform,
'productions': self.production_set.all(),
'related_scripts': self.related_scripts
}
SCRIPT_RELATIONS = (

View File

@ -10,17 +10,64 @@
</ul>
<div id="synopsis" class="tab_content">
{{ synopsis }}Download, License, Title, Author (links to author profile), Synopsis (not happy? upload an alternative synopsis), Alternative synopsis list
<h3> {{ title }} </h3>
<span class="orange">Author: </span> {{ author }} <br />
<div class="orange">Synopsis:</div>
<p>{{ synopsis }}</p>
{% if language %}
<span class="orange">Language: </span> {{ language }} <br />
{% endif %}
{% if no_characters %}
<span class="orange">No of characters: </span> {{ no_characters }} <br />
{% endif %}
{% if no_of_women %}
<span class="orange">No of women: </span> {{ no_of_women }} <br />
{% endif %}
{% if approx_duration %}
<span class="orange">Approximate duration: </span> {{ approx_duration }}
{% endif %}
{% if production_notes %}
<div class="orange">Production notes:</div>
<p> {{ production_notes %}} </p>
{% endif %}
{% if script_file %}
<a target="_blank" href="{{ script_file.url }}">Download</a> <br />
By downloading, you agree to the terms of the licenses: <br />
<span class="orange">Adaptation License: </span> <a href="{{ license_adapt.legal_file.url }}" target="_blank">{{ license_adapt.name }}</a> <br />
{{ license_adapt.short_description }} - <a href="{{ license_adapt.readable_file.url }}" target="_blank">Read Short Version</a> <br /><br />
<span class="orange">Performance License: </span> <a href="{{ license_perform.legal_file.url }}" target="_blank">{{ license_perform.name }}</a> <br />
{{ license_perform.short_description }} - <a href="{{ license_perform.readable_file.url }}" target="_blank">Read Short Version</a> <br />
{% endif %}
</div>
<div id="production" class="tab_content">
Info/links to all direct productions of this script (required: year/date, group name ((can be informal name - allow text field. These informal names are unlikely to have a profile on the site, as they come together for one event)), name of production)
Info/links to all productions that adapt, translate or are inspired by this script
{% if productions %}
<div class="itfFormDisplay">
<span class="orange">Productions of this play:</span>
<ul>
{% for elem in productions %}
<li><a href="{{ elem.get_absolute_url }}">{{ elem.title }}</a></li>
{% endfor %}
</ul>
</div>
{% endif %}
<br />
To add: all related scripts' productions, how should this be organised?
</div>
<div id="people" class="tab_content">
listing of all writers, translators, adaptors who are connected to this script. (It does not have to be a direct connection. Eg. A bengali translation of a hindi translation of the Marathi Ghashiram Kotwal would still show up on the Marathi Ghashiram Kotwal page)
Add people button - anyone should be able to add names of those who have worked with this script or some version of it. This adding should have autofill, so if someone is on site, you link them, if not, simple upload of info.
To add: all people associated with all related productions.
</div>
<div id="notes" class="tab_content">