Revision 88c621ae main/templates/qm/remix/upload.html
| b/main/templates/qm/remix/upload.html | ||
|---|---|---|
| 3 | 3 |
{% load localeurl_tags %}
|
| 4 | 4 |
{% load custom_tags %}
|
| 5 | 5 |
|
| 6 |
{% comment %}
|
|
| 7 |
A priori, je vais renvoyer 2 choses essentiellement : |
|
| 8 |
1. Une liste de remixes, avec toutes les infos pertinentes : |
|
| 9 |
tag: remixes |
|
| 10 |
- title |
|
| 11 |
- author |
|
| 12 |
- image a thumbnail |
|
| 13 |
- audio url |
|
| 14 |
- description |
|
| 15 |
- ... |
|
| 16 |
2. L'index dans cette liste du remix featured |
|
| 17 |
|
|
| 18 |
donc on va utiliser the_remix = remixes[index] |
|
| 19 |
{% endcomment %}
|
|
| 20 |
|
|
| 21 | 6 |
|
| 22 | 7 |
{% block meta %}
|
| 23 | 8 |
|
| 24 | 9 |
<link rel="stylesheet" media="all" href="{{STATIC_URL}}qm/stylesheets/enhanced.css" />
|
| 25 | 10 |
<script type="text/javascript" src="{{STATIC_URL}}qm/js/jQuery.fileinput.js"></script>
|
| 26 | 11 |
|
| 27 |
<title>{% trans "Qualité Motel remix sessions |" %} Upload</title>
|
|
| 12 |
<title>{% trans "Qualité Motel remix sessions | Upload" %}</title>
|
|
| 28 | 13 |
{% endblock %}
|
| 29 | 14 |
|
| 30 | 15 |
{% block opengraph %}
|
| ... | ... | |
| 36 | 21 |
|
| 37 | 22 |
<div id="content-qm" class="contentUpload"> |
| 38 | 23 |
|
| 39 |
<h1>Upload ton mix !</h1>
|
|
| 24 |
<h1>{% trans "Upload your remix!"%}</h1>
|
|
| 40 | 25 |
|
| 41 | 26 |
<form id="form-colArt" enctype="multipart/form-data" action="" method="post">{% csrf_token %}
|
| 42 | 27 |
|
| ... | ... | |
| 46 | 31 |
<div class="fieldWrapper"> |
| 47 | 32 |
|
| 48 | 33 |
{{ form.media.errors }}
|
| 49 |
<label for="id_media">Upload ton remix</label>
|
|
| 34 |
<label for="id_media">{% trans "Upload your remix" %}</label>
|
|
| 50 | 35 |
<div class="fileinputs"> |
| 51 | 36 |
{{ form.media }}
|
| 52 | 37 |
</div> |
| 53 | 38 |
</div> |
| 54 | 39 |
<div class="fieldWrapper"> |
| 55 | 40 |
{{ form.image.errors }}
|
| 56 |
<label for="id_image">Upload ton image</label>
|
|
| 41 |
<label for="id_image">{% trans "Upload your image" %}</label>
|
|
| 57 | 42 |
{{ form.image }}
|
| 58 | 43 |
</div> |
| 59 | 44 |
<span id="checkbox-terms"> |
| 60 |
<input type="checkbox" id="check-terms" name="checkbox" /> <label for="checkbox">{% blocktrans %} J'accepte les {% endblocktrans %}<a href="{%url world_home %}qm/conditions/">termes & conditions </a></label>
|
|
| 45 |
<input type="checkbox" id="check-terms" name="checkbox" /> <label for="checkbox">{% trans "J'accepte les" %}<a href="{%url world_home %}qm/conditions/">termes & conditions </a></label>
|
|
| 61 | 46 |
|
| 62 | 47 |
</span> |
| 63 | 48 |
<span id="cache-terms"></span> |
| 64 |
<p><input id="link-terms" type="submit" value='{% trans "Et hop!" %}'></p>
|
|
| 49 |
<p><input id="link-terms" type="submit" value='{% trans "Go!" %}'></p>
|
|
| 65 | 50 |
</div> |
| 66 | 51 |
|
| 67 | 52 |
<div id="formUpload-right"> |
| 68 | 53 |
|
| 69 |
|
|
| 70 | 54 |
{{ form.title.errors }}
|
| 71 | 55 |
|
| 72 | 56 |
<label for="id_title">{% trans "Title" %}</label>
|
| ... | ... | |
| 77 | 61 |
<label for="id_description">{% trans "Description" %}</label>
|
| 78 | 62 |
{{ form.description }}
|
| 79 | 63 |
|
| 80 |
|
|
| 81 |
|
|
| 82 | 64 |
{% comment %}
|
| 83 | 65 |
{{ form.target.errors }}
|
| 84 | 66 |
<label for="id_target">{% trans "Target" %}</label>
|
Also available in: Unified diff