Some preamble suggestions from your code sample. You're not taking
advantage of one of dryml's key power which is the implicit context.
Instead of setting an individual named variable (RoR style), try using the
repeat tag
<repeat>
<div>Venue</div><div><view:Name /></div>
... repeat for other values desired
<div><img src="#{this.Photo.url}" ...
<a action="edit" if="&can_edit?" /><delete-button />
</repeat>
You might also want to try replacing the whole repeat there, with just
<collection
/>... err, I haven't used hobo_bootstrap so I'm not sure if the same tag is
available or not.
Also, you can try <field-list fields="Name,Address,Description" /> in place
of the individual named bits. #see note below about capitalized field names
May want to check the dryml guide to make the most of your time with hobo.
http://www.hobocentral.net/manual/dryml-guide
Last, if your fields are actually using uppercase you might want to not do
that. Convention is that is for class/modules/constants. Might cause
weird issues when rails/hobo makes an assumption based on that convention.
On Thursday, June 27, 2013 1:24:02 PM UTC-6, Rusty Phillips wrote:
>
> I'd like to customize the look of the index pages for index-page from
> bootstrap...and I'm having trouble getting it to do much of anything
> without replacing absolutely everything.
>
> My primary goal is a NON tabular format, but with CRUD links still
> available.
> What is the Hobo way of doing this? Is there a way to override *only* how
> the table portion is rendered and make it not be a table, while still
> having the links below it?
> Everything I've tried so far seems to break.
>
> e.g.,
>
> This is my guess as to how this would work:
> <index-page title="Venues">
>
> <body: class="main"/>
>
> <content: fields="Photo, Address, Description">
> <header class="content-header hero-unit">
> <% @results.each do |result| %>
> <div>Venue</div><div>#{venue.Name}</div>
> <div>Address</div><div>#{venue.Address}</div>
> <div>Description</div><div>#{venue.Description}</div>
>
>
> <div><img src="#{venue.Photo.url }" style="max-width:120px"
> /></div>
>
> <% end %>
> <% PRESUMABLY SOME LINK MAGIC COMING FROM HOBO COMES HERE %>
>
> </header>
>
>
> <section class="content-body">
>
> </section>
> </content:>
>
> </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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/hobousers.
For more options, visit https://groups.google.com/groups/opt_out.