clark_kent 0.11.2 → 0.11.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d9a607f015679502a07982a48c734540326d7a52916b9dab0bde87617a06649
|
4
|
+
data.tar.gz: 0a70ea0de9fccf04363b91f55e05a059bc362ecc20b5ccce21fcf4afd2fd3217
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 454dcc7751ccabdbcc5fdb54ed7d2a3d4b1814d5674c8a117aa0bd18e4bfc35bc1b40402a1de949e5268913ade49b98b4ecdba86ce3f4517eee81e7af76fba46
|
7
|
+
data.tar.gz: 0f6f52a94f4aecb6e9bcc760fe950d8b0b70e28e076433e89b7155d4549262426994618983be079eaff4a7eb02d1176a494191b8632feb983f619eacf5d1b6df
|
@@ -10,32 +10,8 @@
|
|
10
10
|
prompt: 'Please Choose' %>
|
11
11
|
|
12
12
|
</div>
|
13
|
-
|
14
|
-
|
15
|
-
<div class="srow">sharing</div>
|
16
|
-
<div class="srow">
|
17
|
-
<%= f.input :sharing_scope_type, collection: ClarkKent::SharingScopeKind.select_options_for_user(clark_kent_user),
|
18
|
-
input_html: revealer("sharing_options", highlander: true),
|
19
|
-
label: false, include_blank: false %>
|
20
|
-
</div>
|
21
|
-
<div class="srow" <%= revealer_target_attrs("sharing_options") %>>
|
22
|
-
<%= f.input :sharing_scope_id, as: :hidden, input_html: {value: clark_kent_user.id, data: {foo: ClarkKent.user_class_name}}, wrapper_html: revealer_option("sharing_options", trigger: ClarkKent.user_class_name).merge(id: "sharing_options_#{ClarkKent.user_class_name}") %>
|
23
|
-
<% ClarkKent::SharingScopeKind.custom_for_user(clark_kent_user).each do |sharing_scope_kind| %>
|
24
|
-
<% if sharing_scope_kind.associated_containers_for(clark_kent_user).respond_to? :each %>
|
25
|
-
<%= f.input :sharing_scope_id, collection: sharing_scope_kind.associated_containers_for(clark_kent_user), label: false, include_blank: false,
|
26
|
-
wrapper_html: revealer_option("sharing_options", trigger: sharing_scope_kind.class_name).merge(id: "sharing_options_#{sharing_scope_kind.class_name}") %>
|
27
|
-
<% else %>
|
28
|
-
<%= f.input :sharing_scope_id, as: :hidden, input_html: {value: sharing_scope_kind.associated_containers_for(clark_kent_user).id}, wrapper_html: revealer_option("sharing_options", trigger: sharing_scope_kind.associated_containers_for(clark_kent_user).class.name).merge(id: "sharing_options_#{sharing_scope_kind.associated_containers_for(clark_kent_user).class.name}") %>
|
29
|
-
<% end %>
|
30
|
-
<% end %>
|
31
|
-
<%= f.input :sharing_scope_id, as: :hidden, input_html: {value: ''},
|
32
|
-
wrapper_html: revealer_option("sharing_options", trigger: "").merge(id: "sharing_options_") %>
|
33
|
-
</div>
|
34
|
-
</div>
|
35
|
-
<% else %>
|
36
|
-
<%= f.input :sharing_scope_type, as: :hidden, value: 'Everyone' %>
|
37
|
-
<%= f.input :sharing_scope_id, as: :hidden, value: 'Everyone' %>
|
38
|
-
<% end %>
|
13
|
+
<%= f.input :sharing_scope_type, as: :hidden, value: 'Everyone' %>
|
14
|
+
<%= f.input :sharing_scope_id, as: :hidden, value: 'Everyone' %>
|
39
15
|
<div class="scol one-quarter margin-top right">
|
40
16
|
<div class="srow">
|
41
17
|
<%= f.button :submit %>
|
data/lib/clark_kent/version.rb
CHANGED