diff --git a/controllers/mpog_software_info_controller.rb b/controllers/mpog_software_info_controller.rb new file mode 100644 index 0000000..f241df6 --- /dev/null +++ b/controllers/mpog_software_info_controller.rb @@ -0,0 +1,15 @@ +class MpogSoftwareInfoController < MyProfileController + append_view_path File.join(File.dirname(__FILE__) + '/../views') + + def index + end + + def edit + end + + def edit_software + puts "="*80 + end + +end +end diff --git a/controllers/mpog_software_plugin_myprofile_controller.rb b/controllers/mpog_software_plugin_myprofile_controller.rb index 915a3a4..74a06ea 100644 --- a/controllers/mpog_software_plugin_myprofile_controller.rb +++ b/controllers/mpog_software_plugin_myprofile_controller.rb @@ -100,5 +100,10 @@ class MpogSoftwarePluginMyprofileController < MyProfileController result = environment.people.find(:all, :conditions => ['LOWER(name) LIKE ?', "%#{arg}%"]) render :text => prepare_to_token_input(result).to_json end + + def edit_software + + end + end end diff --git a/lib/mpog_software_plugin.rb b/lib/mpog_software_plugin.rb index b1edfc7..2d0f0d7 100644 --- a/lib/mpog_software_plugin.rb +++ b/lib/mpog_software_plugin.rb @@ -197,12 +197,16 @@ class MpogSoftwarePlugin < Noosfero::Plugin end end + def control_panel_buttons + return { :title => _("Software Info"), :icon => "edit-profile-group", :url => {:controller => "mpog_software_plugin_myprofile", :action => "edit_software"} } + end + def stylesheet? true end def js_files - ["mpog-software-validations.js", "mpog-user-validations.js", "mpog-institution-validations.js", "mpog-incomplete-registration.js", "mpog-search.js", "jquery.maskedinput.min.js"] + ["mpog-software.js", "mpog-software-validations.js", "mpog-user-validations.js", "mpog-institution-validations.js", "mpog-incomplete-registration.js", "mpog-search.js", "jquery.maskedinput.min.js"] end def add_new_organization_buttons diff --git a/public/mpog-software.js b/public/mpog-software.js new file mode 100644 index 0000000..56aaaba --- /dev/null +++ b/public/mpog-software.js @@ -0,0 +1,4 @@ + +jQuery(document).ready(function(){ +}; +//jQuery(".control-panel")[0].innerHTML = jQuery(".control-panel-edit-profile-group")[1].outerHTML + jQuery(".control-panel")[0].innerHTML \ No newline at end of file diff --git a/views/mpog_software_plugin_myprofile/edit_software.html.erb b/views/mpog_software_plugin_myprofile/edit_software.html.erb new file mode 100644 index 0000000..96a413f --- /dev/null +++ b/views/mpog_software_plugin_myprofile/edit_software.html.erb @@ -0,0 +1 @@ + \ No newline at end of file -- libgit2 0.21.2