Thank you. I will look into that :)

On Friday, June 5, 2020 at 3:23:21 PM UTC+2, Andréas Kühne wrote:
>
> Hi,
>
> This is a fairly common practice - I found this:
>
> https://dev.to/zxenia/django-inline-formsets-with-class-based-views-and-crispy-forms-14o6
>
> When googling for "inline formsets" because that's what you want. You can 
> of course choose some other tutorial - but I think this one explains it ok. 
> You will also need to do some javascript to get it working.
>
> Regards,
>
> Andréas
>
>
> Den fre 5 juni 2020 kl 15:00 skrev 'MH' via Django users <
> django...@googlegroups.com <javascript:>>:
>
>> Hi 
>>
>> I am coding a personal cookbook just for fun. On one site I want to be 
>> able to enter the ingredients, including the corresponding amount. So, I 
>> don't want to put all of that in one textarea, but in separate fields, so 
>> that I could recalculate the ingredient's amount if I have to cook for more 
>> people.
>>
>> Now to my question. Let's assume I enter 10 pcs. eggs. Then I would like 
>> to have a button that says "add one more ingredient". You see such things 
>> very often on websites and then another input line pops up, while the 
>> previous entries stay in their place. Do you know how to do that with 
>> django?
>>
>> Best regards
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to django...@googlegroups.com <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/f80fb1e0-7b2f-47bb-bd2e-7cec5edad579o%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/django-users/f80fb1e0-7b2f-47bb-bd2e-7cec5edad579o%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d05bfcb4-21e9-47c9-a5ed-e6dfb7d1cb4eo%40googlegroups.com.

Reply via email to