#8835 closed defect (invalid)
Ticket buttons no longer operational after change in site.html
| Reported by: | Owned by: | ||
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | rendering | Version: | 0.11-stable |
| Severity: | normal | Keywords: | tickets, templates, customize |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description
To enhance usability I added navigation links to tickets just below the Change History.
After following #8135 an related links I inserted this in site.html
<!-- Copy from theme.html with new id -->
<py:if test="context and context.resource.realm == 'ticket' and context.resource.id">
<py:match path="//form[@id='propertyform']" once="true">
<div py:attrs="select('@*')">
<div id="ctxtnav3" class="nav">
<h2>Context Navigation</h2>
<ul py:if="chrome.ctxtnav">
<li py:for="i, elm in enumerate(chrome.ctxtnav)"
class="${classes(first_last(i, chrome.ctxtnav))}">$elm</li>
</ul>
<hr />
</div>
${select('*|text()')}
</div>
</py:match>
</py:if>
The enhancement works fine, but the buttons (preview / Submit changes) are no longer operational. (The new links are operational!)
The log (in DEBUG mode) shows nothing special for me. I observed that the actions are not well formatted (see attachments) which led me to the point it might be an error.
Sorry if I didn't do well in changing site.html - it's my first try.
Attachments (3)
Change History (5)
by , 16 years ago
| Attachment: | additional_navigation.jpg added |
|---|
by , 16 years ago
| Attachment: | not_well_formatted_actions.jpg added |
|---|
by , 16 years ago
| Attachment: | correct_formatted_actions.jpg added |
|---|
comment:1 by , 16 years ago
| Resolution: | → invalid |
|---|---|
| Status: | new → closed |
comment:2 by , 16 years ago
Thx for your hint. Thats it! Correcting this results in a well running enhancement.
Sorry, didn't want to bother you.



The first thing that comes to mind is that you replace a
<form>with a<div>in your<py:match>above. That obviously won't work.Please ask SupportQuestions on the mailing list and/or IrcChannel.