In a <show-page> template (show.dryml), I am surprised that I have not
been able to conditionally control the display of the Edit and Delete
buttons in a <table-plus> using what I thought would work:

<show-page>
   <collection: replace>
      <table-plus with="&@package.documents" fields="id, this,
created_at, updated_at">

         <if test="&@package.state == 'Draft' ">
            <controls:/>
         </if>

   </table-plus>
</collection:>
</show-page>

This is giving me the following:

mixed parameter tags and non-parameter tags (did you forget a ':'?) --
at app/views/packages/show.dryml:24

I tried reversing the layout:
<controls:>
   <if test="&@package.state == 'Draft' ">
      <edit-link:/>
      <delete-button:/>
   </if>
</controls:>

but this produced the same error, and no joy.

Any suggestions?
Tim



-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.

Reply via email to