Clone existing templates

29 views
Skip to first unread message

João Henrique Albuquerque

unread,
Nov 26, 2019, 4:23:18 PM11/26/19
to OpenWISP
Hi OpenWISP community, I would like to know if it is possible to generate a template based on an existing template.

What I would like to achieve is :

  1. Be able to replicate an existing template from one organization to another organization;
  2. Be able to create a new template based on a existing template from the same organization;

I would appreciate any feedback,

Cheers,
João


Federico Capoano

unread,
Nov 26, 2019, 6:59:35 PM11/26/19
to OpenWISP
Hi Joao,

if you need just to copy the contents of an existing template into another (new) template, you can go into advanced mode of the existing template, copy the contents, go into the advanced mode of the new template, paste the contents and save.

Does this reply to your question or did you mean something different?

Federico

--
You received this message because you are subscribed to the Google Groups "OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openwisp+u...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openwisp/f095c270-1a7f-42d2-96f0-9f5f5484e088%40googlegroups.com.

João Henrique Albuquerque

unread,
Nov 27, 2019, 8:10:47 AM11/27/19
to OpenWISP
Hi Frederico,

I think that this method works as an alternative to achieve what I want.

I notice that when you select a template in admin/config/template/ the only option is to delete multiple templates.

Maybe this could be an enhancement for the user experience in the future?

I'll try to work on this. If I managed to make it work, I'll submit a pull request

Thanks,

João






Em terça-feira, 26 de novembro de 2019 20:59:35 UTC-3, Federico Capoano escreveu:
Hi Joao,

if you need just to copy the contents of an existing template into another (new) template, you can go into advanced mode of the existing template, copy the contents, go into the advanced mode of the new template, paste the contents and save.

Does this reply to your question or did you mean something different?

Federico

On Tue, Nov 26, 2019 at 4:23 PM João Henrique Albuquerque <joaoh...@gmail.com> wrote:
Hi OpenWISP community, I would like to know if it is possible to generate a template based on an existing template.

What I would like to achieve is :

  1. Be able to replicate an existing template from one organization to another organization;
  2. Be able to create a new template based on a existing template from the same organization;

I would appreciate any feedback,

Cheers,
João


--
You received this message because you are subscribed to the Google Groups "OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open...@googlegroups.com.

Federico Capoano

unread,
Nov 27, 2019, 10:00:19 AM11/27/19
to OpenWISP
Hi Joao,


On Wed, Nov 27, 2019 at 8:10 AM João Henrique Albuquerque <joaoh...@gmail.com> wrote:
Hi Frederico,

I think that this method works as an alternative to achieve what I want.

I notice that when you select a template in admin/config/template/ the only option is to delete multiple templates.

You would like to be able to copy templates there?

I imagine we would need a page in which the user selects the organization (if they have access to more than one organization).
 
Maybe this could be an enhancement for the user experience in the future?

We could do this as a Google Code-In task. 

Are you interested in mentoring with us?

The first step anyway is to create a new issue in django-netjsonconfig.

Federico 

João Henrique Albuquerque

unread,
Nov 27, 2019, 12:18:18 PM11/27/19
to open...@googlegroups.com
Hi Frederico,

You would like to be able to copy templates there?

I imagine we would need a page in which the user selects the organization (if they have access to more than one organization).

 I think this is the way to go too. Multi-organization users should be able to do something like this.

We could do this as a Google Code-In task. 

Are you interested in mentoring with us?

I don't think I have enough web development knowledge to help to mentor a student.
I'm not sure how I would be able to help mentoring students when I don't have a good background knowledge myself.

The first step anyway is to create a new issue in django-netjsonconfig.

 I Will. Working with OpenWRT for the past few years gave some ideas and improvements for django-netjsonconfig.

Cheers


 

Federico Capoano

unread,
Dec 9, 2019, 9:55:47 AM12/9/19
to OpenWISP
Reply all
Reply to author
Forward
0 new messages