plain_speech_balloon 0.0.35 → 0.0.36
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/balloons/_form.html.erb +9 -9
- data/app/views/plain_speech_balloon/speech_balloons/_form.html.erb +9 -9
- data/app/views/plain_speech_balloon/speeches/_form.html.erb +14 -14
- data/lib/plain_speech_balloon/version.rb +1 -1
- data/lib/plain_speech_balloon.rb +3 -3
- metadata +2 -2
@@ -1,27 +1,27 @@
|
|
1
1
|
<div id="<%= balloon.field_tag_id(:form) %>" classname="<%= balloon.classname %>">
|
2
2
|
|
3
|
-
<%= f.hidden_field :r,
|
3
|
+
<%= f.hidden_field :r, balloon.field_tag_attributes(:r, no_attr) %>
|
4
4
|
|
5
5
|
<div class="field">
|
6
6
|
<%= f.label :x %>
|
7
|
-
<%= f.number_field :x,
|
7
|
+
<%= f.number_field :x, balloon.field_tag_attributes(:x, no_attr, :size => 5) %>
|
8
8
|
|
9
9
|
<%= f.label :y %>
|
10
|
-
<%= f.number_field :y,
|
10
|
+
<%= f.number_field :y, balloon.field_tag_attributes(:y, no_attr, :size => 5) %>
|
11
11
|
</div>
|
12
12
|
|
13
13
|
<div class="field">
|
14
14
|
<%= f.label :width %>
|
15
|
-
<%= f.number_field :width,
|
15
|
+
<%= f.number_field :width, balloon.field_tag_attributes(:width, no_attr, :size => 5) %>
|
16
16
|
|
17
17
|
<%= f.label :height %>
|
18
|
-
<%= f.number_field :height,
|
18
|
+
<%= f.number_field :height, balloon.field_tag_attributes(:height, no_attr, :size => 5) %>
|
19
19
|
</div>
|
20
20
|
|
21
|
-
<%= f.hidden_field :system_picture_id,
|
22
|
-
<%= f.hidden_field :settings,
|
23
|
-
<%= f.hidden_field :speech_balloon_id,
|
21
|
+
<%= f.hidden_field :system_picture_id, balloon.field_tag_attributes(:system_picture_id, no_attr) %>
|
22
|
+
<%= f.hidden_field :settings, balloon.field_tag_attributes(:settings, no_attr) %>
|
23
|
+
<%= f.hidden_field :speech_balloon_id, balloon.field_tag_attributes(:speech_balloon_id, no_attr) %>
|
24
24
|
<% unless balloon.new_record? %>
|
25
|
-
<%= f.hidden_field :id,
|
25
|
+
<%= f.hidden_field :id, balloon.field_tag_attributes(:id, no_attr) %>
|
26
26
|
<% end %>
|
27
27
|
</div>
|
@@ -1,12 +1,12 @@
|
|
1
1
|
<%= form_for(elm) do |f| %>
|
2
2
|
<%= render 'system/error_explanation', :obj => elm %>
|
3
3
|
<%= render 'system/error_explanation', :obj => elm.extend_speech_balloon %>
|
4
|
-
<%= render 'system/error_explanation', :obj => elm.
|
5
|
-
<%= render 'system/error_explanation', :obj => elm.
|
4
|
+
<%= render 'system/error_explanation', :obj => elm.balloon.extend_balloon %>
|
5
|
+
<%= render 'system/error_explanation', :obj => elm.speech.extend_speech %>
|
6
6
|
|
7
7
|
<div class="field">
|
8
8
|
<%= f.label :caption %>
|
9
|
-
<%= f.number_field :caption,
|
9
|
+
<%= f.number_field :caption, elm.field_tag_attributes(:caption, no_attr) %>
|
10
10
|
</div>
|
11
11
|
<%= f.fields_for(:speech) do |sf| %>
|
12
12
|
<%= render elm.speech_form_template, :f => sf, :speech => elm.get_speech, :no_attr => no_attr %>
|
@@ -18,17 +18,17 @@
|
|
18
18
|
|
19
19
|
<div class="field">
|
20
20
|
<%= f.label :z %>
|
21
|
-
<%= f.number_field :z,
|
21
|
+
<%= f.number_field :z, elm.field_tag_attributes(:z, no_attr, :size => 5) %>
|
22
22
|
|
23
23
|
<%= f.label :t %>
|
24
|
-
<%= f.number_field :t,
|
24
|
+
<%= f.number_field :t, elm.field_tag_attributes(:t, no_attr, :size => 5) %>
|
25
25
|
</div>
|
26
26
|
|
27
|
-
<%= f.hidden_field :panel_id,
|
28
|
-
<%= f.hidden_field :classname,
|
29
|
-
<%= f.hidden_field :speech_balloon_template_id,
|
27
|
+
<%= f.hidden_field :panel_id, elm.field_tag_attributes(:panel_id, no_attr) %>
|
28
|
+
<%= f.hidden_field :classname, elm.field_tag_attributes(:classname, no_attr) %>
|
29
|
+
<%= f.hidden_field :speech_balloon_template_id, elm.field_tag_attributes(:speech_balloon_template_id, no_attr) %>
|
30
30
|
<% unless elm.new_record? %>
|
31
|
-
<%= f.hidden_field :id,
|
31
|
+
<%= f.hidden_field :id, elm.field_tag_attributes(:id, no_attr) %>
|
32
32
|
<% end %>
|
33
33
|
|
34
34
|
<div class="actions">
|
@@ -1,28 +1,28 @@
|
|
1
1
|
<div class="field">
|
2
2
|
<%= f.label :writing_format_id %><br />
|
3
|
-
<%= f.collection_select :writing_format_id, WritingFormat.list.map {|l| [l.caption, l.id] }, :last, :first, {:html => {:selected => speech.writing_format_id}},
|
3
|
+
<%= f.collection_select :writing_format_id, WritingFormat.list.map {|l| [l.caption, l.id] }, :last, :first, {:html => {:selected => speech.writing_format_id}}, speech.field_tag_attributes(:writing_format_id, no_attr) %>
|
4
4
|
</div>
|
5
5
|
|
6
6
|
<div class="field">
|
7
7
|
<%= f.label :content %><br />
|
8
|
-
<%= f.text_area :content,
|
8
|
+
<%= f.text_area :content, speech.field_tag_attributes(:content, no_attr, :size => '35x7') %>
|
9
9
|
</div>
|
10
10
|
|
11
11
|
<div class="field">
|
12
12
|
<%= f.label :font_size %><br />
|
13
|
-
<%= f.collection_select :font_size, t_select_items(MagicNumber['speech_font_size_items']), :last, :first, {:html => {:selected => speech.font_size}},
|
13
|
+
<%= f.collection_select :font_size, t_select_items(MagicNumber['speech_font_size_items']), :last, :first, {:html => {:selected => speech.font_size}}, speech.field_tag_attributes(:font_size, no_attr) %>
|
14
14
|
</div>
|
15
15
|
|
16
16
|
<div class="field">
|
17
17
|
<%= f.label :text_align %><br />
|
18
|
-
<%= f.collection_select :text_align, t_select_items(MagicNumber['speech_text_align_items']), :last, :first, {:html => {:selected => speech.text_align}},
|
18
|
+
<%= f.collection_select :text_align, t_select_items(MagicNumber['speech_text_align_items']), :last, :first, {:html => {:selected => speech.text_align}}, speech.field_tag_attributes(:text_align, no_attr) %>
|
19
19
|
</div>
|
20
20
|
|
21
21
|
<div class="field">
|
22
22
|
<%= f.label :fore_color %>
|
23
|
-
<%= f.text_field :fore_color,
|
23
|
+
<%= f.text_field :fore_color, speech.field_tag_attributes(:fore_color, no_attr, :size => 8) %>
|
24
24
|
<div class="colorpicker-wrap">
|
25
|
-
<div class="colorpicker" style="float: left;"
|
25
|
+
<div class="colorpicker" style="float: left;" <%= raw speech.field_tag_attr(:code_picker, no_attr) -%>>
|
26
26
|
<div id="<%= speech.tag_id(:code_red) -%>" class="colorpicker-red"></div>
|
27
27
|
<div id="<%= speech.tag_id(:code_green) -%>" class="colorpicker-green"></div>
|
28
28
|
<div id="<%= speech.tag_id(:code_blue) -%>" class="colorpicker-blue"></div>
|
@@ -40,16 +40,16 @@
|
|
40
40
|
|
41
41
|
<div class="field">
|
42
42
|
<%= f.label :quotes %>
|
43
|
-
<%= f.text_field :quotes,
|
43
|
+
<%= f.text_field :quotes, speech.field_tag_attributes(:quotes, no_attr, :size => 5) %>
|
44
44
|
</div>
|
45
45
|
|
46
|
-
<%= f.hidden_field :x,
|
47
|
-
<%= f.hidden_field :y,
|
48
|
-
<%= f.hidden_field :width,
|
49
|
-
<%= f.hidden_field :height,
|
50
|
-
<%= f.hidden_field :settings,
|
51
|
-
<%= f.hidden_field :speech_balloon_id,
|
46
|
+
<%= f.hidden_field :x, speech.field_tag_attributes(:x, no_attr) %>
|
47
|
+
<%= f.hidden_field :y, speech.field_tag_attributes(:y, no_attr) %>
|
48
|
+
<%= f.hidden_field :width, speech.field_tag_attributes(:width, no_attr) %>
|
49
|
+
<%= f.hidden_field :height, speech.field_tag_attributes(:height, no_attr) %>
|
50
|
+
<%= f.hidden_field :settings, speech.field_tag_attributes(:settings, no_attr) %>
|
51
|
+
<%= f.hidden_field :speech_balloon_id, speech.field_tag_attributes(:speech_balloon_id, no_attr) %>
|
52
52
|
|
53
53
|
<% unless speech.new_record? %>
|
54
|
-
<%= f.hidden_field :id,
|
54
|
+
<%= f.hidden_field :id, speech.field_tag_attributes(:id, no_attr) %>
|
55
55
|
<% end %>
|
data/lib/plain_speech_balloon.rb
CHANGED
@@ -26,7 +26,7 @@ module PlainSpeechBalloon
|
|
26
26
|
module BalloonModule
|
27
27
|
|
28
28
|
def parsed_settings
|
29
|
-
@parsed_settings ||=
|
29
|
+
@parsed_settings ||= get_parent.speech_balloon_template.parsed_settings
|
30
30
|
end
|
31
31
|
|
32
32
|
def supply_default
|
@@ -53,7 +53,7 @@ module PlainSpeechBalloon
|
|
53
53
|
end
|
54
54
|
|
55
55
|
def classname
|
56
|
-
|
56
|
+
get_parent.speech_balloon_template.classname
|
57
57
|
end
|
58
58
|
|
59
59
|
end
|
@@ -61,7 +61,7 @@ module PlainSpeechBalloon
|
|
61
61
|
module SpeechModule
|
62
62
|
|
63
63
|
def parsed_settings
|
64
|
-
@parsed_settings ||=
|
64
|
+
@parsed_settings ||= get_parent.speech_balloon_template.parsed_settings
|
65
65
|
end
|
66
66
|
|
67
67
|
def supply_default
|
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.36
|
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-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|