3823d37107ebe31eb98378b8f76deb5e43373f48
[redakcja.git] / apps / catalogue / templates / catalogue / document_create_missing.html
1 {% extends "catalogue/base.html" %}
2 {% load i18n %}
3
4 {% block inner_content %}
5     <h1>{% trans "Create a new resource" %}</h1>
6
7
8     <form enctype="multipart/form-data" method="POST">
9     {% csrf_token %}
10         {{ form.non_field_errors }}
11         <label for="owner">{% trans "Owner" %}</label>
12             {{ form.owner_organization.errors }}
13             <select class="form-control" name="owner_organization"
14                 data-toggle="tutorial" data-tutorial="1" data-placement="bottom"
15                 data-content="{% trans 'You can choose whether the resource should be owned by you or by your organization. This can be changed later.' %}"
16             >
17                 <option>{{ request.user }}</option>
18                 {% for org in request.user.membership_set.all %}
19                     <option value="{{ org.organization.pk }}"
20                         {% if form.owner_organization.value == org.organization.pk %}selected="selected"{% endif %}
21                     >{{ org.organization }}</option>
22                 {% endfor %}
23             </select>
24         <label for="title">{% trans "Title" %}</label>
25             {{ form.title.errors }}
26             <input class="form-control" name="title" type="text" value='{{ form.title.value|default:"" }}'>
27         <label for="title">{% trans "Cover image" %}</label>
28             {{ form.cover.errors }}
29             {{ form.cover }}
30         <label for="language">{% trans "Language" %}</label>
31             {{ form.language.errors }}
32             <input class="form-control" name="language" type="text" value='{{ form.language.value|default:"" }}'>
33         <label for="publisher">{% trans "Publisher" %}</label>
34             {{ form.publisher.errors }}
35             <input class="form-control" name="publisher" type="text" value='{{ form.publisher.value|default:"" }}'>
36         <label for="publisher">{% trans "Rights" %}</label>
37             {{ form.rights.errors }}
38             <select class="form-control" name="rights"
39                 data-toggle="tutorial" data-tutorial="2" data-placement="bottom"
40                 data-content="{% trans 'You should choose a free license for your resource. We recommend using Creative Commons Attribution - Share Alike.' %}"
41             >
42                 <option value=''>–</option>
43                 <option name='pd' 
44                     data-help="{% trans 'Only set for resources that are not restricted with copyright.' %}"
45                     >{% trans "public domain" %}</option>
46                 <option name='cc-by'
47                     data-help="{% trans "Non-copyleft free culture license. See <a target='_blank' href='//creativecommons.org/choose/'>creativecommons.org</a>" %}"
48                     >{% trans "Creative Commons Attribution" %}</option>
49                 <option name='cc-by-sa'
50                     data-help="{% trans "Copyleft free culture license. See <a target='_blank' href='//creativecommons.org/choose/'>creativecommons.org</a>" %}"
51                     >{% trans "Creative Commons Attribution – Share Alike" %}</option>
52                 <option name='fal'
53                     data-help="{% trans "Copyleft free culture license. See <a target='_blank' href='http://artlibre.org/'>artlibre.org</a>" %}"
54                     >{% trans "Free Art License" %}</option>
55             </select>
56             <div class="help-text" style="text-align: right;"></div>
57         <label for="audience">{% trans "Audience" %}</label>
58             {{ form.audience.errors }}
59             <select class="form-control" name="audience"
60                 data-toggle="tutorial" data-tutorial="3" data-placement="bottom"
61                 data-content="{% trans 'Choose primary audience for your resource.' %}"
62             >
63                 <option>3-6</option>
64                 <option>6-9</option>
65                 <option>9-12</option>
66                 <option>12-18</option>
67                 <option>18+</option>
68                 <option>Adults</option>
69             </select>
70
71         <label for="description">{% trans "Summary" %}</label>
72             {{ form.description.errors }}
73             <textarea class="form-control" name="description"
74                 data-toggle="tutorial" data-tutorial="4" data-placement="bottom"
75                 data-content="{% trans 'You can provide a short description of the document here.' %}"
76             >{{ form.description.value|default:"" }}</textarea>
77         {#{ form.as_table}#}
78
79         <button style="margin-top:1em;" class="btn btn-default" type="submit">{% trans "Create resource" %}</button></td></tr>
80     </form>
81
82 {% endblock %}