From 315d3a4ce31c69e72330e9154d42fb59e9548af5 Mon Sep 17 00:00:00 2001 From: Sanj Date: Sat, 8 Sep 2012 02:34:34 +0530 Subject: [PATCH] script template --- itf/scriptbank/models.py | 4 +- itf/templates/modules/scriptbank/script.html | 57 ++++++++++++++++++-- 2 files changed, 55 insertions(+), 6 deletions(-) diff --git a/itf/scriptbank/models.py b/itf/scriptbank/models.py index 6fa19e3..c33dd2f 100755 --- a/itf/scriptbank/models.py +++ b/itf/scriptbank/models.py @@ -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 = ( diff --git a/itf/templates/modules/scriptbank/script.html b/itf/templates/modules/scriptbank/script.html index cceca6f..fc009c1 100755 --- a/itf/templates/modules/scriptbank/script.html +++ b/itf/templates/modules/scriptbank/script.html @@ -10,17 +10,64 @@
- {{ synopsis }}Download, License, Title, Author (links to author profile), Synopsis (not happy? upload an alternative synopsis), Alternative synopsis list +

{{ title }}

+ + Author: {{ author }}
+ +
Synopsis:
+

{{ synopsis }}

+ + {% if language %} + Language: {{ language }}
+ {% endif %} + + {% if no_characters %} + No of characters: {{ no_characters }}
+ {% endif %} + + {% if no_of_women %} + No of women: {{ no_of_women }}
+ {% endif %} + + {% if approx_duration %} + Approximate duration: {{ approx_duration }} + {% endif %} + + {% if production_notes %} +
Production notes:
+

{{ production_notes %}}

+ {% endif %} + + {% if script_file %} + Download
+ By downloading, you agree to the terms of the licenses:
+ Adaptation License: {{ license_adapt.name }}
+ {{ license_adapt.short_description }} - Read Short Version

+ Performance License: {{ license_perform.name }}
+ {{ license_perform.short_description }} - Read Short Version
+ {% endif %} +
- 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 %} +
+ Productions of this play: + +
+ {% endif %} + +
+ To add: all related scripts' productions, how should this be organised? +
- 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.