Skip to content

Commit

Permalink
Remove old ZMI CSS.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Howitz authored and dwt committed Jun 12, 2018
1 parent ff9aadd commit c263311
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 209 deletions.
27 changes: 2 additions & 25 deletions docs/zdgbook/Products.rst
Expand Up @@ -833,31 +833,8 @@ When creating management views you should include the DTML variables
``manage_page_footer`` at the bottom. These variables are acquired
by your product and draw a standard management view header, tabs
widgets, and footer. The management header also includes CSS
information which you can take advantage of if you wish to add CSS
style information to your management views. The management CSS
information is defined in the
`lib/python/App/dtml/manage_page_style.css.dtml`` file. Here are the
CSS classes defined in this file and conventions for their use.

- 'form-help' -- Explanatory text related to forms. In the future,
users may have the option to hide this text.

- 'std-text' -- Declarative text unrelated to forms. You should
rarely use this class.

- 'form-title' -- Form titles.

- 'form-label' -- Form labels for required form elements.

- 'form-optional' -- Form labels for optional form elements.

- 'form-element' -- Form elements. Note, because of a Netscape bug,
you should not use this class on 'textarea' elements.

- 'form-text' -- Declarative text in forms.

- 'form-mono' -- Fixed width text in forms. You should rarely use
this class.
information which you can take advantage of. You can use any of the styles
Twitter Bootstrap 4 provides. (See https://getbootstrap.com/docs/4.0)

Here's an example management view for your poll class. It allows you
to edit the poll question and responses (see ``editPollForm.dtml``)::
Expand Down
4 changes: 0 additions & 4 deletions src/App/Management.py
Expand Up @@ -186,8 +186,4 @@ def manage_zmi_logout(self, REQUEST, RESPONSE):
# Navigation doesn't have an inherited __class_init__ so doesn't get
# initialized automatically.

file = DTMLFile('dtml/manage_page_style.css', globals())
Navigation.security.declarePublic('manage_page_style.css')
setattr(Navigation, 'manage_page_style.css', file)

InitializeClass(Navigation)
2 changes: 0 additions & 2 deletions src/App/dtml/manage_page_header.dtml
Expand Up @@ -7,8 +7,6 @@
<meta http-equiv="content-type" content="text/html;charset=&dtml-management_page_charset;" />
<dtml-call "RESPONSE and RESPONSE.setHeader('content-type','text/html;charset='+management_page_charset)">
<title><dtml-if title_or_id><dtml-var title_or_id><dtml-else>Zope</dtml-if></title>
<!-- <link rel="stylesheet" type="text/css" href="&dtml-BASEPATH1;/manage_page_style.css" /> -->

</head>
<body>
<div class="container-fluid">
176 changes: 0 additions & 176 deletions src/App/dtml/manage_page_style.css.dtml

This file was deleted.

2 changes: 0 additions & 2 deletions src/App/interfaces.py
Expand Up @@ -30,8 +30,6 @@ class INavigation(Interface):
def manage_zmi_logout(REQUEST, RESPONSE):
"""Logout current user"""

INavigation.setTaggedValue('manage_page_style.css', Attribute(""" """))


class IRenderZMIEvent(Interface):
"""ZMI is rendered."""
Expand Down

0 comments on commit c263311

Please sign in to comment.