Commit 1f65ad8b authored by Julien Muchembled's avatar Julien Muchembled

Remove obsolete ZMI tabs

git-svn-id: https://svn.erp5.org/repos/public/erp5/sandbox/portal_types@29259 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9c2de450
......@@ -12,7 +12,7 @@
#
##############################################################################
from Globals import DTMLFile, InitializeClass
from Globals import InitializeClass
from AccessControl import ClassSecurityInfo
from Products.CMFCore.Expression import Expression
from Products.ERP5Type import _dtmldir
......@@ -43,22 +43,13 @@ class PropertyDomainDict(Implicit):
return None
class TranslationProviderBase:
class TranslationProviderBase(object):
"""
Provide Translation Tabs and management methods for PropertyTranslationDomain
"""
security = ClassSecurityInfo()
_translation_form = DTMLFile('editToolsTranslation', _dtmldir)
manage_options = ( { 'label' : 'Translation'
, 'action' : 'manage_editTranslationForm'
}
,
)
security.declarePrivate('updateInitialPropertyTranslationDomainDict')
def updateInitialPropertyTranslationDomainDict(self):
"""
......@@ -184,8 +175,6 @@ class TranslationProviderBase:
def property_domain_dict(self):
return PropertyDomainDict().__of__(self)
InitializeClass(TranslationProviderBase)
class TranslationInformation(SimpleItem):
"""
......
<dtml-let form_title="'Roles'">
<dtml-if manage_page_header>
<dtml-var manage_page_header>
<dtml-else>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<title>&dtml-form_title;</title>
</head>
<body bgcolor="#FFFFFF" link="#000099" vlink="#555555">
<h3>&dtml-form_title;</h3>
</dtml-if>
</dtml-let>
<dtml-var manage_tabs>
<form action="&dtml-absolute_url;" method="POST">
<dtml-if roles>
<table>
<dtml-in roles mapping>
<dtml-let index=sequence-index>
<tr>
<td>
<div class="form-element">
<input type="checkbox" name="selections:list" value="&dtml-index;" />
</div>
</td>
<td>
<div class="form-label">
Name
</div>
</td>
<td>
<div class="form-element">
<input type="text" name="name_&dtml-index;" value="&dtml-name;" />
</div>
</td>
</tr>
<tr>
<td></td>
<td>
<div class="form-label">
Role
</div>
</td>
<td>
<div class="form-element">
<input type="text" name="id_&dtml-index;" value="&dtml-id;" />
</div>
</td>
</tr>
<tr>
<td></td>
<td>
<div class="form-label">
Description
</div>
</td>
<td>
<div class="form-element">
<textarea rows="3" cols="80" name="description_&dtml-index;">&dtml-description;</textarea>
</div>
</td>
</tr>
<tr>
<td></td>
<td>
<div class="form-label">
Condition
</div>
</td>
<td>
<div class="form-element">
<input type="text" name="condition_&dtml-index;" value="&dtml-condition;" size="80"/>
</div>
</td>
</tr>
<tr>
<td></td>
<td colspan="2"><strong>Local role name generation rule</strong></td>
</tr>
<tr>
<td></td>
<td>
<div class="form-label">
Base Category
</div>
</td>
<td>
<div class="form-element">
<input type="text" size="40" name="base_category_&dtml-index;" value="<dtml-var "' '.join(base_category)">" />
</div>
</td>
</tr>
<tr>
<td></td>
<td>
<div class="form-label">
Base Category Script
</div>
</td>
<td>
<div class="form-element">
<input type="text" name="base_category_script_&dtml-index;" value="&dtml-base_category_script;" size="80" />
</div>
</td>
</tr>
<tr>
<td></td>
<td>
<div class="form-label">
Category
</div>
</td>
<td>
<div class="form-element">
<textarea rows="3" cols="80" name="category_&dtml-index;"><dtml-var "'\n'.join(category)"></textarea>
</div>
</td>
</tr>
</dtml-let>
<tr><td colspan="3">
<hr />
</td></tr>
</dtml-in>
</table>
<div class="form-element">
<table>
<tr>
<td><input type="submit" name="changeRoles:method" value="Save" /></td>
<td><input type="submit" name="deleteRoles:method" value="Delete" /></td>
<td><input type="submit" name="moveUpRoles:method" value="Move up" /></td>
<td><input type="submit" name="moveDownRoles:method" value="Move down" /></td>
</tr>
</table>
</div>
</dtml-if>
<h3 class="form-help">
Add a role
</h3>
<table>
<tr>
<td>
</td>
<td>
<div class="form-label">
Name
</div>
</td>
<td>
<div class="form-element">
<input type="text" name="name" />
</div>
</td>
</tr>
<tr>
<td></td>
<td>
<div class="form-label">
Role
</div>
</td>
<td>
<div class="form-element">
<input type="text" name="id" />
</div>
</td>
</tr>
<tr>
<td></td>
<td>
<div class="form-label">
Description
</div>
</td>
<td>
<div class="form-element">
<textarea rows="3" cols="80" name="description"></textarea>
</div>
</td>
</tr>
<tr>
<td></td>
<td>
<div class="form-label">
Condition
</div>
</td>
<td>
<div class="form-element">
<input type="text" name="condition" size="80"/>
</div>
</td>
</tr>
<tr>
<td></td>
<td colspan="2"><strong>Local role name generation rule</strong></td>
</tr>
<tr>
<td></td>
<td>
<div class="form-label">
Base Category
</div>
</td>
<td>
<div class="form-element">
<input type="text" size="40" name="base_category" />
</div>
</td>
</tr>
<tr>
<td></td>
<td>
<div class="form-label">
Base Category Script
</div>
</td>
<td>
<div class="form-element">
<input type="text" name="base_category_script" size="80" />
</div>
</td>
</tr>
<tr>
<td></td>
<td>
<div class="form-label">
Category
</div>
</td>
<td>
<div class="form-element">
<textarea rows="3" cols="80" name="category"></textarea>
</div>
</td>
</tr>
</table>
<div class="form-element">
<input type="submit" name="addRole:method" value="Add" />
</div>
</form>
<hr />
<p>
Click the button below to update the role settings of all
objects with this portal type.
<form action="updateRoleMapping" method="GET">
<input type="submit" name="submit" value="Update role settings" />
</form>
</p>
<dtml-if manage_page_footer>
<dtml-var manage_page_footer>
<dtml-else>
</body></html>
</dtml-if>
<dtml-let form_title="'Translations'">
<dtml-if manage_page_header>
<dtml-var manage_page_header>
<dtml-else>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<title>&dtml-form_title;</title>
</head>
<body bgcolor="#FFFFFF" link="#000099" vlink="#555555">
<h3>&dtml-form_title;</h3>
</dtml-if>
</dtml-let>
<dtml-var manage_tabs>
<form action="&dtml-absolute_url;" method="POST">
<h3 class="form-help">
Edit Properties Translation Domain Name
</h3>
<dtml-if translations>
<table>
<dtml-in translations mapping>
<dtml-let index=sequence-index>
<tr>
<td></td>
<td>
<div class="form-label">
&dtml-property_name;
</div>
</td>
<td>
<div class="form-element">
<select name="&dtml-property_name;">
<dtml-in possible_domain_names sort>
<dtml-let selected="(domain_name == _['sequence-item'])
and 'selected' or ' '">
<option value="&dtml-sequence-item;" &dtml-selected;>&dtml-sequence-item;</option>
</dtml-let>
</dtml-in>
</select>
</div>
</td>
</tr>
</dtml-let>
</dtml-in>
</table>
<hr />
<div class="form-element">
<table>
<tr>
<td><input type="submit" name="changeTranslations:method" value="Save" /></td>
</tr>
</table>
</div>
</dtml-if>
</form>
<dtml-if manage_page_footer>
<dtml-var manage_page_footer>
<dtml-else>
</body></html>
</dtml-if>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment