Skip to content

Commit fb8f568

Browse files
author
mmcnickle
committedJan 9, 2012
Merge pull request #1 from andrewebdev/master
Pages now look better in Grappelli
2 parents 8e7c284 + 40513f9 commit fb8f568

File tree

4 files changed

+20
-49
lines changed

4 files changed

+20
-49
lines changed
 

‎pages/static/pages/css/pages.css

+12-4
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ html[dir=rtl] .change-list .insert {
373373
.change-list .language-cell {
374374
width: 1%;
375375
white-space: nowrap;
376-
padding: 5px 0 5px 10px;
376+
/*padding: 10px 0 10px 10px;*/
377377
}
378378
.change-list .language-cell ul {
379379
margin: 0;
@@ -406,7 +406,7 @@ html[dir=rtl] .change-list .insert {
406406
.change-list .publish-cell {
407407
width: 1%;
408408
white-space: nowrap;
409-
padding: 0 20px 0 10px;
409+
/*padding: 0 20px 0 10px;*/
410410
}
411411
.change-list .publish-cell .box {
412412
width: 130px;
@@ -418,6 +418,7 @@ html[dir=rtl] .change-list .insert {
418418
.change-list .publish-cell img {
419419
width: 10px;
420420
height: 10px;
421+
vertical-align: text-bottom;
421422
}
422423
.change-list .publish-cell .publish-select {
423424
margin: 2px;
@@ -428,14 +429,14 @@ html[dir=rtl] .change-list .insert {
428429
.change-list .template-cell {
429430
width: 1%;
430431
white-space: nowrap;
431-
padding: 5px 10px;
432+
/*padding: 5px 10px;*/
432433
}
433434

434435
/* autor */
435436
.change-list .author-cell {
436437
width: 1%;
437438
white-space: nowrap;
438-
padding: 5px 10px;
439+
/*padding: 5px 10px;*/
439440
}
440441

441442
/* change-form page =========================================== */
@@ -448,6 +449,7 @@ html[dir=rtl] .change-list .insert {
448449
display: inline; /* IE6 fix */
449450
margin-right: 1em;
450451
}
452+
451453
html[dir=rtl] .change-form .sidebar {
452454
float:right;
453455
margin-left:1em;
@@ -463,6 +465,12 @@ html[dir=rtl] .change-form .sidebar {
463465
width: 148px;
464466
}
465467

468+
.change-form .sidebar .form-row {
469+
padding: 0 10px;
470+
}
471+
.change-form .sidebar fieldset {
472+
padding-bottom: 1em;
473+
}
466474
.change-form .sidebar p.help,
467475
.change-form .sidebar .form-row p.help {
468476
margin-left: 0;

‎pages/templates/admin/pages/page/change_form.html

-7
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,6 @@
1111
{% block content %}
1212
<!-- Content -->
1313
<div id="content-main">
14-
{% block object-tools %}
15-
{% if change and not is_popup %}
16-
<ul class="object-tools">
17-
{% if has_absolute_url %}<li><a href="{% show_absolute_url page %}" class="viewsitelink">{% trans "View on site" %}</a></li>{% endif %}
18-
</ul>
19-
{% endif %}
20-
{% endblock %}
2114

2215
<form id="page_form" {% if has_file_field %}enctype="multipart/form-data" {% endif %} action="?language={{ request.GET.language }}{%if request.GET.target %}&amp;target={{ request.GET.target }}{% endif %}&amp;{%if request.GET.target %}position={{ request.GET.position }}{% endif %}" method="post">
2316
{% csrf_token %}

‎pages/templates/admin/pages/page/change_list.html

+7-37
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,6 @@
55

66
{% block bodyclass %}change-list{% endblock %}
77

8-
{% if not is_popup %}{% block breadcrumbs %}
9-
<div class="breadcrumbs">
10-
<a href="../../">{% trans "Home" %}</a> &rsaquo;
11-
<a href="../">{{ app_label|capfirst|escape }}</a> &rsaquo; {{ opts.verbose_name_plural|capfirst|escape }}
12-
</div>
13-
{% endblock %}{% endif %}
14-
158
{% block coltype %}flex{% endblock %}
169

1710
{% block extrahead %}{{ block.super }}
@@ -25,37 +18,14 @@
2518
<script type="text/javascript" src="{{ PAGES_MEDIA_URL }}javascript/pages_list.js"></script>
2619
{% endblock %}
2720

28-
{% block content %}
29-
<div id="content-main">
30-
31-
{% if has_add_permission %}
32-
<ul class="object-tools"><li><a href="add/" class="addlink">{% blocktrans with name as name %}Add {{ name }}{% endblocktrans %}</a></li></ul>
33-
{% endif %}
34-
35-
<div class="module" id="changelist">
3621

3722
{% block result_list %}
38-
<form method="post" action="">
39-
{% csrf_token %}
40-
{% if action_form and actions_on_top and cl.full_result_count %}{% admin_actions %}{% endif %}
41-
42-
<div id="toolbar">
43-
<form id="changelist-search" action="" method="post">
44-
<div>
45-
<label for="searchbar"><img src="{% load adminmedia %}{% admin_media_prefix %}img/admin/icon_searchbox.png" alt="{% trans "Search" %}" /></label>
46-
<input type="text" size="25" name="q" value="{{q}}" id="searchbar" />
47-
<input type="submit" name="g" value="{% trans "Go" %}" />
48-
</div>
49-
</form>
50-
</div>
51-
52-
<div id="page-list">
53-
{% include "admin/pages/page/change_list_table.html" %}
54-
</div>
55-
{% if action_form and actions_on_bottom and cl.full_result_count %}{% admin_actions %}{% endif %}
56-
</form>
57-
{% endblock %}
23+
<form method="post" action="">{% csrf_token %}
24+
25+
<div id="page-list" class="module changelist-results">
26+
{% include "admin/pages/page/change_list_table.html" %}
27+
</div>
5828

59-
</div>
60-
</div>
29+
{% if action_form and actions_on_bottom and cl.full_result_count %}{% admin_actions %}{% endif %}
30+
</form>
6131
{% endblock %}

‎pages/templates/admin/pages/page/menu.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% load pages_tags i18n adminmedia cache %}
22

3-
<tr id="page-row-{{ page.id }}" class="child-of-{{ page.parent_id }} draggable">
3+
<tr id="page-row-{{ page.id }}" class="child-of-{{ page.parent_id }} draggable {% cycle 'row1' 'row2' %}">
44
<td class="selection-cell"><input class="action-select" type="checkbox" name="_selected_action" value="{{ page.id }}"/></td>
55
<th class="title-cell">
66
<div class="title-cell-container" style="margin-{{ LANGUAGE_BIDI|yesno:"right,left" }}:{{ page.margin_level }}em">

0 commit comments

Comments
 (0)