square_speech_balloon 0.0.31 → 0.0.32
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/square_speech_balloon/speech_balloons/_form.html.erb +3 -1
- data/app/views/square_speech_balloon/speeches/_form.html.erb +30 -0
- data/db/square_speech_balloon_templates.json +4 -4
- data/db/work/square_speech_balloon_templates.json +1 -1
- data/lib/square_speech_balloon/version.rb +1 -1
- metadata +2 -2
@@ -34,5 +34,7 @@
|
|
34
34
|
<div class="actions">
|
35
35
|
<%= f.submit t('speech_balloons.submit'), :class => "submit" %>
|
36
36
|
</div>
|
37
|
-
|
37
|
+
<% if no_attr > 0 %>
|
38
|
+
<div class="submit-new-form" panel_id="<%= elm.tag_panel_id -%>" element_type="<%= elm.tag_element_type -%>"></div>
|
39
|
+
<% end %>
|
38
40
|
<% end %>
|
@@ -8,6 +8,36 @@
|
|
8
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
|
+
<div class="field">
|
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}}, {:id => speech.field_tag_id(:font_size), :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 => :font_size, :new_index => speech.tag_new_index, :no_attr => no_attr} %>
|
14
|
+
</div>
|
15
|
+
|
16
|
+
<div class="field">
|
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}}, {:id => speech.field_tag_id(:text_align), :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 => :text_align, :new_index => speech.tag_new_index, :no_attr => no_attr} %>
|
19
|
+
</div>
|
20
|
+
|
21
|
+
<div class="field">
|
22
|
+
<%= f.label :fore_color %>
|
23
|
+
<%= f.text_field :fore_color, :size => 8, :id => speech.tag_id(:fore_color), :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 => :fore_color, :new_index => speech.tag_new_index, :no_attr => no_attr %>
|
24
|
+
<div class="colorpicker-wrap">
|
25
|
+
<div class="colorpicker" style="float: left;" id="<%= speech.tag_id(:code_picker) -%>" 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 -%>">
|
26
|
+
<div id="<%= speech.tag_id(:code_red) -%>" class="colorpicker-red"></div>
|
27
|
+
<div id="<%= speech.tag_id(:code_green) -%>" class="colorpicker-green"></div>
|
28
|
+
<div id="<%= speech.tag_id(:code_blue) -%>" class="colorpicker-blue"></div>
|
29
|
+
</div>
|
30
|
+
<div style="float: left;">
|
31
|
+
<div id="<%= speech.tag_id(:code_swatch) -%>" class="ui-widget-content ui-corner-all code_swatch"></div>
|
32
|
+
</div>
|
33
|
+
<div style="float: left;">
|
34
|
+
<div id="<%= speech.tag_id(:code_hex) -%>"></div>
|
35
|
+
<div id="<%= speech.tag_id(:code_rgb) -%>"></div>
|
36
|
+
</div>
|
37
|
+
<div style="clear: both;"></div>
|
38
|
+
</div>
|
39
|
+
</div>
|
40
|
+
|
11
41
|
<div class="field">
|
12
42
|
<%= f.label :quotes %>
|
13
43
|
<%= f.text_field :quotes, :size => 5, :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 %>
|
@@ -1 +1 @@
|
|
1
|
-
{"square@pettan.com":{"classname":"SquareSpeechBalloon","caption":"長方形","settings":{"speech_balloon":{"quotes":"「 」 『 』","default_width":150,"default_height":150},"all":{"balloon":{"system_picture_id":{"text":"iVBORw0KGgoAAAANSUhEUgAAAJYAAACWCAYAAAA8AXHiAAAACXBIWXMAABcSAAAXEgFnn9JSAAABqUlEQVR4nO3UMQrDUAwFQSn4/lf+rnKCZDGYmUqliuXtzJyBP/s8/QDvdH2PcwwXv9vdmbFYRIRFQlgkhEVCWCSERUJYJIRFQlgkhEVCWCSERUJYJIRFQlgkhEVCWCSERUJYJIRFQlgkhEVCWCSERUJYJIRFQlgkhEVCWCSERUJYJIRFQlgkhEVCWCSERUJYJIRFQlgkhEVCWCSERUJYJIRFQlgkhEVCWCSERUJYJIRFQlgkhEVCWCSERUJYJIRFQlgkhEVCWCSERUJYJIRFQlgkhEVCWCSERUJYJIRFQlgkhEVCWCSERUJYJIRFQlgkhEVCWCSERUJYJIRFQlgkhEVCWCSERUJYJIRFQlgkhEVCWCSERUJYJIRFQlgkhEVCWCSERUJYJIRFQlgkhEVCWCSERUJYJIRFQlgkhEVCWCSERUJYJIRFQlgkhEVCWCSERUJYJIRFQlgkhEVCWCSERUJYJIRFQlgkhEVCWCSERUJYJIRFQlgkhEVCWCSERUJYJIRFQlgkhEVCWCSERUJYJIRFQlgkhEVCWCSERUJYJHZmztNP8D4Wi8QNaTAGK2LVzWEAAAAASUVORK5CYII="}},"speech":{"x_rate":
|
1
|
+
{"square@pettan.com":{"classname":"SquareSpeechBalloon","caption":"長方形","settings":{"speech_balloon":{"quotes":"「 」 『 』","default_width":150,"default_height":150},"all":{"balloon":{"system_picture_id":{"text":"iVBORw0KGgoAAAAN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OxgggAiCCt45H7QR4DhglxvIGbgHQd/TMo6MBtgM8wTOdoUsAr6u7An1jPAFkB/zq6peysBq8s7ysThGtHPYGj9o5FAGQK+8dP8UIzQbyfS4BLJYUVSeg8wa0HLasjLWuR9vtA24BDiKzjoE2b8iGSE8Iax2PaKY8Bbwj9LSS0zo8njlHQfs2uLLk7SHEx9FjRzDcYJgPI9tZ4ShIAdgE2EgB2ATY2F4AKfnf4b2RArAJsPEB2DWnod9f7TUAAAAASUVORK5CYII="}}}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: square_speech_balloon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.32
|
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-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|