foreman_hosts 1.1.4 → 1.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
1
  module ForemanHosts
2
- VERSION = '1.1.4'
2
+ VERSION = '1.1.5'
3
3
  end
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_hosts
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -67,19 +67,6 @@ extensions: []
67
67
  extra_rdoc_files: []
68
68
  files:
69
69
  - app/views/dashboard/_foreman_hosts_widget.html.erb
70
- - app/views/foreman_hosts/syhostmodeldetails/edit.html.erb
71
- - app/views/foreman_hosts/syhostmodeldetails/destroy.js.erb
72
- - app/views/foreman_hosts/syhostmodeldetails/create.js.erb
73
- - app/views/foreman_hosts/syhostmodeldetails/new.html.erb
74
- - app/views/foreman_hosts/syhostmodeldetails/update.js.erb
75
- - app/views/foreman_hosts/syhostmodeldetails/new.js.erb
76
- - app/views/foreman_hosts/syhostmodeldetails/_sygroup_td.html.erb
77
- - app/views/foreman_hosts/syhostmodeldetails/show.html.erb
78
- - app/views/foreman_hosts/syhostmodeldetails/index.html.erb
79
- - app/views/foreman_hosts/syhostmodeldetails/_list.html.erb
80
- - app/views/foreman_hosts/syhostmodeldetails/_form.html.erb
81
- - app/views/foreman_hosts/syhostmodeldetails/edit.js.erb
82
- - app/views/foreman_hosts/syhostmodeldetails/_sygroup.html.erb
83
70
  - app/views/foreman_hosts/layouts/layouts/new_layout.html.erb
84
71
  - app/views/foreman_hosts/layouts/new_layout.html.erb
85
72
  - app/views/foreman_hosts/syhostmodels/edit.html.erb
