Re: Align Two buttons in a TD

2020-10-24 Thread Venu Gopal
ter Randazzo > escribió: > >> Hi Jhon thanks for replying: >> >> I was able to solve the aling issue following the botstrapp >> documentation about buttons. Here is the new code: >> >> >> >> Edi

Re: Align Two buttons in a TD

2020-10-24 Thread Jason R
24 de octubre de 2020 a la(s) 20:19:27 UTC-3, Walter Randazzo > escribió: > >> Hi Jhon thanks for replying: >> >> I was able to solve the aling issue following the botstrapp >> documentation about buttons. Here is the new code: >> >> >

Re: Align Two buttons in a TD

2020-10-24 Thread Walter Randazzo
Sorry, I forgot to attach the file. This is how the template looks like now: El sábado, 24 de octubre de 2020 a la(s) 20:19:27 UTC-3, Walter Randazzo escribió: > Hi Jhon thanks for replying: > > I was able to solve the aling issue following the botstrapp documentation > about butt

Re: Align Two buttons in a TD

2020-10-24 Thread Walter Randazzo
El sábado, 24 de octubre de 2020 a la(s) 20:19:27 UTC-3, Walter Randazzo escribió: > Hi Jhon thanks for replying: > > I was able to solve the aling issue following the botstrapp documentation > about buttons. Here is the new code: > > > >

Re: Align Two buttons in a TD

2020-10-24 Thread Walter Randazzo
Hi Jhon thanks for replying: I was able to solve the aling issue following the botstrapp documentation about buttons. Here is the new code: EditarBorrar Heres is the Template: El sábado, 24 de octubre de 2020 a la(s) 20:06:30 UTC-3

Re: Align Two buttons in a TD

2020-10-24 Thread John Adepelumi
Can you share the CSS? On Sat, Oct 24, 2020, 8:10 PM Walter Randazzo wrote: > Hi Folks, > > Im trying to get aligned 2 buttons in a TD but they stay overlaped. > Im attaching the html and the results. > > Hope u guys can help me, > > Many Thanks! > > > -- &g

Align Two buttons in a TD

2020-10-24 Thread Walter Randazzo
Hi Folks, Im trying to get aligned 2 buttons in a TD but they stay overlaped. Im attaching the html and the results. Hope u guys can help me, Many Thanks! -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this

Cannot add choice filed with radio buttons in my model form using widget but only charfield.

2018-06-30 Thread Saloni Kalra
*post-form.html* {% extends "posts/post_base.html" %} {% load bootstrap3 %} {% block post_content %} {% if not form.instance.pk %} Create Post {% else %} Update Post {% endif %} {% csrf_token %} {% bootstrap_form form %} {% endblock %} *models.py* from django.conf import settings from django

Re: Adding code when pressing one of admin's save buttons

2017-07-25 Thread Mike Dewhirst
and continue editing’ or the ‘Save’ buttons are pressed (i.e. these details will be read from the image file and entered into the database rather than the administrator doing this manually). How can I added the extra code required to add the date and time when I press one of these buttons? Some

Re: Adding code when pressing one of admin's save buttons

2017-07-25 Thread Thiago Luiz Parolin
django-users@googlegroups.com>: > I am using Django’s admin interface to create new records. A record > includes (amongst other fields) the date and time that a photo was taken. > These fields will be filled into the database when either the ‘Save and add > another’, ‘Save and continue editin

Adding code when pressing one of admin's save buttons

2017-07-25 Thread ron_w_add via Django users
I am using Django’s admin interface to create new records. A record includes (amongst other fields) the date and time that a photo was taken. These fields will be filled into the database when either the ‘Save and add another’, ‘Save and continue editing’ or the ‘Save’ buttons are pressed

Re: Align radio buttons horizontally in django 1.11

2017-04-22 Thread Tim Graham
ANIAR wrote: > > > Hi, > > I'm trying to upgrade existing application from 1.4 to 1.11. > Below snippet of code to align radio buttons horizontally is working fine > with django 1.4 > > from django.utils.safestring import mark_safe > > class HorizontalRadioRend

Align radio buttons horizontally in django 1.11

2017-04-19 Thread BIJAL MANIAR
Hi, I'm trying to upgrade existing application from 1.4 to 1.11. Below snippet of code to align radio buttons horizontally is working fine with django 1.4 from django.utils.safestring import mark_safe class HorizontalRadioRenderer(forms.RadioSelect.renderer): def render(self): r

Re: Tutorial part 4 help: the raidio buttons to make a choice on the polls question won't show.

