Commit 77e4a94f authored by Łukasz Nowak's avatar Łukasz Nowak Committed by Rafael Monnerat

Simplify UI.

parent c5c9794a
......@@ -64,12 +64,6 @@ class ERP5BearerExtractionPlugin(BasePlugin):
meta_type = "ERP5 Bearer Extraction Plugin"
security = ClassSecurityInfo()
manage_options = (({'label': 'Edit',
'action': 'manage_editERP5BearerExtractionPluginForm',},
)
+ BasePlugin.manage_options[:]
)
def __init__(self, id, title=None):
#Register value
self._setId(id)
......
......@@ -26,22 +26,6 @@
<input type="text" name="title" size="40" />
</td>
</tr>
<tr>
<td align="left" valign="top">
<div class="form-label">
Portal Type with tokens
</div>
</td>
<td align="left" valign="top">
<input type="text" name="token_portal_type" size="40" />
</td>
</tr>
<tr>
<td>Method to validate found token</td>
<td>
<input type="text" name="token_validation_method" value=""/>
</td>
</tr>
<tr>
<td colspan="2"> <input type="submit" value="add plugin"/>
</td>
......
<h1 tal:replace="structure context/manage_page_header">PAGE HEADER</h1>
<h2 tal:replace="structure here/manage_tabs"> TABS </h2>
<h2 tal:define="form_title string:Edit ERP5 Bearer Extraction Plugin"
tal:replace="structure context/manage_form_title">FORM TITLE</h2>
<p class="form-help">Please configure portal type containing tokens</p>
<form action="manage_editERP5BearerExtractionPlugin" method="POST">
<table tal:define="token_portal_type request/token_portal_type|context/token_portal_type|string:; token_validation_method request/token_validation_method|context/token_validation_method|string:;">
<tr>
<td>Portal Type with tokens</td>
<td>
<input type="text" name="token_portal_type" value=""
tal:attributes="value token_portal_type;" />
</td>
</tr>
<tr>
<td>Method to validate found token</td>
<td>
<input type="text" name="token_validation_method" value=""
tal:attributes="value token_validation_method;" />
</td>
</tr>
<tr>
<td colspan="2">
<input type="submit" value="save"/>
</td>
</tr>
</table>
</form>
<h1 tal:replace="structure context/manage_page_footer">PAGE FOOTER</h1>
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