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
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:
>>
>>
>
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
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:
>
>
>
>
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
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
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
*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
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
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
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
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
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
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:
>
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:
>
>
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
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
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
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
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
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
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
.
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
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
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
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
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
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/
--
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
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
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
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
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
. . . . . . . . . . . . . . . . . . . . . . . . . .
> > > Ing. Patrick Szabo
> > > XSLT Developer
> > > LexisNexis
> > > A-1030 Wien, Marxergasse 25
> >
> > > mailto:patrick.sz...@lexisnexis.at
> > > Tel.: 00431 534521573
> > >
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
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
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
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
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
&
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
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
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
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
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
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
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,
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
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
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
OST.get('rstartsLkIn','') ,
> request.POST.get('rendsLkIn','') ,
> request.POST.get('rcontainsLkIn','') ,
> request.POST.get('requalLkIn','')
>
> if (rcontainsLkIn)... gives none although it is already pre
, 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
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
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
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
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
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
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)
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)
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)
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
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
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.
--~--~-~--~
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
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
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
*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
66 matches
Mail list logo