Hi Kevin,
I have an index page of companies that the user makes a query on. Once the 
"download" is requested, a new "Download" is created and the query data is 
uploaded to S3 then listed in "Downloads".
Having a "new" button doesn't make sense, however it's different than a 
User because I want to list the downloads for the specific user.
Now I could see having a lifecycle around the Download model, although I 
can handle that with a simple set of states easily.

It's just weird that my redefinition of the index page seems to be ignored, 
and I feel that I'm missing something more obvious here.

Thanks,
Michael Bonnet.



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