Author: gabriel.walt
Date: Mon May  4 08:56:00 2009
New Revision: 499

Modified:
    branches/electron/pages/media/pages/css/pages.css
    branches/electron/pages/templates/admin/pages/page/change_form.html
    branches/electron/pages/templates/admin/pages/page/change_list_table.html
    branches/electron/pages/templates/admin/pages/page/menu.html

Log:
Corrected non-working page submit

Modified: branches/electron/pages/media/pages/css/pages.css
==============================================================================
--- branches/electron/pages/media/pages/css/pages.css   (original)
+++ branches/electron/pages/media/pages/css/pages.css   Mon May  4 08:56:00  
2009
@@ -1,6 +1,13 @@
  /* specific CSS for the django page admin application */


+/* general =========================================== */
+
+a:focus {
+    outline: none;
+}
+
+
  /* clearfix =========================================== */

  .clearfix:after {
@@ -22,6 +29,33 @@
  }


+/* help popups =========================================== */
+
+a.popup,
+.popup a {
+    position: relative;
+}
+a.popup .help,
+.popup a .help {
+    display: none;
+    position: absolute;
+    top: -24px;
+    padding: 2px 4px;
+    border: 1px solid #888;
+    font-size: 10px !important;
+    line-height: 12px;
+    font-weight: normal;
+    color: #333;
+    background: #ffb;
+    white-space: nowrap;
+    text-transform: none;
+}
+a.popup:hover .help,
+.popup a:hover .help {
+    display: block;
+}
+
+
  /* auto-complete =========================================== */

  .ac_results {
@@ -71,10 +105,6 @@

  /* change-list page =========================================== */

-.object-tools {
-    display: none;
-}
-
  /* Table-wide */
  .change-list tbody tr:hover {
      background: #f0f2f8;
@@ -179,20 +209,8 @@
  .change-list .insert-move .insert a.right:hover         {  
background-position: -10px -42px; }
  .change-list .insert-move tr:hover .insert a.first-child,
  .change-list .insert-move .insert a.first-child:hover   {  
background-position: -25px -42px; }
-.change-list .insert a span {
-    display: none;
-    position: absolute;
-    top: -24px;
-    padding: 2px;
-    border: 1px solid #888;
-    font-size: 12px;
-    font-weight: normal;
-    color: #333;
-    background: #ffb;
-    white-space: nowrap;
-}
-.change-list .insert a:hover span {
-    display: block;
+.change-list .insert .help {
+    top: -20px;
  }
  .change-list .insert-loading {
      position: absolute;
@@ -202,26 +220,24 @@
  /* Actions */
  .change-list .action-cell {
      width: 1%;
+    min-width: 80px;
      white-space: nowrap;
      padding: 5px 10px;
  }
+.change-list .action-cell a {
+    float: left;
+    width: 15px;
+    height: 14px;
+    padding: 0;
+    margin-right: 5px;
+    background-repeat: no-repeat;
+    background-position: center 0.25em;
+}
  .change-list .action-cell a.viewlink {
-    padding-left: 13px;
-    background: url(../images/icons/view.gif) no-repeat 0 0.25em;
+    background-image: url(../images/icons/view.gif);
  }
  .change-list .action-cell a.movelink {
-    padding-left: 13px;
-    background: url(../images/icons/move.gif) no-repeat 0 0.25em;
-}
-.change-list .action-cell a.addlink {
-    padding-left: 14px;
-    color: #28662C;
-}
-.change-list .action-cell a.addlink:hover {
-    color: #091B0B;
-}
-.change-list .action-cell a.deletelink {
-    padding-left: 13px;
+    background-image: url(../images/icons/move.gif);
  }

  /* Publication status */

Modified:  
branches/electron/pages/templates/admin/pages/page/change_form.html
==============================================================================
--- branches/electron/pages/templates/admin/pages/page/change_form.html  
(original)
+++ branches/electron/pages/templates/admin/pages/page/change_form.html Mon  
May  4 08:56:00 2009
@@ -49,6 +49,7 @@
      /* Hide the Sites options if not needed */
      {% if not PAGE_USE_SITE_ID %}
          $('.form-row.sites').hide();
+        $('#id_sites')[0].selectedIndex = 0;
      {% endif %}
  })();
  -->

Modified:  
branches/electron/pages/templates/admin/pages/page/change_list_table.html
==============================================================================
---  
branches/electron/pages/templates/admin/pages/page/change_list_table.html       
 
(original)
+++  
branches/electron/pages/templates/admin/pages/page/change_list_table.html       
 
Mon May  4 08:56:00 2009
@@ -6,7 +6,7 @@
              <th class="action-cell">{% trans "quick actions" %}</th>
              <th class="publish-cell">{% trans "published" %}</th>
              <th class="template-cell">{% trans "template" %}</th>
-            <th class="author-cell">{% trans "creator" %}</th>
+            <th class="author-cell">{% trans "author" %}</th>
          </tr>
      </thead>
      <tbody>

Modified: branches/electron/pages/templates/admin/pages/page/menu.html
==============================================================================
--- branches/electron/pages/templates/admin/pages/page/menu.html        
(original)
+++ branches/electron/pages/templates/admin/pages/page/menu.html        Mon May 
 4  
08:56:00 2009
@@ -13,26 +13,26 @@
                  {% endif %}
                  <a href="{{ url }}{{ page.id }}/" class="changelink">{%  
show_content page "slug" %}</a>

-                <ul class="translation">
+                <ul class="translation popup">
                      {% for lang in page.get_languages %}
                          <li class="{% if not forloop.last %}last{%  
endif %}">
-                            <a href="{{ url }}{{ page.id }}/?language={{  
lang }}" class="changelink">{{ lang }}</a>
+                            <a href="{{ url }}{{ page.id }}/?language={{  
lang }}" class="changelink">{{ lang }} <span class="help">{% trans "edit  
the page in this language" %}</span></a>
                          </li>
                      {% endfor %}
                  </ul>

