Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[webui] Create package branch partial
- Loading branch information
Manuel Schnitzer
committed
Mar 21, 2017
1 parent
35d99eb
commit fc72c4c
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |