plain_speech_balloon 0.0.24 → 0.0.25
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.
- data/app/views/plain_speech_balloon/speech_balloons/_form.html.erb +12 -12
- data/app/views/plain_speech_balloon/speech_balloons/edit.html.erb +1 -1
- data/app/views/plain_speech_balloon/speech_balloons/new.html.erb +1 -1
- data/app/views/plain_speech_balloon/speeches/_form.html.erb +1 -1
- data/lib/plain_speech_balloon/version.rb +1 -1
- data/lib/plain_speech_balloon.rb +0 -26
- metadata +2 -2
@@ -1,34 +1,34 @@
|
|
1
1
|
<%= form_for(speech_balloon) do |f| %>
|
2
2
|
<%= render 'system/error_explanation', :obj => speech_balloon %>
|
3
|
-
<%= render 'system/error_explanation', :obj =>
|
4
|
-
<%= render 'system/error_explanation', :obj =>
|
5
|
-
<%= render 'system/error_explanation', :obj =>
|
3
|
+
<%= render 'system/error_explanation', :obj => speech_balloon.extend_speech_balloon %>
|
4
|
+
<%= render 'system/error_explanation', :obj => speech_balloon.get_balloon.extend_balloon %>
|
5
|
+
<%= render 'system/error_explanation', :obj => speech_balloon.get_speech.extend_speech %>
|
6
6
|
|
7
7
|
<div class="field">
|
8
8
|
<%= f.label :caption %>
|
9
|
-
<%= f.number_field :caption, :id => speech_balloon.field_tag_id(:caption), :panel_id => speech_balloon.tag_panel_id, :element_id => speech_balloon.tag_element_id, :element_type => speech_balloon.tag_element_type, :column => :caption, :new_index => speech_balloon.
|
9
|
+
<%= f.number_field :caption, :id => speech_balloon.field_tag_id(:caption), :panel_id => speech_balloon.tag_panel_id, :element_id => speech_balloon.tag_element_id, :element_type => speech_balloon.tag_element_type, :column => :caption, :new_index => speech_balloon.tag_new_index, :no_attr => no_attr %>
|
10
10
|
</div>
|
11
11
|
<%= f.fields_for(:speech) do |sf| %>
|
12
|
-
<%= render speech_balloon.speech_balloon_template.engine_name + '/speeches/form', :f => sf, :speech => speech_balloon.
|
12
|
+
<%= render speech_balloon.speech_balloon_template.engine_name + '/speeches/form', :f => sf, :speech => speech_balloon.get_speech, :no_attr => no_attr %>
|
13
13
|
<% end %>
|
14
14
|
|
15
15
|
<%= f.fields_for(:balloon) do |bf| %>
|
16
|
-
<%= render speech_balloon.speech_balloon_template.engine_name + '/balloons/form', :f => bf, :balloon => speech_balloon.
|
16
|
+
<%= render speech_balloon.speech_balloon_template.engine_name + '/balloons/form', :f => bf, :balloon => speech_balloon.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 => speech_balloon.field_tag_id(:z), :panel_id => speech_balloon.tag_panel_id, :element_id => speech_balloon.tag_element_id, :element_type => speech_balloon.tag_element_type, :column => :z, :new_index => speech_balloon.
|
21
|
+
<%= f.number_field :z, :size => 5, :id => speech_balloon.field_tag_id(:z), :panel_id => speech_balloon.tag_panel_id, :element_id => speech_balloon.tag_element_id, :element_type => speech_balloon.tag_element_type, :column => :z, :new_index => speech_balloon.tag_new_index, :no_attr => no_attr %>
|
22
22
|
|
23
23
|
<%= f.label :t %>
|
24
|
-
<%= f.number_field :t, :size => 5, :id => speech_balloon.field_tag_id(:t), :panel_id => speech_balloon.tag_panel_id, :element_id => speech_balloon.tag_element_id, :element_type => speech_balloon.tag_element_type, :column => :t, :new_index => speech_balloon.
|
24
|
+
<%= f.number_field :t, :size => 5, :id => speech_balloon.field_tag_id(:t), :panel_id => speech_balloon.tag_panel_id, :element_id => speech_balloon.tag_element_id, :element_type => speech_balloon.tag_element_type, :column => :t, :new_index => speech_balloon.tag_new_index, :no_attr => no_attr %>
|
25
25
|
</div>
|
26
26
|
|
27
|
-
<%= f.hidden_field :panel_id, :id => speech_balloon.field_tag_id(:panel_id), :panel_id => speech_balloon.tag_panel_id, :element_id => speech_balloon.tag_element_id, :element_type => speech_balloon.tag_element_type, :column => :panel_id, :new_index => speech_balloon.
|
28
|
-
<%= f.hidden_field :classname, :id => speech_balloon.field_tag_id(:classname), :panel_id => speech_balloon.tag_panel_id, :element_id => speech_balloon.tag_element_id, :element_type => speech_balloon.tag_element_type, :column => :classname, :new_index => speech_balloon.
|
29
|
-
<%= f.hidden_field :speech_balloon_template_id, :id => speech_balloon.field_tag_id(:speech_balloon_template_id), :panel_id => speech_balloon.tag_panel_id, :element_id => speech_balloon.tag_element_id, :element_type => speech_balloon.tag_element_type, :column => :speech_balloon_template_id, :new_index => speech_balloon.
|
27
|
+
<%= f.hidden_field :panel_id, :id => speech_balloon.field_tag_id(:panel_id), :panel_id => speech_balloon.tag_panel_id, :element_id => speech_balloon.tag_element_id, :element_type => speech_balloon.tag_element_type, :column => :panel_id, :new_index => speech_balloon.tag_new_index, :no_attr => no_attr %>
|
28
|
+
<%= f.hidden_field :classname, :id => speech_balloon.field_tag_id(:classname), :panel_id => speech_balloon.tag_panel_id, :element_id => speech_balloon.tag_element_id, :element_type => speech_balloon.tag_element_type, :column => :classname, :new_index => speech_balloon.tag_new_index, :no_attr => no_attr %>
|
29
|
+
<%= f.hidden_field :speech_balloon_template_id, :id => speech_balloon.field_tag_id(:speech_balloon_template_id), :panel_id => speech_balloon.tag_panel_id, :element_id => speech_balloon.tag_element_id, :element_type => speech_balloon.tag_element_type, :column => :speech_balloon_template_id, :new_index => speech_balloon.tag_new_index, :no_attr => no_attr %>
|
30
30
|
<% unless speech_balloon.new_record? %>
|
31
|
-
<%= f.hidden_field :id, :id => speech_balloon.field_tag_id(:id), :panel_id => speech_balloon.tag_panel_id, :element_id => speech_balloon.tag_element_id, :element_type => speech_balloon.tag_element_type, :column => :id, :new_index => speech_balloon.
|
31
|
+
<%= f.hidden_field :id, :id => speech_balloon.field_tag_id(:id), :panel_id => speech_balloon.tag_panel_id, :element_id => speech_balloon.tag_element_id, :element_type => speech_balloon.tag_element_type, :column => :id, :new_index => speech_balloon.tag_new_index, :no_attr => no_attr %>
|
32
32
|
<% end %>
|
33
33
|
|
34
34
|
<div class="actions">
|
@@ -4,4 +4,4 @@
|
|
4
4
|
<h2><%= t('home.index.catch') -%></h2>
|
5
5
|
<%= render 'panels/standard', :panel => @panel, :author => @author %>
|
6
6
|
<h2><%= t('speech_balloons.update_speech_balloon') -%></h2>
|
7
|
-
<%= render @speech_balloon.speech_balloon_template.engine_name + '/speech_balloons/form', :speech_balloon => @speech_balloon, :
|
7
|
+
<%= render @speech_balloon.speech_balloon_template.engine_name + '/speech_balloons/form', :speech_balloon => @speech_balloon, :no_attr => 0 %>
|
@@ -4,4 +4,4 @@
|
|
4
4
|
<h2><%= t('home.index.catch') -%></h2>
|
5
5
|
<%= render 'panels/standard', :panel => @panel, :author => @author %>
|
6
6
|
<h2><%= t('speech_balloons.create_speech_balloon') -%></h2>
|
7
|
-
<%= render @speech_balloon.speech_balloon_template.engine_name + '/speech_balloons/form', :speech_balloon => @speech_balloon, :
|
7
|
+
<%= render @speech_balloon.speech_balloon_template.engine_name + '/speech_balloons/form', :speech_balloon => @speech_balloon, :no_attr => 0 %>
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
<div class="field">
|
7
7
|
<%= f.label :content %><br />
|
8
|
-
<%= f.text_area :content, :size => '
|
8
|
+
<%= f.text_area :content, :size => '35x7', :id => speech.field_tag_id(:content), :panel_id => speech.tag_panel_id, :element_id => speech.tag_element_id, :element_type => speech.tag_element_type, :element_part_id => speech.tag_element_part_id, :element_part_type => speech.tag_element_part_type, :column => :content, :new_index => speech.tag_new_index, :no_attr => no_attr %>
|
9
9
|
</div>
|
10
10
|
|
11
11
|
<div class="field">
|
data/lib/plain_speech_balloon.rb
CHANGED
@@ -24,17 +24,6 @@ module PlainSpeechBalloon
|
|
24
24
|
end
|
25
25
|
|
26
26
|
module BalloonModule
|
27
|
-
def new_speech_balloon
|
28
|
-
@new_speech_balloon
|
29
|
-
end
|
30
|
-
|
31
|
-
def new_speech_balloon= v
|
32
|
-
@new_speech_balloon = v
|
33
|
-
end
|
34
|
-
|
35
|
-
def get_speech_balloon
|
36
|
-
self.speech_balloon || @new_speech_balloon
|
37
|
-
end
|
38
27
|
|
39
28
|
def parsed_settings
|
40
29
|
@parsed_settings ||= get_speech_balloon.speech_balloon_template.parsed_settings
|
@@ -70,21 +59,6 @@ module PlainSpeechBalloon
|
|
70
59
|
end
|
71
60
|
|
72
61
|
module SpeechModule
|
73
|
-
def new_speech_balloon
|
74
|
-
@new_speech_balloon
|
75
|
-
end
|
76
|
-
|
77
|
-
def new_speech_balloon= v
|
78
|
-
@new_speech_balloon = v
|
79
|
-
end
|
80
|
-
|
81
|
-
def get_speech_balloon
|
82
|
-
self.speech_balloon || @new_speech_balloon
|
83
|
-
end
|
84
|
-
|
85
|
-
def parsed_settings
|
86
|
-
@parsed_settings ||= get_speech_balloon.speech_balloon_template.parsed_settings
|
87
|
-
end
|
88
62
|
|
89
63
|
def supply_default
|
90
64
|
s = self.parsed_settings['all']['speech']
|
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.25
|
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-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|