plain_speech_balloon 0.0.31 → 0.0.32

Sign up to get free protection for your applications and to get access to all the features.
@@ -34,5 +34,7 @@
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="<%= elm.tag_panel_id -%>" element_type="<%= elm.tag_element_type -%>"></div>
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,3 +1,3 @@
1
1
  module PlainSpeechBalloon
2
- VERSION = "0.0.31"
2
+ VERSION = "0.0.32"
3
3
  end
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.31
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-13 00:00:00.000000000 Z
12
+ date: 2013-08-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails