scrivito_crm_form_widget 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/crm_form_widget/details.html.erb +36 -28
- data/lib/scrivito_crm_form_widget/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc12a8aa8aee232a7d9dc5a4efb1ac8368a91504
|
4
|
+
data.tar.gz: 11e8059a8f325c6e7d148a4a436a5f4d8b3a127a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c59edd3fbb185eac731c13fb3087de58d04160d1afe2acc14b44df0cc216bcfdc29609233c64d08aff1b1ae04bf2de83bb298f4f2a3a62eed03b4bdfebbce303
|
7
|
+
data.tar.gz: 675e8435bb7beea23838d00437e56912ed0da24cb07f18fed3aa944e45a5d2e8c07d451afc373bd0b79324b4e22d74f90a0dd9bcb33e6613fe8e8c8292318661
|
@@ -1,39 +1,47 @@
|
|
1
|
-
<
|
2
|
-
<
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
</ul>
|
1
|
+
<ul class="tab-list">
|
2
|
+
<li class="active" data-panel-target="#edit-general">General</li>
|
3
|
+
<li data-panel-target="#edit-tags">Tags</li>
|
4
|
+
<li data-panel-target="#edit-activity">Activity</li>
|
5
|
+
<li data-panel-target="#edit-event">Event</li>
|
6
|
+
</ul>
|
8
7
|
|
9
|
-
|
10
|
-
|
11
|
-
|
8
|
+
<div class="tab-panels">
|
9
|
+
<div class="tab-panel" id="edit-general">
|
10
|
+
<%= scrivito_details_for 'Subject' do %>
|
12
11
|
<%= scrivito_tag :div, widget, :subject %>
|
13
|
-
|
12
|
+
<% end %>
|
13
|
+
<%= scrivito_details_for 'Redirect after submit' do %>
|
14
14
|
<%= scrivito_tag :div, widget, :redirect_to %>
|
15
|
+
<% end %>
|
15
16
|
|
16
|
-
|
17
|
+
<%= scrivito_details_for 'Text on submitbutton' do %>
|
17
18
|
<%= scrivito_tag :div, widget, :submit_button_text %>
|
18
|
-
|
19
|
+
<% end %>
|
20
|
+
</div>
|
19
21
|
|
20
|
-
|
21
|
-
|
22
|
+
<div class="tab-panel" id="edit-tags">
|
23
|
+
<%= scrivito_details_for 'Tags for Contact' do %>
|
24
|
+
<div class="alert alert-info">
|
25
|
+
optional attribute. can be used to add tags to a contact like has_visited_event. contatc will be calculated by the custom attributes email and last_name of your selected activtiy. If this fields do not exist, this field has no effect." class="initialism">
|
26
|
+
</div>
|
22
27
|
<%= scrivito_tag :div, widget, :tags, data: {editor: 'scrivito-list-editor'} %>
|
23
|
-
|
28
|
+
<% end %>
|
29
|
+
</div>
|
24
30
|
|
25
|
-
|
26
|
-
|
31
|
+
<div class="tab-panel" id="edit-activity">
|
32
|
+
<%= scrivito_details_for 'Activity' do %>
|
27
33
|
<%= scrivito_toggle_button_editor widget, :activity_id, CrmFormWidget.activities.map { |a| a.id } %>
|
28
|
-
|
34
|
+
<% end %>
|
35
|
+
</div>
|
29
36
|
|
30
|
-
|
31
|
-
|
32
|
-
<%= scrivito_toggle_button_editor
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
37
|
+
<div class="tab-panel" id="edit-event">
|
38
|
+
<%= scrivito_details_for 'Event' do %>
|
39
|
+
<%= scrivito_toggle_button_editor(widget, :event_id, CrmFormWidget.events) do |event| %>
|
40
|
+
<%= scrivito_tag(:button, widget, :event_id, data: {editor: 'scrivito-toggle-button', content: event.id}) do %>
|
41
|
+
<%= event.title %>
|
42
|
+
<% end %>
|
43
|
+
<% end %>
|
44
|
+
<% end %>
|
38
45
|
</div>
|
39
|
-
</div>
|
46
|
+
</div>
|
47
|
+
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scrivito_crm_form_widget
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scrivito
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|