Re: [Hobo Users] Suggestion for a clear, simple UI for editing has-many-through with extra attribute?

36 views
Skip to first unread message

Ignacio Huerta

unread,
May 18, 2015, 4:04:27 AM5/18/15
to hobo...@googlegroups.com
Hi Paul,

I think that a custom table would be the best idea from a UI
perspective. Your case reminded me of a point of sale Hobo application I
worked on.

I'm attaching a screenshot. The source code of that view is here:
https://github.com/suyccom/yousell/blob/master/app/views/sales/new.dryml

It has a ton of features but maybe you can find something interesting
there :).

Warm regards,
Ignacio

El 14-05-2015 a las 10:14, paulj...@gmail.com escribió:
> In my situation, there are Questions, and there are Raters. Between them
> is an association called RaterAssignment, which in addition to
> belonging_to a question and a rater, has a integer weight.
>
> In the context of a question, I would like users to
>
> * view the question's current rater_assignments
> * edit the weights of a current_assignment, and
> * delete a current assignment
>
> I would also like users to be able to add a new rater assignment by
> choosing the rater from a dropdown, and entering the weight.
>
> There might be 10 or 20 rater_assignments per question, so this
> interface should be pretty dense.
>
> What's the best hobo-consonant way to get this? I considered input-many,
> but the doc says it is about creating new objects, not new associations,
> and the input-many control, in its default configuration, is not very
> dense. I also considered select-many, but it is not obvious to me how to
> add the weight field to the association.
>
> Maybe a table-plus with an new-rater-assignment form below it?
>
> Any thoughts?
>
> Thanks!
>
> Paul
>
> --
> 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+...@googlegroups.com
> <mailto:hobousers+...@googlegroups.com>.
> To post to this group, send email to hobo...@googlegroups.com
> <mailto:hobo...@googlegroups.com>.
> Visit this group at http://groups.google.com/group/hobousers.
> For more options, visit https://groups.google.com/d/optout.
selling_products_application.png

paulj...@gmail.com

unread,
May 25, 2015, 12:38:05 AM5/25/15
to hobo...@googlegroups.com
Thanks a lot for sharing your rich, clean code with me. I am sure I will learn a lot by studying it.

Best wishes -

Ignacio Huerta

unread,
May 26, 2015, 6:53:26 AM5/26/15
to hobo...@googlegroups.com
Very welcome, the credit for that code goes mostly to
https://github.com/w0www and https://github.com/txapelgorri :)

El 25-05-2015 a las 06:38, paulj...@gmail.com escribió:
> Thanks a lot for sharing your rich, clean code with me. I am sure I will
> learn a lot by studying it.
>
> Best wishes -
>
> On Monday, May 18, 2015 at 3:04:27 PM UTC+7, Ignacio Huerta wrote:
>
> Hi Paul,
>
> I think that a custom table would be the best idea from a UI
> perspective. Your case reminded me of a point of sale Hobo
> application I
> worked on.
>
> I'm attaching a screenshot. The source code of that view is here:
> https://github.com/suyccom/yousell/blob/master/app/views/sales/new.dryml
> <https://github.com/suyccom/yousell/blob/master/app/views/sales/new.dryml>
>
>
> It has a ton of features but maybe you can find something interesting
> there :).
>
> Warm regards,
> Ignacio
>
> > an email to hobousers+...@googlegroups.com <javascript:>
> > <mailto:hobousers+...@googlegroups.com <javascript:>>.
> > To post to this group, send email to hobo...@googlegroups.com
> <javascript:>
> > <mailto:hobo...@googlegroups.com <javascript:>>.
> <http://groups.google.com/group/hobousers>.
> > For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.

Paul Howson

unread,
May 29, 2015, 4:36:27 PM5/29/15
to hobo...@googlegroups.com
The Dryml is very verbose isn't it. This philosophy of customising something that is very generalised has its pros and cons. I do like Dryml, but this scares me away. :)

Ignacio Huerta

unread,
Jun 2, 2015, 4:46:36 AM6/2/15
to hobo...@googlegroups.com
Yes, it does tend to be a bit verbose. I dream with the day when we'll
have dryml with haml like syntax. It would be so nice!!
Reply all
Reply to author
Forward
0 new messages