-                <div id="move-target-{{ page.id }}" class="insert  
container">
-                    <a href="#" class="move-target left"><span>{%  
trans "insert above" %}</span></a>
-                    <a href="#" class="move-target right"><span>{%  
trans "insert below" %}</span></a>
-                    <a href="#" class="move-target first-child"><span>{%  
trans "insert as child" %}</span></a>
+                <div id="move-target-{{ page.id }}" class="insert popup  
container">
+                    <a href="#" class="move-target left"><span  
class="help">{% trans "insert above" %}</span></a>
+                    <a href="#" class="move-target right"><span  
class="help">{% trans "insert below" %}</span></a>
+                    <a href="#" class="move-target first-child"><span  
class="help">{% trans "insert as child" %}</span></a>
                  </div>
              </div>
          </th>
-        <td class="action-cell">
-            <a class="viewlink" href="{{ page.get_absolute_url }}"  
target="_blank">{% trans "view" %}</a> |
-            <a class="movelink" id="move-link-{{ page.id }}" href="#">{%  
trans "move" %}</a> |
-            <a class="addlink" id="add-link-{{ page.id }}" href="#">{%  
trans "add" %}</a> |
-            <a class="deletelink" href="{{ page.id }}/delete/">{%  
trans "delete" %}</a>
+        <td class="action-cell popup">
+            <a class="viewlink" href="{{ page.get_absolute_url }}"  
target="_blank"><span class="help">{% trans "view this page" %}</span></a>
+            <a class="movelink" id="move-link-{{ page.id }}"  
href="#"><span class="help">{% trans "move this page" %}</span></a>
+            <a class="addlink" id="add-link-{{ page.id }}" href="#"><span  
class="help">{% trans "insert a new page here" %}</span></a>
+            <a class="deletelink" href="{{ page.id }}/delete/"><span  
class="help">{% trans "delete this page" %}</span></a>
          </td>
          <td class="publish-cell">
              {% ifequal page.status page.DRAFT %}

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pinax-updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pinax-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to