Changeset 1393
- Timestamp:
- 11/23/05 22:24:29 (3 years ago)
- Files:
-
- django/branches/new-admin/django/contrib/admin/templates/admin/change_form.html (modified) (5 diffs)
- django/branches/new-admin/django/contrib/admin/templates/admin/change_list.html (modified) (1 diff)
- django/branches/new-admin/django/contrib/admin/templates/admin/change_list_results.html (modified) (1 diff)
- django/branches/new-admin/django/contrib/admin/templates/admin/date_hierarchy.html (modified) (1 diff)
- django/branches/new-admin/django/contrib/admin/templates/admin/edit_inline_stacked.html (modified) (2 diffs)
- django/branches/new-admin/django/contrib/admin/templates/admin/edit_inline_tabular.html (modified) (5 diffs)
- django/branches/new-admin/django/contrib/admin/templates/admin/field_line.html (modified) (2 diffs)
- django/branches/new-admin/django/contrib/admin/templates/admin/filter.html (modified) (1 diff)
- django/branches/new-admin/django/contrib/admin/templates/admin/pagination.html (modified) (1 diff)
- django/branches/new-admin/django/contrib/admin/templates/admin/search_form.html (modified) (1 diff)
- django/branches/new-admin/django/contrib/admin/templates/admin/submit_line.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/new-admin/django/contrib/admin/templates/admin/change_form.html
r1169 r1393 7 7 {% endblock %} 8 8 {% block coltype %}{{ bound_manipulator.coltype }}{% endblock %} 9 {% block bodyclass %}{{ app_label}}-{{bound_manipulator.object_name.lower}} change-form{% endblock %}9 {% block bodyclass %}{{ app_label }}-{{ bound_manipulator.object_name.lower }} change-form{% endblock %} 10 10 {% block breadcrumbs %}{% if not is_popup %} 11 11 <div class="breadcrumbs"> 12 12 <a href="../../../">{% trans "Home" %}</a> › 13 <a href="../">{{ bound_manipulator.verbose_name_plural|capfirst}}</a> ›14 {% if add %}{% trans "Add" %} {{ bound_manipulator.verbose_name}}{% else %}{{bound_manipulator.original|striptags|truncatewords:"18"}}{% endif %}13 <a href="../">{{ bound_manipulator.verbose_name_plural|capfirst }}</a> › 14 {% if add %}{% trans "Add" %} {{ bound_manipulator.verbose_name }}{% else %}{{ bound_manipulator.original|striptags|truncatewords:"18" }}{% endif %} 15 15 </div> 16 16 {% endif %}{% endblock %} … … 21 21 </ul> 22 22 {% endif %}{% endif %} 23 <form {{ bound_manipulator.form_enc_attrib }} action='{{ form_url }}' method="post">{% block form_top %}{% endblock%}23 <form {{ bound_manipulator.form_enc_attrib }} action='{{ form_url }}' method="post">{% block form_top %}{% endblock %} 24 24 {% if is_popup %}<input type="hidden" name="_popup" value="1">{% endif %} 25 25 {% if bound_manipulator.save_on_top %}{% submit_row bound_manipulator %}{% endif %} … … 30 30 {% endif %} 31 31 {% for bound_field_set in bound_manipulator.bound_field_sets %} 32 <fieldset class="module aligned {{ bound_field_set.classes }}"> 33 {% if bound_field_set.name %}<h2>{{ bound_field_set.name }}</h2>{% endif %}32 <fieldset class="module aligned {{ bound_field_set.classes }}"> 33 {% if bound_field_set.name %}<h2>{{ bound_field_set.name }}</h2>{% endif %} 34 34 {% for bound_field_line in bound_field_set %} 35 {% admin_field_line bound_field_line %}35 {% admin_field_line bound_field_line %} 36 36 {% for bound_field in bound_field_line %} 37 {% filter_interface_script_maybe bound_field %} 37 {% filter_interface_script_maybe bound_field %} 38 38 {% endfor %} 39 39 {% endfor %} … … 51 51 {% endif %} 52 52 {% for related_object in bound_manipulator.inline_related_objects %}{% edit_inline related_object %}{% endfor %} 53 {% block after_related_objects %}{%endblock%}53 {% block after_related_objects %}{% endblock %} 54 54 {% submit_row bound_manipulator %} 55 55 {% if add %} 56 <script type="text/javascript">document.getElementById("{{ bound_manipulator.first_form_field_id}}").focus();</script>56 <script type="text/javascript">document.getElementById("{{ bound_manipulator.first_form_field_id }}").focus();</script> 57 57 {% endif %} 58 58 {% if bound_manipulator.auto_populated_fields %} 59 59 <script type="text/javascript"> 60 {% auto_populated_field_script bound_manipulator.auto_populated_fields change %} 60 {% auto_populated_field_script bound_manipulator.auto_populated_fields change %} 61 61 </script> 62 62 {% endif %} … … 65 65 {% if form.order_objects %}<ul id="orderthese"> 66 66 {% for object in form.order_objects %} 67 <li id="p{% object_pk bound_manipulator object %}">68 <span id="handlep{% object_pk bound_manipulator object %}">{{ object|truncatewords:"5" }}</span>69 </li>70 {% endfor%}67 <li id="p{% object_pk bound_manipulator object %}"> 68 <span id="handlep{% object_pk bound_manipulator object %}">{{ object|truncatewords:"5" }}</span> 69 </li> 70 {% endfor %} 71 71 </ul>{% endif %} 72 72 {% endif %} django/branches/new-admin/django/contrib/admin/templates/admin/change_list.html
r1246 r1393 3 3 {% extends "admin/base_site" %} 4 4 {% block bodyclass %}change-list{% endblock %} 5 {% if not is_popup %}{% block breadcrumbs %}<div class="breadcrumbs"><a href="../../">{% trans "Home" %}</a> › {{ cl.opts.verbose_name_plural|capfirst}} </div>{% endblock %}{% endif %}5 {% if not is_popup %}{% block breadcrumbs %}<div class="breadcrumbs"><a href="../../">{% trans "Home" %}</a> › {{ cl.opts.verbose_name_plural|capfirst }} </div>{% endblock %}{% endif %} 6 6 {% block coltype %}flex{% endblock %} 7 7 {% block content %} 8 8 <div id="content-main"> 9 {% if has_add_permission %}10 <ul class="object-tools"><li><a href="add/{%if is_popup%}?_popup=1{%endif%}" class="addlink">{% blocktrans with cl.opts.verbose_name as name %}Add {{ name }}{% endblocktrans %}</a></li></ul>9 {% if has_add_permission %} 10 <ul class="object-tools"><li><a href="add/{% if is_popup %}?_popup=1{% endif %}" class="addlink">{% blocktrans with cl.opts.verbose_name as name %}Add {{ name }}{% endblocktrans %}</a></li></ul> 11 11 {% endif %} 12 <div class="module{% if cl.has_filters%} filtered{%endif%}" id="changelist">13 {% search_form cl %}14 {% date_hierarchy cl %}12 <div class="module{% if cl.has_filters %} filtered{% endif %}" id="changelist"> 13 {% search_form cl %} 14 {% date_hierarchy cl %} 15 15 {% filters cl %} 16 {% result_list cl %}17 {% pagination cl %}16 {% result_list cl %} 17 {% pagination cl %} 18 18 </div> 19 19 </div> 20 {% endblock%}20 {% endblock %} django/branches/new-admin/django/contrib/admin/templates/admin/change_list_results.html
r1308 r1393 2 2 <thead> 3 3 <tr> 4 {% for header in result_headers %}<th{{ header.class_attrib}}>5 {% if header.sortable%}<a href="{{header.url}}" %>{%endif%}6 {{ header.text|capfirst}}7 {% if header.sortable %}</a>{% endif %}</th>{% endfor %}4 {% for header in result_headers %}<th{{ header.class_attrib }}> 5 {% if header.sortable %}<a href="{{ header.url }}">{% endif %} 6 {{ header.text|capfirst }} 7 {% if header.sortable %}</a>{% endif %}</th>{% endfor %} 8 8 </tr> 9 9 </thead> 10 {%for result in results %} 11 <tr class="{%cycle row1,row2%}" > 12 {%for item in result %} 13 {{item }} 14 {%endfor%} 15 </tr> 16 {%endfor%} 10 {% for result in results %} 11 <tr class="{% cycle row1,row2 %}">{% for item in result %}{{ item }}{% endfor %}</tr> 12 {% endfor %} 17 13 </table> django/branches/new-admin/django/contrib/admin/templates/admin/date_hierarchy.html
r1159 r1393 2 2 <div class="xfull"> 3 3 <ul class="toplinks"> 4 {% if back %}<li class="date-back"><a href="{{ back.link}}">‹ {{back.title}}</a></li>{% endif %}4 {% if back %}<li class="date-back"><a href="{{ back.link }}">‹ {{ back.title }}</a></li>{% endif %} 5 5 {% for choice in choices %} 6 <li> {% if choice.link %}<a href="{{choice.link}}">{%endif%}{{choice.title}}{%if choice.link%}</a>{%endif%}</li>6 <li> {% if choice.link %}<a href="{{ choice.link }}">{% endif %}{{ choice.title }}{% if choice.link %}</a>{% endif %}</li> 7 7 {% endfor %} 8 8 </ul><br class="clear" /> django/branches/new-admin/django/contrib/admin/templates/admin/edit_inline_stacked.html
r1286 r1393 1 1 <fieldset class="module aligned"> 2 {% for fcw in bound_related_object.form_field_collection_wrappers %} 2 {% for fcw in bound_related_object.form_field_collection_wrappers %} 3 3 <h2>{{ bound_related_object.relation.opts.verbose_name|capfirst }} #{{ forloop.counter }}</h2> 4 4 {% if bound_related_object.show_url %}{% if fcw.obj.original %} … … 12 12 {% endif %} 13 13 {% endfor %} 14 {% endfor%}14 {% endfor %} 15 15 </fieldset> django/branches/new-admin/django/contrib/admin/templates/admin/edit_inline_tabular.html
r1286 r1393 1 1 <fieldset class="module"> 2 <h2>{{ bound_related_object.relation.opts.verbose_name_plural|capfirst}}</h2><table>2 <h2>{{ bound_related_object.relation.opts.verbose_name_plural|capfirst }}</h2><table> 3 3 <thead><tr> 4 4 {% for fw in bound_related_object.field_wrapper_list %} 5 5 {% if fw.needs_header %} 6 <th{{ fw.header_class_attribute}}> {{fw.field.verbose_name|capfirst}}</th>6 <th{{ fw.header_class_attribute }}>{{ fw.field.verbose_name|capfirst }}</th> 7 7 {% endif %} 8 8 {% endfor %} 9 {% for fcw in bound_related_object.form_field_collection_wrappers %} 10 9 {% for fcw in bound_related_object.form_field_collection_wrappers %} 11 10 {% if change %}{% if original_row_needed %} 12 11 {% if fcw.obj.original %} 13 <tr class="row-label {% cycle row1,row2 %}"><td colspan="{{ num_headers}}"><strong>{{ fcw.obj.original }}</strong></tr>12 <tr class="row-label {% cycle row1,row2 %}"><td colspan="{{ num_headers }}"><strong>{{ fcw.obj.original }}</strong></tr> 14 13 {% endif %} 15 14 {% endif %}{% endif %} 16 15 {% if fcw.obj.errors %} 17 <tr class="errorlist"><td colspan="{{ num_headers}}">16 <tr class="errorlist"><td colspan="{{ num_headers }}"> 18 17 {{ fcw.obj.html_combined_error_list }} 19 18 </tr> … … 22 21 {% for bound_field in fcw.bound_fields %} 23 22 {% if not bound_field.hidden %} 24 <td {{ bound_field.cell_class_attribute}}>23 <td {{ bound_field.cell_class_attribute }}> 25 24 {% field_widget bound_field %} 26 25 </td> … … 28 27 {% endfor %} 29 28 {% if bound_related_object.show_url %}<td> 30 {% if fcw.obj.original %}<a href="/r/{{ fcw.obj.original.content_type_id }}/{{ fcw.obj.original.id }}/">View on site</a>{% endif %} 29 {% if fcw.obj.original %}<a href="/r/{{ fcw.obj.original.content_type_id }}/{{ fcw.obj.original.id }}/">View on site</a>{% endif %} 31 30 </td>{% endif %} 32 31 </tr> … … 36 35 {% for fcw in bound_related_object.form_field_collection_wrappers %} 37 36 {% for bound_field in fcw.bound_fields %} 38 {% if bound_field.hidden %} 37 {% if bound_field.hidden %} 39 38 {% field_widget bound_field %} 40 39 {% endif %} … … 42 41 {% endfor %} 43 42 </fieldset> 44 django/branches/new-admin/django/contrib/admin/templates/admin/field_line.html
r1042 r1393 4 4 {% if bound_field.has_label_first %} 5 5 {% field_label bound_field %} 6 {% endif %} 6 {% endif %} 7 7 {% field_widget bound_field %} 8 8 {% if not bound_field.has_label_first %} … … 11 11 {% if change %} 12 12 {% if bound_field.field.primary_key %} 13 {{ bound_field.original_value }} 14 {% endif %}13 {{ bound_field.original_value }} 14 {% endif %} 15 15 {% if bound_field.raw_id_admin %} 16 16 {% if bound_field.existing_display %} <strong>{{ bound_field.existing_display|truncatewords:"14" }}</strong>{% endif %} 17 {% endif %}17 {% endif %} 18 18 {% endif %} 19 {% if bound_field.field.help_text %}<p class="help">{{ bound_field.field.help_text}}</p>{% endif %}19 {% if bound_field.field.help_text %}<p class="help">{{ bound_field.field.help_text }}</p>{% endif %} 20 20 {% endfor %} 21 21 </div> django/branches/new-admin/django/contrib/admin/templates/admin/filter.html
r1128 r1393 1 <h3>{%blocktrans%} By {{title}} {%endblocktrans%}</h3>2 <ul> 3 {% for choice in choices %}4 <li{%if choice.selected%} class="selected"{%endif%}>5 <a href="{{choice.query_string}}">{{choice.display}}</a></li>6 {% endfor %}7 </ul>1 <h3>{% blocktrans %} By {{ title }} {% endblocktrans %}</h3> 2 <ul> 3 {% for choice in choices %} 4 <li{% if choice.selected %} class="selected"{% endif %}> 5 <a href="{{ choice.query_string }}">{{ choice.display }}</a></li> 6 {% endfor %} 7 </ul> django/branches/new-admin/django/contrib/admin/templates/admin/pagination.html
r1308 r1393 1 2 1 <p class="paginator"> 3 {% if pagination_required %} 4 {%for i in page_range %} 5 {% paginator_number cl i %} 6 {%endfor%} 7 {%endif%} 8 {{cl.result_count}} {% ifequal cl.result_count 1 %}{{cl.opts.verbose_name}}{%else%}{{cl.opts.verbose_name_plural}}{%endifequal%} 9 {% if show_all_url %} <a href="{{show_all_url}}" class="showall">Show all</a>{%endif%} 10 2 {% if pagination_required %} 3 {% for i in page_range %} 4 {% paginator_number cl i %} 5 {% endfor %} 6 {% endif %} 7 {{ cl.result_count }} {% ifequal cl.result_count 1 %}{{ cl.opts.verbose_name }}{% else %}{{ cl.opts.verbose_name_plural }}{% endifequal %} 8 {% if show_all_url %} <a href="{{ show_all_url }}" class="showall">Show all</a>{% endif %} 11 9 </p> 12 13 django/branches/new-admin/django/contrib/admin/templates/admin/search_form.html
r1028 r1393 1 {% if cl.lookup_opts.admin.search_fields %}1 {% if cl.lookup_opts.admin.search_fields %} 2 2 <div id="toolbar"><form id="changelist-search" action="" method="get"> 3 <label><img src="{% admin_media_prefix %}img/admin/icon_searchbox.png" /></label> 4 <input type="text" size="40" name="{{ search_var}}" value="{{cl.query|escape}}" id="searchbar" />3 <label><img src="{% admin_media_prefix %}img/admin/icon_searchbox.png" /></label> 4 <input type="text" size="40" name="{{ search_var }}" value="{{ cl.query|escape }}" id="searchbar" /> 5 5 <input type="submit" value="Go" /> 6 {% if show_result_count %}7 <span class="small quiet">{{cl.result_count}} result{{cl.result_count|pluralize}} (<a href="?">{{cl.full_result_count}} total</a>)</span>8 {% endif%}6 {% if show_result_count %} 7 <span class="small quiet">{{ cl.result_count }} result{{ cl.result_count|pluralize }} (<a href="?">{{ cl.full_result_count }} total</a>)</span> 8 {% endif %} 9 9 {% for pair in cl.params.items %} 10 {%ifnotequal pair.0 search_var%}<input type="hidden" name="{{pair.0|escape}}" value="{{pair.1|escape}}"/>{%endifnotequal%}10 {% ifnotequal pair.0 search_var %}<input type="hidden" name="{{ pair.0|escape }}" value="{{ pair.1|escape }}"/>{% endifnotequal %} 11 11 {% endfor %} 12 12 </form></div> 13 13 <script type="text/javascript">document.getElementById("searchbar").focus();</script> 14 {% endif%}14 {% endif %} django/branches/new-admin/django/contrib/admin/templates/admin/submit_line.html
r1079 r1393 2 2 <div class="submit-row"> 3 3 {% if show_delete_link %}<p class="float-left"><a href="delete/" class="deletelink">{% trans "Delete" %}</a></p>{% endif %} 4 {% if show_save_as_new %}<input type="submit" value="{% trans 'Save as new' %}" name="_saveasnew" {{ onclick_attrib}}/>{%endif%}5 {% if show_save_and_add_another %}<input type="submit" value="{% trans 'Save and add another' %}" name="_addanother" {{ onclick_attrib}} />{% endif %}6 {% if show_save_and_continue %}<input type="submit" value="{% trans 'Save and continue editing' %}" name="_continue" {{ onclick_attrib}}/>{% endif %}7 {% if show_save %}<input type="submit" value="{% trans 'Save' %}" class="default" {{ onclick_attrib}}/>{% endif %}4 {% if show_save_as_new %}<input type="submit" value="{% trans 'Save as new' %}" name="_saveasnew" {{ onclick_attrib }}/>{%endif%} 5 {% if show_save_and_add_another %}<input type="submit" value="{% trans 'Save and add another' %}" name="_addanother" {{ onclick_attrib }} />{% endif %} 6 {% if show_save_and_continue %}<input type="submit" value="{% trans 'Save and continue editing' %}" name="_continue" {{ onclick_attrib }}/>{% endif %} 7 {% if show_save %}<input type="submit" value="{% trans 'Save' %}" class="default" {{ onclick_attrib }}/>{% endif %} 8 8 </div>
