Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[webui] Split Kiwi show view into partials.
- Loading branch information
Evan Rolfe
committed
Oct 27, 2017
1 parent
c8963bc
commit 28f59ee
Showing
3 changed files
with
26 additions
and
24 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,9 @@ | ||
%h3 Packages | ||
#kiwi-packages-list | ||
%p#no-packages{ class: "#{'hidden' if @package_groups.packages.present?}" }= 'There are no packages.' | ||
|
||
= f.fields_for :package_groups, @package_groups do |package_group_fields| | ||
= package_group_fields.fields_for :packages do |kiwi_package_fields| | ||
= render 'package_fields', f: kiwi_package_fields | ||
%p | ||
= link_to_add_association(sprite_tag("package_add", title: 'Add package') + ' Add package', package_group_fields, :packages) |
15 changes: 15 additions & 0 deletions
15
src/api/app/views/webui/kiwi/images/_repositories.html.haml
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,15 @@ | ||
%h3 Repositories | ||
#kiwi-use-project-repositories | ||
%p | ||
= f.check_box :use_project_repositories | ||
= f.label :use_project_repositories | ||
%p.ui-state-highlight#use-project-repositories-text{ class: "#{'hidden' unless f.object.use_project_repositories?}"} | ||
= sprite_tag("info", title: 'Add package') | ||
This option will use the repositories from the current project. Other repositories set in this Kiwi Image will be REMOVED. | ||
#kiwi-repositories-list{ class: "#{'hidden' if f.object.use_project_repositories?}"} | ||
%hr | ||
%p#no-repositories{ class: "#{'hidden' if @image.repositories.present?}" }= 'There are no repositories.' | ||
= f.fields_for :repositories do |repository_fields| | ||
= render 'repository_fields', f: repository_fields | ||
%p | ||
= link_to_add_association(sprite_tag("drive_add", title: 'Add repository') + ' Add repository', f, :repositories) |
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