2017-02-09 Thread Brady Lee
The "polls_choice" table in database file db.sqlite3 has no records, so no radio buttons show up. I manually added 2 records to the "polls_choice" table, then I have the radio buttons showed up. On Tuesday, February 7, 2017 at 6:17:58 PM UTC+8, ludovic coues wrote: >

Re: Tutorial part 4 help: the raidio buttons to make a choice on the polls question won't show.

2017-02-07 Thread ludovic coues
ices. {% endfor %} 2017-02-07 10:12 GMT+01:00 Brady Lee : > Same issue here, no radio buttons show up. > > ubuntu 16.04.1 LTS > python 3.5.2 > django 1.10.5 > > I've tried {{ question|pprint }} and {{ question.choice_set.all|pprint }} > for debugging, got: > >

Re: Tutorial part 4 help: the raidio buttons to make a choice on the polls question won't show.

2017-02-07 Thread Brady Lee
Same issue here, no radio buttons show up. ubuntu 16.04.1 LTS python 3.5.2 django 1.10.5 I've tried {{ question|pprint }} and {{ question.choice_set.all|pprint }} for debugging, got: Now trying to figure out where the problem is. On Thursday, October 20, 2016 at 11:52:59 PM

Re: Best practice for implementing a dynamic "other" field in a group of radio buttons?

2016-12-03 Thread Ryan Nowakowski
On Fri, Nov 25, 2016 at 03:47:45PM -0800, Quentin Fulsher wrote: > Hi all, > > I'm working on a form that has to support a few groups of radio buttons. > I'm wondering if there is a recommended way to do an "other" radio button > that can be dynamically set by

Best practice for implementing a dynamic "other" field in a group of radio buttons?

2016-11-25 Thread Quentin Fulsher
Hi all, I'm working on a form that has to support a few groups of radio buttons. I'm wondering if there is a recommended way to do an "other" radio button that can be dynamically set by the user. Like the user can select the "other" radio button and enter a custo

Re: Tutorial part 4 help: the raidio buttons to make a choice on the polls question won't show.

2016-10-22 Thread ludovic coues
I would try to add that right before the loop: {{ question|pprint }} {{ question.choice_set.all|pprint }} The result should be something like that the pprint filter is for debugging, you should remove once your issue is fixed. It will make obvious some error like question.choi

Re: Tutorial part 4 help: the raidio buttons to make a choice on the polls question won't show.

2016-10-21 Thread Othniel Ayinzat
I think the problem is from around: {% for choice in question.choice_set.all %} {{ choice.choice_text }} {% endfor %} This is because i tested outside the loop and i got the radio button, but the whole idea was to loop through the questions and assign a button for the choices. -- You rece

Tutorial part 4 help: the raidio buttons to make a choice on the polls question won't show.

2016-10-20 Thread Othniel Ayinzat
Hi guys, I have been following the django tutorials up to part 4 on the polls application. My details template only displays the vote submit button but the radio buttons for making choices won't show. I have been battling with this for some hours now and i need help or some pointers. T

Disabling the "Save", "Save and continue editing", and "add another" buttons while saving inlines

2016-07-18 Thread Victor
than once. Therefore I would like to disable the "Save", "Save and continue editing", and "add another" buttons while saving inlines at the very beginning of the save function and re-enable them at the very end of it. How can I do this? = models.py .

Re: Buttons

