forked from theforeman/foreman
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
converted most pages to use that grid
- Loading branch information
Showing
34 changed files
with
272 additions
and
293 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
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
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
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
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
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
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
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
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
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 |
---|---|---|
@@ -1,29 +1,22 @@ | ||
<tr> | ||
<td colspan="6"> | ||
<span id="architecture"> | ||
Architecture | ||
<%= f.collection_select :architecture_id, Architecture.all, :id, :to_label, :include_blank => true %> | ||
<span id="host_os"> | ||
<p> | ||
<span id="architecture"> | ||
<%= f.label :architecture_id, nil, :class => "span-3" %> | ||
<%= f.collection_select :architecture_id, Architecture.all, :id, :to_label, { :include_blank => true }, { :class => "span-3" } %> | ||
<span id="host_os"> | ||
|
||
<span id="architecture_select"> | ||
<% if @architecture -%> | ||
<%= render :partial => 'common/os_selection/architecture', :locals => { :f => f, :item=> item } %> | ||
<% end -%> | ||
</span> | ||
|
||
<span id="operatingsystem_select"> | ||
<% if @operatingsystem -%> | ||
<%= render :partial => 'common/os_selection/operatingsystem', :locals => { :f => f, :item=> item } %> | ||
<% end -%> | ||
</span> | ||
<span id="architecture_select"> | ||
<%= render 'common/os_selection/architecture', { :item => item } if @architecture %> | ||
</span> | ||
|
||
</span> | ||
<span id="operatingsystem_select"> | ||
<%= render 'common/os_selection/operatingsystem', { :item=> item } if @operatingsystem %> | ||
</span> | ||
</td> | ||
</tr> | ||
|
||
</span> | ||
</span> | ||
</p> | ||
|
||
<%= observe_field(type + "_architecture_id", | ||
:url => { :action => :architecture_selected}, | ||
:update => :architecture_select, :id => item.id, | ||
:with => :architecture_id) | ||
%> | ||
:with => :architecture_id) %> |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Media | ||
<%= label_tag "#{item}_medium_id", "Media" , :class => "span-2" %> | ||
<%= collection_select(:item, :medium_id, @operatingsystem.media, :id, :to_label, {:include_blank => @operatingsystem.media.size > 1, | ||
:selected => item.medium_id}, {:id => type + "_medium_id", :name => type + "[medium_id]"}) %> | ||
Partition Table | ||
:selected => item.medium_id}, {:id => type + "_medium_id", :name => type + "[medium_id]", :class => "span-3"}) %> | ||
<%= label_tag "#{item}_ptable_id", "Partition Table" , :class => "span-3" %> | ||
<%= collection_select(:item, :ptable_id, @operatingsystem.ptables, :id, :to_label, {:include_blank => @operatingsystem.ptables.size > 1, | ||
:selected => item.ptable_id}, {:id => type + "_ptable_id", :name => type + "[ptable_id]"}) %> | ||
:selected => item.ptable_id}, {:id => type + "_ptable_id", :name => type + "[ptable_id]", :class => "span-3"}) %> |
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 |
---|---|---|
@@ -1,12 +1,14 @@ | ||
<% form_for @common_parameter do |f| %> | ||
<%= f.error_messages %> | ||
<p> | ||
<%= f.label :name %><br /> | ||
<%= f.text_field :name %> | ||
<%= f.label :name, nil, :class => "span-3" %> | ||
<%= f.text_field :name, :class => "last" %> | ||
</p> | ||
<p> | ||
<%= f.label :value %><br /> | ||
<%= f.text_field :value, :size => 100 %> | ||
<%= f.label :value, nil, :class => "span-3" %> | ||
<%= f.text_field :value, :class => "span-20 last" %> | ||
</p> | ||
<br/> | ||
<br/> | ||
<p><%= f.submit "Submit" %></p> | ||
<% end %> |
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 |
---|---|---|
@@ -1,12 +1,8 @@ | ||
<table class="fields"> | ||
<tr> | ||
<td>Name</td> | ||
<td> <%= f.text_field :name, :size => 10 %> </td> | ||
<td>Value</td> | ||
<td> | ||
<%= f.text_field :value, :size => 75 %> | ||
<%= f.hidden_field :nested %> | ||
<%= authorized_via_my_scope(params[:controller], params[:action]) ? link_to_remove_fields("remove", f) : "" %> | ||
</td> | ||
</tr> | ||
</table> | ||
<p class="fields"> | ||
<%= f.label :name, nil, :class => "span-2" %> | ||
<%= f.text_field :name, :class => "span-3" %> | ||
<%= f.label :value, nil, :class => "span-2" %> | ||
<%= f.text_field :value, :class => "span-14" %> | ||
<%= f.hidden_field :nested %> | ||
<%= authorized_via_my_scope(params[:controller], params[:action]) ? link_to_remove_fields("remove", f) : "" %> | ||
</p> |
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<div class="fields"> | ||
Host group <%= f.collection_select :hostgroup_id, Hostgroup.all, :id, :name, :include_blank => true %> | ||
Environment <%= f.collection_select :environment_id, Environment.all, :id, :name, :include_blank => true %> | ||
<%= f.label :hostgroup_id, nil, :class => "span-3" %> | ||
<%= f.collection_select :hostgroup_id, Hostgroup.all, :id, :name, { :include_blank => true }, { :class => "span-4"} %> | ||
<%= f.label :environment_id, nil, :class => "span-3" %> | ||
<%= f.collection_select :environment_id, Environment.all, :id, :name, { :include_blank => true }, { :class => "span-4"} %> | ||
<%= link_to_remove_fields("remove", f) %> | ||
</div> |
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 |
---|---|---|
@@ -1,27 +1,29 @@ | ||
<% form_for @config_template do |f| %> | ||
<%= f.error_messages %> | ||
<p> | ||
Name <%= f.text_field :name %> | ||
Snippet <%= f.check_box :snippet %> | ||
<span id="kind_selector" <%= display? @config_template.snippet %>> | ||
Kind <%= f.collection_select :template_kind_id, TemplateKind.all, :id, :name, :include_blank => true %> | ||
</span> | ||
<p class="span-24"> | ||
<%= f.label :name, nil, :class => "span-3" %> | ||
<%= f.text_field :name, :class => "span-3" %> | ||
<%= f.label :snippet, nil, :class => "span-2" %> | ||
<%= f.check_box :snippet, :class => "span-1" %> | ||
<span id="kind_selector" <%= display? @config_template.snippet %>> | ||
<%= f.label :template_kind_id, "Type", :class => "span-1" %> | ||
<%= f.collection_select :template_kind_id, TemplateKind.all, :id, :name, {:include_blank => true}, { :class => "span-3 last"} %> | ||
</span> | ||
</p> | ||
<p> | ||
<%= f.label :template %><br /> | ||
<%= f.text_area :template, :size => "100x20" %> | ||
<p class="span-24"> | ||
<%= f.label :template, nil, :class => "span-3" %> | ||
<%= f.text_area :template, :class => "span-15" %> | ||
</p> | ||
<div id="template_associations" <%= display? @config_template.snippet %>> | ||
<% field_set_tag("Valid Operating Systems") do %> | ||
<% field_set_tag("Valid Operating Systems", :class => "span-24") do %> | ||
<%= authorized_edit_habtm @config_template, Operatingsystem %> | ||
<% end -%> | ||
<br> | ||
|
||
<%= render "combinations", :f => f %> | ||
<br> | ||
<div class="span-24"> | ||
<%= render "combinations", :f => f %> | ||
</div> | ||
</div> | ||
<p><%= f.submit %></p> | ||
<p class="span-24 last"><%= f.submit %></p> | ||
<% end %> | ||
<%= observe_field "config_template_snippet", :function => toggle_div("template_associations") %> | ||
<%= observe_field "config_template_snippet", :function => toggle_div("kind_selector") %> |
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
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
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<% form_for @environment do |f| %> | ||
<%= f.error_messages %> | ||
<p> | ||
<%= f.label :name %><br/> | ||
<%= f.text_field :name %> | ||
<%= f.label :name, nil, :class => "span-3" %> | ||
<%= f.text_field :name, :class => "last" %> | ||
</p> | ||
<%= f.submit "Submit" %></p> | ||
<% end %> |
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
Oops, something went wrong.