Figured it out... Takes me a bit to context switch from back end work to 
Hobo which I don't quite get yet.

<index-page without-live-search without-page-nav>

*  <new-link: replace/>*

  <collection: replace>
    <table-plus without-page-nav fields="name, link, status, report_type, 
row_count, download_expiry_time, link_expiry_time"/>
  </collection:>

</index-page>




On Monday, June 29, 2015 at 4:29:05 PM UTC-6, Michael B wrote:
>
>
> I apologize for whatever goofy mistake I'm making...
>
> I have a situation where the model instance is created behind the scenes, 
> so a "new" button is not appropriate.
> The user has rights to create it but indirectly, so suppressing the 
> permissions is not the right thing to do.
> I tried to paste the auto-generated index page for the model into 
> front_site.dryml commenting out the button there but it seems to be defined 
> elsewhere.
>
>
> Thanks for any help.
> Regards,
> Michael Bonnet.
> ------------ front_site.dryml ---------------------------
> <include gem="hobo_rapid"/>
> <include gem='hobo_jquery'/>
> <include gem='hobo_bootstrap'/>
> <include gem='hobo_jquery_ui'/>
> <include gem='hobo_bootstrap_ui'/>
>
> <include src="taglibs/auto/rapid/cards"/>
> <include src="taglibs/auto/rapid/pages"/>
> <include src="taglibs/auto/rapid/forms"/>
>
> <include src="hobo-metasearch"/>
>
> <include src="company-tags"/>
> <include src="application"/>
>
> <def tag="index-page" for="Download">
>   <page merge title="#{ht 'download.index.title', 
> :default=>[model.model_name.human(:count=>100)] }">
>     <body: class="index-page download" param/>
>
>     <content-header: param>
>       <h2 param="heading">
>         <ht key="download.index.heading">
>           <model-name-human model="&model"/>
>         </ht>
>       </h2>
>
>       <p param="count" if>
>         <ht key="download.collection.count" count="&collection_count">
>           <count summary/>
>         </ht>
>       </p>
>     </content-header:>
>
>     <content-body: param>
> <!--
>       <a action="new" to="&model" param="new-link">
>         <ht key="download.actions.new">New Download</ht>
>       </a>
> -->
>
>       <page-nav param="top-page-nav"/>
>
>       <collection param/>
>
>       <page-nav param="bottom-page-nav"/>
>
>
>     </content-body:>
>   </page>
> </def>
> ----------------- app/views/downloads/index.dryml -------------------------
>
> <index-page without-live-search without-page-nav>
>
>   <collection: replace>
>     <table-plus without-page-nav fields="name, report_type, status, 
> file_expiry_time"/>
>   </collection:>
>
> </index-page>
>
>
>
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to hobousers+unsubscr...@googlegroups.com.
To post to this group, send email to hobousers@googlegroups.com.
Visit this group at http://groups.google.com/group/hobousers.
For more options, visit https://groups.google.com/d/optout.

Reply via email to