scrivito_crm_form_widget 0.1.0 → 0.1.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8edade64456eba469316b551c719434715441ca6
4
- data.tar.gz: c1407696c8e8773dbf940ffdd6d235843b29d484
3
+ metadata.gz: cc12a8aa8aee232a7d9dc5a4efb1ac8368a91504
4
+ data.tar.gz: 11e8059a8f325c6e7d148a4a436a5f4d8b3a127a
5
5
  SHA512:
6
- metadata.gz: 67ee4165f8e527e4907641133c77806d64d33cfa8a2d71cf56d159fe28f50da339135d1f47352cadacb46c4c9e05b8634ab36a7242ccce03673b957e5a8aec4c
7
- data.tar.gz: 1885e496263b4febdb81b191778d3ef531738e907a61216e7fb3f4bd36df77cb6aadb34286aac15a1b7596d9f0b22a6eea2d857abe84bb06fce8d13c973fd78b
6
+ metadata.gz: c59edd3fbb185eac731c13fb3087de58d04160d1afe2acc14b44df0cc216bcfdc29609233c64d08aff1b1ae04bf2de83bb298f4f2a3a62eed03b4bdfebbce303
7
+ data.tar.gz: 675e8435bb7beea23838d00437e56912ed0da24cb07f18fed3aa944e45a5d2e8c07d451afc373bd0b79324b4e22d74f90a0dd9bcb33e6613fe8e8c8292318661
@@ -1,39 +1,47 @@
1
- <div class="details-view">
2
- <ul class="tab-list">
3
- <li class="active" data-panel-target="#edit-general">General</li>
4
- <li data-panel-target="#edit-tags">Tags</li>
5
- <li data-panel-target="#edit-activity">Activity</li>
6
- <li data-panel-target="#edit-event">Event</li>
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
- <div class="tab-panels">
10
- <div class="tab-panel" id="edit-general">
11
- <h4>Subject</h4>
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
- <h4>Redirect after submit</h4>
12
+ <% end %>
13
+ <%= scrivito_details_for 'Redirect after submit' do %>
14
14
  <%= scrivito_tag :div, widget, :redirect_to %>
15
+ <% end %>
15
16
 
16
- <h4>Text on submitbutton</h4>
17
+ <%= scrivito_details_for 'Text on submitbutton' do %>
17
18
  <%= scrivito_tag :div, widget, :submit_button_text %>
18
- </div>
19
+ <% end %>
20
+ </div>
19
21
 
20
- <div class="tab-panel" id="edit-tags">
21
- <h4>Tags for Contact <abbr title="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"></abbr></h4>
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
- </div>
28
+ <% end %>
29
+ </div>
24
30
 
25
- <div class="tab-panel" id="edit-activity">
26
- <h4>Activity</h4>
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
- </div>
34
+ <% end %>
35
+ </div>
29
36
 
30
- <div class="tab-panel" id="edit-event">
31
- <h4>Activity</h4>
32
- <%= scrivito_toggle_button_editor widget, :event_id, CrmFormWidget.events do |event|
33
- scrivito_tag(:button, widget, :event_id, data: {editor: 'scrivito-toggle-button', content: event.id}) do
34
- event.name
35
- end
36
- end %>
37
- </div>
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
+
@@ -1,3 +1,3 @@
1
1
  module ScrivitoCrmFormWidget
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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.0
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-05-15 00:00:00.000000000 Z
11
+ date: 2015-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler