How to create a side menu with the urls of each step

2015-09-05 Thread Leandro Severino
Hello,

   I have a formwizard (formtools) 
https://django-formtools.readthedocs.org/en/latest/index.html with 7 steps.
   OK, my formwizard  is OK.

   But now, in this page, my customer wants a side menu with a link for 
each step, because he wants access the step 5 for example without click in 
the next, next, next, next button.

   Well,

  I think that my problems are two:

  1) How to print the urls for each step.
  2) How to map this urls in my urls.conf 

Any help ?

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/b5b3b036-618c-430f-84dd-06090d7b4ace%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: two modelForm fields to a one model Field

2015-09-02 Thread Leandro Severino
 Thanks James.
 

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/cd8fb65b-ee1b-4095-ac6f-b1d1a3a7efcb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


two modelForm fields to a one model Field

2015-09-01 Thread Leandro Severino
Hi,

  In my first post, I have a simple question:

  Its possible a modelForm have two fields for a one model Field ? 

  My codes:


 In my models:

   class MyClass(models.Model):
   COMMON_AMENITIES_CHOICES = (('A', 'Aditional'),
('C', 'Commom'))

   type = models.CharField(u'type', max_length=1, 
choices=COMMON_AMENITIES_CHOICES 
)

   name = moldes.CharField(max_length=250)



With a default form I have this:

class MyClassForm(forms.Form):
from .models import MyClass

COMMON_AMENITIES_CHOICES = tuple(Amenitie.objects.filter(
type_amenitie='C').values_list('id', 'name'))
ADITIONAL_AMENITIES_CHOICES = tuple(Amenitie.objects.filter(
type_amenitie='A').values_list('id', 'name'))

common_amenitie = forms.MultipleChoiceField(
choices=COMMON_AMENITIES_CHOICES,
label=u'Common Amenities'
)
aditional_amenitie = forms.MultipleChoiceField(
choices=ADITIONAL_AMENITIES_CHOICES,
label=u'Common Amenities'
)



  My question:


  Its possible implements this with a modelForm? 


  -- Leandro.

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/6f2fd69a-6f30-425a-91b3-d32b256ef0e4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Basic CRUD form with navigation layout

2008-06-25 Thread Leandro Severino

Thanks³ Antoni,

 This is a very good example and it can resolve my problem.

 []s

 Leandro.

On 25 jun, 10:29, "Antoni Aloy" <[EMAIL PROTECTED]> wrote:
> 2008/6/25 Leandro Severino <[EMAIL PROTECTED]>:
>
>
>
> > Thanks Antoni,
>
> > But I need of examples !. I'm a newbie in Django.
>
> Go to appfusedjango project in google 
> codehttp://code.google.com/p/appfusedjango/perhaps it would help you, as
> I wrote a complete crud operation.
>
> Best regards,
>
> --
> Antoni Aloy López
> Blog:http://trespams.com
> Site:http://apsl.net
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Basic CRUD form with navigation layout

2008-06-25 Thread Leandro Severino

Thanks Antoni,

 But I need of examples !. I'm a newbie in Django.

 Well, in my searchs I found the object Pagination that is the
solution to my problem of a Navegation, but I need of all
operations(new, delete, save and the navigations) in the same page.

 Any idea ?



On 24 jun, 03:55, "Antoni Aloy" <[EMAIL PROTECTED]> wrote:
> 2008/6/24 Leandro Severino <[EMAIL PROTECTED]>:
>
>
>
>
>
> > Hi Djangers,
>
> >   This is my first post and sorry by my terrible english.
>
> >   Well,
> >  My customer needs a page with this layout:
>
> > [div id="toolbar"]
> > NEW - SAVE - DELETE - SEARCH - <<(previous) - >>(next) -
> > PRINT  ( elements)
> > [/div]
>
> > [div id="content"]
> >  The forms fields, for example:
>
> >   [label]Description: [/label]  [input type='text'
> > id='description']
> > [/div]
>
> > [div id="statusPanel"]
> >Record 01 of 20 records.
> > [/div]
>
> >This page is a basic crud in the style 'all-in-one', because all
> > operations are in the same page and if I remember... this is the style
> > of Oracle-Forms applications (with a toolbar and navigations buttons)
>
> >Then, my question is:
> >- How to resolve this problem, what is the best approach or
> > the best solution to this situation ?
>
> It depends on how do you want to archive it. You can use plain html,
> work using ajax and RIA o a mix. On the first two cases you should
> read about django newforms, on the second one you should read about
> your RIA (Dojo, jQuery, extjs, etc) and the documentation about Django
> serialization.
>
> Best regards,
>
> --
> Antoni Aloy López
> Blog:http://trespams.com
> Site:http://apsl.net
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Basic CRUD form with navigation layout

2008-06-23 Thread Leandro Severino

Hi Djangers,

   This is my first post and sorry by my terrible english.

   Well,
  My customer needs a page with this layout:

 [div id="toolbar"]
 NEW - SAVE - DELETE - SEARCH - <<(previous) - >>(next) -
PRINT  ( elements)
 [/div]

 [div id="content"]
  The forms fields, for example:

   [label]Description: [/label]  [input type='text'
id='description']
 [/div]

 [div id="statusPanel"]
Record 01 of 20 records.
 [/div]

This page is a basic crud in the style 'all-in-one', because all
operations are in the same page and if I remember... this is the style
of Oracle-Forms applications (with a toolbar and navigations buttons)

Then, my question is:
- How to resolve this problem, what is the best approach or
the best solution to this situation ?





--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---