2015-07-23 Thread Jake Rudolph
Thank you for your response! I am trying to follow AJAX tutorials, and I keep running into an issue with the URLConfs. My current admin and index page use something like this: urlpatterns = [ url(r''^admin/', include(admin.site.urls)), ] But the when implementing AJAX, everything has said

Re: Buttons

2015-07-22 Thread Alex Heyden
A fair bit of this is Javascript, which, strictly speaking, is outside the scope of Django. >From what you're saying, it sounds like your button does two things: make a backend database change and make a frontend display change. Ultimately, the action starts with a Javascript event handler. On but

Buttons

2015-07-22 Thread Jake Rudolph
I am trying to make a button on the index page that changes the boolean field of my object, and then displays that object in a different place on the page. I am not sure what to put as the action for this button, and where to put and call the function that will actually change the value in the

Re: buttons do something

2014-10-04 Thread Collin Anderson
The simple way is to use before your . The other option is to submit the data by hand using javascript. I also recommend checking out templates, if you haven't looked at them: https://docs.djangoproject.com/en/1.7/intro/tutorial03/#write-views-that-actually-do-something -- You received this m

Re: submit buttons in django

2014-03-22 Thread Satinderpal Singh
On Mar 20, 2014 9:19 AM, "Harjot Mann" wrote: > > I have a form in my app and after entering data into that form I > submit that form but I want an another submit button like "Submit and > Add Event", so that after clicking on it it can redirect to an another > form. Please help me that how can I

Re: submit buttons in django

2014-03-20 Thread Harjot Mann
On Thu, Mar 20, 2014 at 4:12 PM, Venkatraman S wrote: > Add the required view to redirect once this button is clicked. Will the data be saved into database with this method? -- Harjot Kaur Mann Blog: http://harjotmann.wordpress.com/ Daily Dairy: http://harjotmann.wordpress.com/daily-diary/ --

Re: submit buttons in django

2014-03-20 Thread Venkatraman S
Add the required view to redirect once this button is clicked. -Venkat On Thu, Mar 20, 2014 at 9:18 AM, Harjot Mann wrote: > I have a form in my app and after entering data into that form I > submit that form but I want an another submit button like "Submit and > Add Event", so that after click

submit buttons in django

2014-03-19 Thread Harjot Mann
I have a form in my app and after entering data into that form I submit that form but I want an another submit button like "Submit and Add Event", so that after clicking on it it can redirect to an another form. Please help me that how can I do this? -- Harjot Kaur Mann Blog: http://harjotmann.wo

Re: change buttons or widgets

2013-07-08 Thread Kakar Arunachal Service
ject.com/en/dev/ref/forms/widgets/ > > For changing the way buttons look; try Twitter Bootstrap: > http://twitter.github.io/bootstrap/components.html > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsu

Re: change buttons or widgets

2013-07-08 Thread Derek
Widgets: https://docs.djangoproject.com/en/dev/ref/forms/widgets/ For changing the way buttons look; try Twitter Bootstrap: http://twitter.github.io/bootstrap/components.html -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubs

change buttons or widgets

2013-07-07 Thread Kakar Arunachal Service
Hi, I think this is too early for me to ask bcoz m still learning the whole web thig. But i'm just very curious. So my question is, how do i change the button or widgets if i had to? I'm sorry if i named or termed it in a wrong way. Thanks! -- You received this message because you are subscribed

Re: Need "edit" and "delete" buttons on each line of a rendered table

2012-01-16 Thread Bill Beal
. . . . . . . . . . . . . . . . . . . . . . . . . . > > > Ing. Patrick Szabo > > > XSLT Developer > > > LexisNexis > > > A-1030 Wien, Marxergasse 25 > > > > > mailto:patrick.sz...@lexisnexis.at > > > Tel.: 00431 534521573 > > >

Re: Need "edit" and "delete" buttons on each line of a rendered table

2012-01-16 Thread j_syk
gliche Nachricht- > > > Von: django-users@googlegroups.com [mailto:django-users@googlegroups.com] > > Im Auftrag von Bill Beal > > Gesendet: Montag, 16. Jänner 2012 14:55 > > An: Django users > > Betreff: Need "edit" and "delete" buttons on eac

Re: Need "edit" and "delete" buttons on each line of a rendered table

2012-01-16 Thread Bill Beal
sz...@lexisnexis.at > Tel.: 00431 534521573 > Fax: +43 1 534 52 146 > > > -Ursprüngliche Nachricht- > > Von: django-users@googlegroups.com [mailto:django-users@googlegroups.com] > Im Auftrag von Bill Beal > Gesendet: Montag, 16. Jänner 2012 14:55 > An: Django users > Betr

AW: Need "edit" and "delete" buttons on each line of a rendered table

2012-01-16 Thread Szabo, Patrick (LNG-VIE)
g, 16. Jänner 2012 14:55 An: Django users Betreff: Need "edit" and "delete" buttons on each line of a rendered table Hi All, I'm trying to render a table and have an EDIT button and a DELETE button on each line, like: ID numberID typeEDITDELETE and identify which l

Need "edit" and "delete" buttons on each line of a rendered table

2012-01-16 Thread Bill Beal
Hi All, I'm trying to render a table and have an EDIT button and a DELETE button on each line, like: ID numberID typeEDITDELETE and identify which line is to be EDITed or DELETEd. I tried to create a unique name for each button, like: but the template language won't let me add. I

Re: Django - Forms Widget TypeChoiceField - how to set id for two radio buttons

2011-12-28 Thread luke lukes
ms/api/#ref-forms-api-co... > > . > > > all the best. > > > On 26 Aralık, 21:45, luke lukes wrote: > > > hi everyone. i'm using a form with a TypeChoiceField, this is the form > > > code:http://pastebin.com/GHttrDyN. now i'm trying to set a custom id &

Re: Django - Forms Widget TypeChoiceField - how to set id for two radio buttons

2011-12-26 Thread Timothy Makobu
t; > https://docs.djangoproject.com/en/dev/ref/forms/api/#ref-forms-api-configuring-label > . > > all the best. > > On 26 Aralık, 21:45, luke lukes wrote: > > hi everyone. i'm using a form with a TypeChoiceField, this is the form > > code:http://pastebin.com/GHt

Re: Django - Forms Widget TypeChoiceField - how to set id for two radio buttons

2011-12-26 Thread Mengu
m with a TypeChoiceField, this is the form > code:http://pastebin.com/GHttrDyN. now i'm trying to set a custom id > for the two radio buttons displayed but i havent found yet the right > way. maybe it's possible set it during form instantiation (as i set > auto_id=False) in the view, but i

Django - Forms Widget TypeChoiceField - how to set id for two radio buttons

2011-12-26 Thread luke lukes
hi everyone. i'm using a form with a TypeChoiceField, this is the form code: http://pastebin.com/GHttrDyN. now i'm trying to set a custom id for the two radio buttons displayed but i havent found yet the right way. maybe it's possible set it during form instantiation (as i set au

Re: Django Forms: Radio buttons and label displayed in the same line?

2011-10-01 Thread Ilian Iliev
per > > Mobile: +359 88 66 08 400 > Website: http://ilian.i-n-i.org > > On Fri, Sep 30, 2011 at 11:03 PM, voss wrote: > >> Hello all, >> >> Is it possible to display radio buttons and label in the same line using >> Django forms? Below is an exa

Re: Django Forms: Radio buttons and label displayed in the same line?

2011-09-30 Thread voss
obile: +359 88 66 08 400 Website: http://ilian.i-n-i.org <http://ilian.i-n-i.org/> On Fri, Sep 30, 2011 at 11:03 PM, voss <mailto:sasa1...@gmail.com>> wrote: Hello all, Is it possible to display radio buttons and label in the same line using Django forms? Below is an ex

Re: Django Forms: Radio buttons and label displayed in the same line?

2011-09-30 Thread voss
Thanks, eng. Ilian Iliev. I will definitely take a look! -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/e3OJD8G-ob4J. To post to this group, send email to

Re: Django Forms: Radio buttons and label displayed in the same line?

2011-09-30 Thread Ilian Iliev
Developer Mobile: +359 88 66 08 400 Website: http://ilian.i-n-i.org On Fri, Sep 30, 2011 at 11:03 PM, voss wrote: > Hello all, > > Is it possible to display radio buttons and label in the same line using > Django forms? Below is an example: > > _Choices = ( > (1,

Django Forms: Radio buttons and label displayed in the same line?

2011-09-30 Thread voss
Hello all, Is it possible to display radio buttons and label in the same line using Django forms? Below is an example: _Choices = ( (1,'A'), (2,'B'), (3,'C'), ) class QuestionForm(forms.Form): question = forms.Choice

Re: What should be a forms.py and views.py be like for a template that has radio buttons ?

2011-06-14 Thread Сергей Владимирович
Something like this: from django import forms class PermissionsChoiceForm(forms.Form): group1_ch = ( (0,' Any registered users'), (1, 'Only users that can edit ') ) group1 = forms.ChoiceField( choices=group1_ch

What should be a forms.py and views.py be like for a template that has radio buttons ?

2011-06-13 Thread Satyajit Sarangi
My template has radio buttons . I would like to know what exactly be there in forms.py to render this template in the views ? This is my tempalte Username: Who can view the data Any registered users Only users that can edit Who can edit the data Any registered user Only the

Re: where is a mistake in radio buttons

2011-02-08 Thread Daniel Roseman
OST.get('rstartsLkIn','') , > request.POST.get('rendsLkIn','') , > request.POST.get('rcontainsLkIn','') , > request.POST.get('requalLkIn','') > > if (rcontainsLkIn)... gives none although it is already pre

where is a mistake in radio buttons

2011-02-08 Thread gintare
, requalLkIn = request.POST.get('rstartsLkIn','') , request.POST.get('rendsLkIn','') , request.POST.get('rcontainsLkIn','') , request.POST.get('requalLkIn','') if (rcontainsLkIn)... gives none although it is alre

Django forms - List of radio buttons and list of checkboxes?

2010-12-07 Thread canimmmbeni...@googlemail.com
Hi how to change this checkbox code to django form? Are you involved in any of the following? (check all that apply): Website Design Web Server Administration Electronic Commerce Web Marketing/ Advertising Web-related Education And how to make similar in django form to this: Poor 1

Re: How to create multiple 'submit' buttons using 'forms' package

2009-12-05 Thread Ken
Sorry for repeating what you said Shawn, but for some reason your reply wasn't showing up in my browser until after I had answered the question for myself. Thanks, Ken -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Re: How to create multiple 'submit' buttons using 'forms' package

2009-12-05 Thread Ken
Never mind, got it. the forms package merely provides the interior of the ; the markup, plus any submit buttons, are the responsibility of the template (or other code). Thanks, Ken On Dec 5, 8:55 pm, Ken wrote: > I have the following form, which displays nicely: > > class Bu

Re: How to create multiple 'submit' buttons using 'forms' package

2009-12-05 Thread Shawn Milochik
Ken, You just put the submit buttons in the HTML form as you would normally. The submit button isn't part of a Django Model or Form. It really doesn't make sense there; there's no data there. Shawn On Dec 5, 2009, at 9:55 PM, Ken wrote: > I have the following fo

How to create multiple 'submit' buttons using 'forms' package

2009-12-05 Thread Ken
I have the following form, which displays nicely: class BuySellForm(forms.Form): symbol = forms.CharField() shares = forms.CharField() price = forms.CharField() However, I can't figure out how to get multiple 'submit' buttons to display (one 'buy' and the o

Add buttons to change_form

2009-09-04 Thread Sandra Django
Hi friends, I have a problem. I want add buttons to change_form, and I did the same thing of Django, I wrote a templatetags, but I have a doubt in the views. I want do something as: def newdescriptor(request): if request.method == 'POST': form = CustomNewForm(request.POST)

Add buttons to change_form

2009-09-03 Thread Sandra Django
Hi friends, I have a problem. I want add buttons to change_form, and I did the same thing of Django, I wrote a templatetags, but I have a doubt in the views. I want do something as: def newdescriptor(request): if request.method == 'POST': form = CustomNewForm(request.POST)

Add buttons to change_form

2009-09-03 Thread Sandra Django
Hi friends, I have a problem. I want add buttons to change_form, and I did the same thing of Django, I wrote a templatetags, but I have a doubt in the views. I want do something as: def newdescriptor(request): if request.method == 'POST': form = CustomNewForm(request.POST)

NullBooleanField fails as radio buttons

2009-05-20 Thread worksology
I'm struggling to get a NullBooleanField to work as radio buttons. By default, a NullBooleanField (NBF) shows up as a select widget with options: "Unknown", "Yes", "No". I assumed I could add this to "radio_fields" and have it turn those options in

Custom submit buttons on admin form

2008-10-15 Thread Delta20
What's the cleanest way to customize the submit buttons that appear on an admin change_form? If there's a way to override submit_row on change_form, that would be the simplest approach, I think, but I'm very much a django beginner so I would appreciate some guidance. To provi

Re: preselecting radio buttons

2008-07-16 Thread webjunkie
Use the initial value: http://www.djangoproject.com/documentation/newforms/#initial On 16 Jul., 16:55, Bobby Roberts <[EMAIL PROTECTED]> wrote: > I've got a radio button group with 4 options and I was wondering if > there is a way in Django to preselect one of the options. --~--~-~--~

preselecting radio buttons

2008-07-16 Thread Bobby Roberts
I've got a radio button group with 4 options and I was wondering if there is a way in Django to preselect one of the options. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group

Accessing individual radio buttons from a template

2008-01-22 Thread Nathaniel Whiteinge
I'd like to be able access the individual radio buttons of a ChoiceField using the RadioSelect widget directly from a template. After quite a bit of searching, I don't think this is currently possible with newforms but I was wondering if anyone knows of something I missed. An earlier

Help buttons/icons for fields in newforms

2007-10-15 Thread Przemek Gawronski
Hi, I'm using newforms and would like to have automatic help button/icon show after each field so a user can click on it to view some help message. Is there any support for something like that in newforms? Maybe someone has worked a different idea for a help message per field? Przemek -- AIKIDO

earn $10 atleast everyday!!!no hassles as easy as cliking ur mouse buttons

2007-05-17 Thread jack nicole
*THE NEXT BIG INTERNET WAVE ….. * * * *VERY HOT* Hi everyone! 100% FREE,Get Paid To Surf The Net Ride The Next Big Internet Wave This note is mainly to offer you a chance to help build AGLOCO – it is a Member-owned Internet community. If you haven't yet heard about AGLOCO, you need to listen up