Plugin copy project button
Added by Luis Serrano Aranda over 13 years ago
I'm new and I tried to make a plugin for that (set by permits) anyone can copy a project. I'd like to help with some things (for polishing). (I add a javascript code to prevent the double submit)
1. I don't know how to change automatically with the plugin a controller. In this case the controller projects.controller.rb, it is necessary modidy the line 26:
before_filter :require_admin, :only => [ :copy, :archive, :unarchive, :destroy ]
Changed:
before_filter :require_admin, :only => [ :archive, :unarchive, :destroy ]
2. I don't know how to add multilanguage to the javascript (to write a message in submit button instead ...).
3. I don't know how to make hooks instead update all the page (copy.rhtml and show.rhtml).
I add my plugin and thank's for your support.
redmine_copy_project_button.zip (18.2 KB) redmine_copy_project_button.zip | First version working |
Replies (1)
RE: Plugin copy project button - Added by Luis Serrano Aranda over 13 years ago
can anyone helpme ?
Thanks
Luis Serrano Aranda wrote:
I'm new and I tried to make a plugin for that (set by permits) anyone can copy a project. I'd like to help with some things (for polishing). (I add a javascript code to prevent the double submit)
1. I don't know how to change automatically with the plugin a controller. In this case the controller projects.controller.rb, it is necessary modidy the line 26:
before_filter :require_admin, :only => [:copy,:archive, :unarchive, :destroy ]
Changed:
before_filter :require_admin, :only => [ :archive, :unarchive, :destroy ]
2. I don't know how to add multilanguage to the javascript (to write a message in submit button instead ...).
3. I don't know how to make hooks instead update all the page (copy.rhtml and show.rhtml).I add my plugin and thank's for your support.