Skip to content

Commit

Permalink
[webui] Create package branch partial
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Schnitzer committed Mar 21, 2017
1 parent 35d99eb commit fc72c4c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/api/app/views/shared/_package_branch_form.html.erb
@@ -0,0 +1,17 @@
<p>
<% if show_source_fields %>
<label for="linked_project"><strong>Name of original project:</strong></label><br/>
<%= text_field_tag 'linked_project', nil, size: 80, id: 'linked_project', required: true %><br/>
<label for="linked_package"><strong>Name of package in original project:</strong></label><br/>
<%= text_field_tag 'linked_package', nil, size: 80, id: 'linked_package', required: true %><br/>
<% else %>
<%= hidden_field_tag(:linked_project, @project.name) %>
<%= hidden_field_tag(:linked_package, @package.name) %>
<% end %>

<label for="target_package"><strong>New package name:</strong></label><br />
<%= text_field_tag 'target_package', @package.try(:name), size: 80, maxlength: 200 %><br />
<%= hidden_field_tag 'target_project', target_project.name if target_project %><br/>

<%= check_box_tag 'current_revision', false %>Stay on current revision
</p>

0 comments on commit fc72c4c

Please sign in to comment.