circle_speech_balloon 0.0.26 → 0.0.27

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,38 +1,38 @@
1
- <%= form_for(speech_balloon) do |f| %>
2
- <%= render 'system/error_explanation', :obj => speech_balloon %>
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 %>
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 => 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 %>
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 speech_balloon.speech_balloon_template.engine_name + '/speeches/form', :f => sf, :speech => speech_balloon.get_speech, :no_attr => no_attr %>
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 speech_balloon.speech_balloon_template.engine_name + '/balloons/form', :f => bf, :balloon => speech_balloon.get_balloon, :no_attr => no_attr %>
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 => 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 %>
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 => 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 %>
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 => 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
- <% 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.tag_new_index, :no_attr => no_attr %>
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="<%= speech_balloon.tag_panel_id -%>" element_type="<%= speech_balloon.tag_element_type -%>"></div>
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 speech_balloon.speech.quotes.blank? -%>
1
+ <% if elm.speech.quotes.blank? -%>
2
2
  <% else -%>
3
3
  <style>
4
4
  <!--
5
- #<%= speech_balloon.speech.tag_id('scenario') -%>:before {
6
- content:"<%= speech_balloon.speech.arrayed_quotes[0] -%>";
5
+ #<%= elm.speech.tag_id('scenario') -%>:before {
6
+ content:"<%= elm.speech.arrayed_quotes[0] -%>";
7
7
  }
8
- #<%= speech_balloon.speech.tag_id('scenario') -%>:after {
9
- content:"<%= speech_balloon.speech.arrayed_quotes[1] -%>";
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="<%= speech_balloon.balloon.tag_id('scenario') -%>" class="circle_speech_balloon-balloon-scenario">
15
- <%= h(speech_balloon.caption) %>
14
+ <div id="<%= elm.balloon.tag_id('scenario') -%>" class="circle_speech_balloon-balloon-scenario">
15
+ <%= h(elm.caption) %>
16
16
  </div>
17
- <div id="<%= speech_balloon.speech.tag_id('scenario') -%>" class="circle_speech_balloon-speech-scenario">
18
- <%= h(speech_balloon.speech.content) %>
17
+ <div id="<%= elm.speech.tag_id('scenario') -%>" class="circle_speech_balloon-speech-scenario">
18
+ <%= h(elm.speech.content) %>
19
19
  </div>
@@ -1,3 +1,3 @@
1
1
  module CircleSpeechBalloon
2
- VERSION = "0.0.26"
2
+ VERSION = "0.0.27"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: circle_speech_balloon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.26
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-05 00:00:00.000000000 Z
12
+ date: 2013-08-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails