plain_speech_balloon 0.0.26 → 0.0.27
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,38 +1,38 @@
|
|
1
|
-
<%= form_for(
|
2
|
-
<%= render 'system/error_explanation', :obj =>
|
3
|
-
<%= render 'system/error_explanation', :obj =>
|
4
|
-
<%= render 'system/error_explanation', :obj =>
|
5
|
-
<%= render 'system/error_explanation', :obj =>
|
1
|
+
<%= form_for(elm) do |f| %>
|
2
|
+
<%= render 'system/error_explanation', :obj => elm %>
|
3
|
+
<%= render 'system/error_explanation', :obj => elm.extend_speech_balloon %>
|
4
|
+
<%= render 'system/error_explanation', :obj => elm.get_balloon.extend_balloon %>
|
5
|
+
<%= render 'system/error_explanation', :obj => elm.get_speech.extend_speech %>
|
6
6
|
|
7
7
|
<div class="field">
|
8
8
|
<%= f.label :caption %>
|
9
|
-
<%= f.number_field :caption, :id =>
|
9
|
+
<%= f.number_field :caption, :id => elm.field_tag_id(:caption), :panel_id => elm.tag_panel_id, :element_id => elm.tag_element_id, :element_type => elm.tag_element_type, :column => :caption, :new_index => elm.tag_new_index, :no_attr => no_attr %>
|
10
10
|
</div>
|
11
11
|
<%= f.fields_for(:speech) do |sf| %>
|
12
|
-
<%= render
|
12
|
+
<%= render elm.path_name + '/speeches/form', :f => sf, :speech => elm.get_speech, :no_attr => no_attr %>
|
13
13
|
<% end %>
|
14
14
|
|
15
15
|
<%= f.fields_for(:balloon) do |bf| %>
|
16
|
-
<%= render
|
16
|
+
<%= render elm.path_name + '/balloons/form', :f => bf, :balloon => elm.get_balloon, :no_attr => no_attr %>
|
17
17
|
<% end %>
|
18
18
|
|
19
19
|
<div class="field">
|
20
20
|
<%= f.label :z %>
|
21
|
-
<%= f.number_field :z, :size => 5, :id =>
|
21
|
+
<%= f.number_field :z, :size => 5, :id => elm.field_tag_id(:z), :panel_id => elm.tag_panel_id, :element_id => elm.tag_element_id, :element_type => elm.tag_element_type, :column => :z, :new_index => elm.tag_new_index, :no_attr => no_attr %>
|
22
22
|
|
23
23
|
<%= f.label :t %>
|
24
|
-
<%= f.number_field :t, :size => 5, :id =>
|
24
|
+
<%= f.number_field :t, :size => 5, :id => elm.field_tag_id(:t), :panel_id => elm.tag_panel_id, :element_id => elm.tag_element_id, :element_type => elm.tag_element_type, :column => :t, :new_index => elm.tag_new_index, :no_attr => no_attr %>
|
25
25
|
</div>
|
26
26
|
|
27
|
-
<%= f.hidden_field :panel_id, :id =>
|
28
|
-
<%= f.hidden_field :classname, :id =>
|
29
|
-
<%= f.hidden_field :speech_balloon_template_id, :id =>
|
30
|
-
<% unless
|
31
|
-
<%= f.hidden_field :id, :id =>
|
27
|
+
<%= f.hidden_field :panel_id, :id => elm.field_tag_id(:panel_id), :panel_id => elm.tag_panel_id, :element_id => elm.tag_element_id, :element_type => elm.tag_element_type, :column => :panel_id, :new_index => elm.tag_new_index, :no_attr => no_attr %>
|
28
|
+
<%= f.hidden_field :classname, :id => elm.field_tag_id(:classname), :panel_id => elm.tag_panel_id, :element_id => elm.tag_element_id, :element_type => elm.tag_element_type, :column => :classname, :new_index => elm.tag_new_index, :no_attr => no_attr %>
|
29
|
+
<%= f.hidden_field :speech_balloon_template_id, :id => elm.field_tag_id(:speech_balloon_template_id), :panel_id => elm.tag_panel_id, :element_id => elm.tag_element_id, :element_type => elm.tag_element_type, :column => :elm_template_id, :new_index => elm.tag_new_index, :no_attr => no_attr %>
|
30
|
+
<% unless elm.new_record? %>
|
31
|
+
<%= f.hidden_field :id, :id => elm.field_tag_id(:id), :panel_id => elm.tag_panel_id, :element_id => elm.tag_element_id, :element_type => elm.tag_element_type, :column => :id, :new_index => elm.tag_new_index, :no_attr => no_attr %>
|
32
32
|
<% end %>
|
33
33
|
|
34
34
|
<div class="actions">
|
35
35
|
<%= f.submit t('speech_balloons.submit'), :class => "submit" %>
|
36
36
|
</div>
|
37
|
-
<div class="submit-new-form" panel_id="<%=
|
37
|
+
<div class="submit-new-form" panel_id="<%= elm.tag_panel_id -%>" element_type="<%= elm.tag_element_type -%>"></div>
|
38
38
|
<% end %>
|
@@ -1,19 +1,19 @@
|
|
1
|
-
<% if
|
1
|
+
<% if elm.speech.quotes.blank? -%>
|
2
2
|
<% else -%>
|
3
3
|
<style>
|
4
4
|
<!--
|
5
|
-
#<%=
|
6
|
-
content:"<%=
|
5
|
+
#<%= elm.speech.tag_id('scenario') -%>:before {
|
6
|
+
content:"<%= elm.speech.arrayed_quotes[0] -%>";
|
7
7
|
}
|
8
|
-
#<%=
|
9
|
-
content:"<%=
|
8
|
+
#<%= elm.speech.tag_id('scenario') -%>:after {
|
9
|
+
content:"<%= elm.speech.arrayed_quotes[1] -%>";
|
10
10
|
}
|
11
11
|
-->
|
12
12
|
</style>
|
13
13
|
<% end -%>
|
14
|
-
<div id="<%=
|
15
|
-
<%= h(
|
14
|
+
<div id="<%= elm.balloon.tag_id('scenario') -%>" class="plain_speech_balloon-balloon-scenario">
|
15
|
+
<%= h(elm.caption) %>
|
16
16
|
</div>
|
17
|
-
<div id="<%=
|
18
|
-
<%= h(
|
17
|
+
<div id="<%= elm.speech.tag_id('scenario') -%>" class="plain_speech_balloon-speech-scenario">
|
18
|
+
<%= h(elm.speech.content) %>
|
19
19
|
</div>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: plain_speech_balloon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.27
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-08-
|
12
|
+
date: 2013-08-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|