Commit c7c9720ff8959a2db23e8d843b47a9758b83bf50

Authored by Parley
1 parent 55ae4eb8

Add field "link to repository" on software creation.

Signed-off-by: Gustavo Jaruga <darksshades@gmail.com>
Signed-off-by: Parley Martins <parley@outlook.com>
views/mpog_software_plugin_myprofile/_main_software_editor_extras.html.erb
1   -<h2><%= _('Software Information') %></h2>
  1 +<h2><%= @profile.software_info.name + _(' Information') %></h2>
2 2  
3 3 <h3> <%= _("Finality") %> </h3>
4 4 <div id="finality">
... ...
views/mpog_software_plugin_myprofile/new_software.html.erb
... ... @@ -53,6 +53,15 @@
53 53  
54 54 </div>
55 55 <% end %>
  56 +
  57 +
  58 + <%= fields_for @software_info do |swf| %>
  59 + <div class="formfieldline formfield type-text">
  60 + <%= swf.label "repository_url", _("Link to Repository: ") , :class => "formlabel"%>
  61 + <%= swf.text_field :repository_link %>
  62 + </div>
  63 + <% end %>
  64 +
56 65 <%= template_options(:communities, 'community')%>
57 66  
58 67 <%= hidden_field_tag('back_to', @back_to) %>
... ... @@ -64,4 +73,4 @@
64 73  
65 74 <% end %>
66 75  
67   -</div>
68 76 \ No newline at end of file
  77 +</div>
... ...