@@ -1,29 +0,0 @@
1
- <%= javascript 'sygroups', 'sygroup_edit', 'sygroup_edit_interfaces', 'class_edit', 'compute_resource', 'lookup_keys'%>
2
-
3
- <%= form_for(@sygroup, remote: true) do |f| %>
4
- <%= base_errors_for @sygroup %>
5
- <div class="row clearfix">
6
- <div class="row">
7
- <div class="form-group col-md-3">
8
- <label>name</label>
9
- <%= f.text_field :name, :size => "col-md-3", placeholder: "填写用户名", class: "form-control" %>
10
- </div>
11
- <div class="form-group col-md-3">
12
- <label>ensure</label> <br />
13
- <%= f.select :ensure, [['Please select an ensure', nil], 'present', 'absent', 'role'], placeholder: "ensure", control_label: 'ensure', class: "col-md-3 column form-control"%>
14
- </div>
15
-
16
- <div class="form-group col-md-3">
17
- <label>gid</label>
18
- <%= f.text_field :gid, :size => "col-md-3", placeholder: "填写gid", class: "form-control" %>
19
- </div>
20
- </div>
21
- <div class="row">
22
- <div class="actions">
23
- <%= f.hidden_field :syusermodel_id, value: @sygroup.syusermodel_id %>
24
- <%= f.submit "提交", class: "btn btn-success" %>
25
- <%= link_to '返回', foreman_users_sygroups_path, class: "btn btn-primary" %>
26
- </div>
27
- </div>
28
- </div>
29
- <% end %>
@@ -1,43 +0,0 @@
1
- <%= javascript "jquery.cookie" %>
2
- <% title header ||= "" %>
3
- <table class="table table-bordered table-striped table-condensed" >
4
- <thead>
5
- <tr>
6
- <th class=''>name</th>
7
- <th class="hidden-xs">ensure</th>
8
- <th class="hidden-xs">gid</th>
9
- <th>操作</th>
10
- </tr>
11
- </thead>
12
- <tbody>
13
- <% sygroups.each do |sygroup| %>
14
- <tr>
15
- <td class=''><%= sygroup.name %></td>
16
- <td class="hidden-xs"><%= sygroup.ensure %></td>
17
- <td class="hidden-xs"><%= sygroup.gid %></td>
18
- <td>
19
- <%= link_to '查看', sygroup %>
20
- <%= link_to '编辑', edit_foreman_users_sygroup_path(sygroup) %>
21
- <%= link_to '删除', sygroup, method: :delete, data: { confirm: 'Are you sure?' } %>
22
- </td>
23
- </tr>
24
- <% end %>
25
- </tbody>
26
- </table>
27
- <div id="confirmation-modal" class="modal fade">
28
- <div class="modal-dialog">
29
- <div class="modal-content">
30
- <div class="modal-header">
31
- <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
32
- <h4 class="modal-title"><%= _('Please Confirm') %></h4>
33
- </div>
34
- <div class="modal-body">
35
- </div>
36
- <div class="modal-footer">
37
- <button type="button" class="btn btn-default" data-dismiss="modal"><%= _('Cancel') %></button>
38
- <button type="button" class="btn btn-primary" onclick="submit_modal_form()"><%= _('Submit') %></button>
39
- </div>
40
- </div><!-- /.modal-content -->
41
- </div><!-- /.modal-dialog -->
42
- </div><!-- /.modal -->
43
- <%= will_paginate_with_info sygroups, :more => " - "+_("<b class='select_count'>0</b> selected") %>
@@ -1,3 +0,0 @@
1
- <tr id="sygroup-<%= sygroup.id %>">
2
- <%= render partial: "foreman_users/sygroups/sygroup_td", locals: { sygroup: sygroup } %>
3
- </tr>
@@ -1,7 +0,0 @@
1
- <td><%= sygroup.name %></td>
2
- <td><%= sygroup.ensure %></td>
3
- <td><%= sygroup.gid %></td>
4
- <td>
5
- <%= link_to '编辑', edit_foreman_users_sygroup_path(sygroup), remote: true %>
6
- <%= link_to '删除', sygroup, method: :delete, remote: true, data: { confirm: 'Are you sure?' } %>
7
- </td>
@@ -1,2 +0,0 @@
1
- $('#formModal').modal("hide");
2
- $(".table.sygroups tbody").prepend('<%= escape_javascript(render(:partial => "foreman_users/sygroups/sygroup", locals: { :sygroup => @sygroup })) %>');
@@ -1 +0,0 @@
1
- $("#sygroup-<%= @sygroup.id %>").fadeOut(200).remove();
@@ -1 +0,0 @@
1
- <%= render 'form' %>
@@ -1,3 +0,0 @@
1
- $('#formModal').modal("show");
2
- $('#formModal .modal-body').html("<%= escape_javascript(render 'foreman_users/sygroups/form') %>");
3
- defaultInit();
@@ -1,5 +0,0 @@
1
- <% if authorized? %>
2
- <% title_actions button_group(link_to "新增", new_foreman_users_sygroup_path) %>
3
- <% end %>
4
-
5
- <%= render 'list', :sygroups => @sygroups, :header => @title || _("System Groups") %>
@@ -1 +0,0 @@
1
- <%= render 'form' %>
@@ -1,3 +0,0 @@
1
- $('#formModal').modal("show");
2
- $('#formModal .modal-body').html("<%= escape_javascript(render 'foreman_users/sygroups/form') %>");
3
- defaultInit();
@@ -1,28 +0,0 @@
1
-
2
- <div class="container">
3
- <div class="row">
4
- <h1 class="clearfix">
5
- <%= @sygroup.name %>
6
- <%= link_to '返回', foreman_users_sygroup_path, class: "btn btn-primary pull-right mr1" %>
7
- <%= link_to '编辑', edit_foreman_users_sygroup_path(@sygroup), class: "btn btn-warning pull-right mr1" %>
8
- </h1>
9
- </div>
10
-
11
- <div class="row col-md-12">
12
- <table class="table table-striped table-bordered">
13
- <thead></thead>
14
- <tbody>
15
- <tr>
16
- <td><strong>name</strong></td>
17
- <td><strong>ensure</strong></td>
18
- <td><strong>gid</strong></td>
19
- </tr>
20
- <tr>
21
- <td><%= @sygroup.name %></td>
22
- <td><%= @sygroup.ensure %></td>
23
- <td><%= @sygroup.gid %></td>
24
- </tr>
25
- </tbody>
26
- </table>
27
- </div>
28
- </div>
@@ -1,3 +0,0 @@
1
- $('#formModal').modal("hide");
2
- $("#sygroup-<%= @sygroup.id %>").html('<%= escape_javascript(render(:partial => "foreman_users/sygroups/sygroup_td", locals: { :sygroup => @sygroup })) %>');
3
- defaultInit();