Add a TAL macro for picker creation

Bug #705060 reported by Tim Penhey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Low
Tim Penhey

Bug Description

Creating the HTML tags for a picker is more onerous than it needs to be. Some TAL macro would certainly help.

For example:

 - <dd tal:content="structure context/owner/fmt:link" />
+ <dd>
+ <span id="recipe-owner">
+ <span class="yui3-activator-data-box">
+ <tal:owner replace="structure context/owner/fmt:link" />
+ </span>
+ <button class="lazr-btn yui3-activator-act yui3-activator-hidden"
+ tal:condition="context/required:launchpad.Edit">
+ Edit
+ </button>
+ <div class="yui3-activator-message-box yui3-activator-hidden" />
+ </span>

This should be easier.

Revision history for this message
Tim Penhey (thumper) wrote :

It now is:

Use the InlineEditPickerWidget, and <tal:widget replace="structure view/some_widget"/>

Changed in launchpad:
status: Triaged → Fix Released
assignee: nobody → Tim Penhey (thumper)
milestone: none → 11.02
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.