comparison templates/bundle/form.djhtml @ 177:86129d185ddb

Add versioning to bundles Some other bundle-related changes were made, including: * Editing the snippetform CSS and HTML to allow bundle/form.djhtml to be reused for editing * Changing {% block title %} to {% block section %} in the base template for bundles to allow for more flexibility when creating breadcrumbs * Saved common URL patterns in variables in bundle/urls.py * Renamed explore.html to explore.djhtml for consistency You should now be able to upload new versions as well as view the files (or a particular file) for a bundle at a specific version. Coming soon: the ability to add a timestamp and a comment for each new uploaded version (if this feature is desirable).
author dellsystem <ilostwaldo@gmail.com>
date Sat, 20 Oct 2012 23:28:50 -0400
parents c7be7def8b57
children 4a63f5d762a3
comparison
equal deleted inserted replaced
176:c042d26e6936 177:86129d185ddb
8 </div> 8 </div>
9 {% endif %} 9 {% endif %}
10 10
11 {% csrf_token %} 11 {% csrf_token %}
12 12
13 {% with field=form.name %} 13 {% for field in form %}
14 {% include "simple_field.djhtml" %} 14 {% include "simple_field.djhtml" %}
15 {% endwith %} 15 {% endfor %}
16
17 {% with field=form.description %}
18 {% include "simple_field.djhtml" %}
19 {% endwith %}
20
21 {% with field=form.free_license %}
22 {% include "simple_field.djhtml" %}
23 {% endwith %}
24
25 <br /><br />
26
27 {% with field=form.file %}
28 {% include "simple_field.djhtml" %}
29 {% endwith %}
30 16
31 <br /> 17 <br />
32 <div class="center-align"> 18 <div class="center-align">
33 <button type="submit" class="button large">{% trans "Paste it" %}</button> 19 <button type="submit" class="button large">{% trans "Paste it" %}</button>
34 </div> 20 </div>