Re: Proposal: Template block for submit buttons in admin's change_form.html

2008-11-13 Thread suuntala

On Oct 28, 5:37 pm, "Jacob Kaplan-Moss" <[EMAIL PROTECTED]>
wrote:
> Well, that said, don't get carried away... but please do feel free to
> open a ticket with a patch adding blocks of this nature.

I opened a ticket but forgot to notify here. Well, now I am notifying:
http://code.djangoproject.com/ticket/9460

Mikko
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@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-developers?hl=en
-~--~~~~--~~--~--~---



Re: Proposal: Template block for submit buttons in admin's change_form.html

2008-10-28 Thread Jacob Kaplan-Moss

On Mon, Oct 27, 2008 at 7:06 AM, andybak <[EMAIL PROTECTED]> wrote:
> I remember seeing a couple of places where some extra template blocks
> could help with extending the admin (object-tools springs to mind).
> What are the pro's and con's of adding a sprinkling of new blocks?

There really aren't any cons — more blocks are nearly always better.

Well, that said, don't get carried away... but please do feel free to
open a ticket with a patch adding blocks of this nature.

Jacob

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@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-developers?hl=en
-~--~~~~--~~--~--~---



Re: Proposal: Template block for submit buttons in admin's change_form.html

2008-10-27 Thread andybak

I remember seeing a couple of places where some extra template blocks
could help with extending the admin (object-tools springs to mind).
What are the pro's and con's of adding a sprinkling of new blocks?

On Oct 25, 5:14 pm, suuntala <[EMAIL PROTECTED]> wrote:
> G'day all,
>
> After a quick search, it seems I am not the only one who has had
> problems changing the submit buttons on an item's change view in the
> admin application. Some people even use JavaScript for this. For me
> the problem is that I would just like to change the buttons but still
> use admin/change_form.html as the base for my template without having
> to rewrite the whole "content" block.
>
> So, my question is: would it be possible to put the submit buttons
> inside their own block? Maybe there aren't too many cases where this
> would be useful but I can't see how it could do any harm either. Or am
> I missing something here?
>
> Now admin/change_form.html has this:
>
> {% submit_row %}
>
> What if that would be changed to, for example:
>
> {% block submit_buttons %}{% submit_row %}{% endblock %}
>
> Mikko
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@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-developers?hl=en
-~--~~~~--~~--~--~---



Proposal: Template block for submit buttons in admin's change_form.html

2008-10-25 Thread suuntala

G'day all,

After a quick search, it seems I am not the only one who has had
problems changing the submit buttons on an item's change view in the
admin application. Some people even use JavaScript for this. For me
the problem is that I would just like to change the buttons but still
use admin/change_form.html as the base for my template without having
to rewrite the whole "content" block.

So, my question is: would it be possible to put the submit buttons
inside their own block? Maybe there aren't too many cases where this
would be useful but I can't see how it could do any harm either. Or am
I missing something here?

Now admin/change_form.html has this:

{% submit_row %}

What if that would be changed to, for example:

{% block submit_buttons %}{% submit_row %}{% endblock %}


Mikko

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@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-developers?hl=en
-~--~~~~--~~--~--~---