<h1><%= t '.title' -%></h1>
+<% if @operators.author -%>
<h2><%= link_to h(@operators.author.name), main_app.author_path(@operators.author) -%></h2>
<h3><%= t('.updated_scroll') -%></h3>
-<table>
- <tr height="100px">
- <td width="200px" align="center" valign="middle">
- <%= link_to t_m('Scroll'), '/home/scrolls' %>
- <%= link_to t('*'), new_scroll_path %>
- </td>
- <td width="200px" align="center" valign="middle">
- <%= link_to t_m('ScrollPanel'), '/home/scroll_panels' %>
- <%= link_to t('*'), new_scroll_panel_path %>
- </td>
- <td width="200px" align="center" valign="middle">
- <%= link_to t_m('Comic'), '/home/comics' %>
- <%= link_to t('*'), new_comic_path %>
- </td>
- <td width="200px" align="center" valign="middle">
- <%= link_to t_m('Story'), '/home/stories' %>
- <%= link_to t('*'), new_story_path %>
- </td>
- </tr>
- <tr height="100px">
- <td width="200px" align="center" valign="middle">
- <%= link_to t_m('StorySheet'), '/home/story_sheets' %>
- <%= link_to t('*'), new_story_sheet_path %>
- </td>
- <td width="200px" align="center" valign="middle">
- <%= link_to t_m('Sheet'), '/home/sheets' %>
- <%= link_to t('*'), new_sheet_path %>
- </td>
- <td width="200px" align="center" valign="middle">
- <%= link_to t_m('SheetPanel'), '/home/sheet_panels' %>
- <%= link_to t('*'), new_sheet_panel_path %>
- </td>
- <td width="200px" align="center" valign="middle">
- <%= link_to t_m('Panel'), '/home/panels' %>
- <%= link_to t('*'), new_panel_path %>
- </td>
- </tr>
-</table>
-<h3><%= t('.used_element') -%></h3>
-<table>
- <tr height="100px">
- <td width="200px" align="center" valign="middle">
- <%= link_to t_m('PanelPicture'), '/home/panel_pictures' %>
- </td>
- <td width="200px" align="center" valign="middle">
- <%= link_to t_m('SpeechBalloon'), '/home/speech_balloons' %>
- </td>
- <td width="200px" align="center" valign="middle">
- <%= link_to t_m('GroundPicture'), '/home/ground_pictures' %>
- </td>
- <td width="200px" align="center" valign="middle">
- <%= link_to t_m('GroundColor'), '/home/ground_colors' %>
- <%= link_to t('*'), new_ground_color_path %>
- </td>
- <td width="200px" align="center" valign="middle">
- </td>
- </tr>
-</table>
+ <table>
+ <tr height="100px">
+ <td width="200px" align="center" valign="middle">
+ <%= link_to t_m('Scroll'), '/home/scrolls' %>
+ <%= link_to t('*'), new_scroll_path %>
+ </td>
+ <td width="200px" align="center" valign="middle">
+ <%= link_to t_m('ScrollPanel'), '/home/scroll_panels' %>
+ <%= link_to t('*'), new_scroll_panel_path %>
+ </td>
+ <td width="200px" align="center" valign="middle">
+ <%= link_to t_m('Comic'), '/home/comics' %>
+ <%= link_to t('*'), new_comic_path %>
+ </td>
+ <td width="200px" align="center" valign="middle">
+ <%= link_to t_m('Story'), '/home/stories' %>
+ <%= link_to t('*'), new_story_path %>
+ </td>
+ </tr>
+ <tr height="100px">
+ <td width="200px" align="center" valign="middle">
+ <%= link_to t_m('StorySheet'), '/home/story_sheets' %>
+ <%= link_to t('*'), new_story_sheet_path %>
+ </td>
+ <td width="200px" align="center" valign="middle">
+ <%= link_to t_m('Sheet'), '/home/sheets' %>
+ <%= link_to t('*'), new_sheet_path %>
+ </td>
+ <td width="200px" align="center" valign="middle">
+ <%= link_to t_m('SheetPanel'), '/home/sheet_panels' %>
+ <%= link_to t('*'), new_sheet_panel_path %>
+ </td>
+ <td width="200px" align="center" valign="middle">
+ <%= link_to t_m('Panel'), '/home/panels' %>
+ <%= link_to t('*'), new_panel_path %>
+ </td>
+ </tr>
+ </table>
+ <h3><%= t('.used_element') -%></h3>
+ <table>
+ <tr height="100px">
+ <td width="200px" align="center" valign="middle">
+ <%= link_to t_m('PanelPicture'), '/home/panel_pictures' %>
+ </td>
+ <td width="200px" align="center" valign="middle">
+ <%= link_to t_m('SpeechBalloon'), '/home/speech_balloons' %>
+ </td>
+ <td width="200px" align="center" valign="middle">
+ <%= link_to t_m('GroundPicture'), '/home/ground_pictures' %>
+ </td>
+ <td width="200px" align="center" valign="middle">
+ <%= link_to t_m('GroundColor'), '/home/ground_colors' %>
+ <%= link_to t('*'), new_ground_color_path %>
+ </td>
+ <td width="200px" align="center" valign="middle">
+ </td>
+ </tr>
+ </table>
+<% else -%>
+ <h2><%= t('.author') -%></h2>
+ <h3><%= link_to t('.not_author'), main_app.new_author_path -%></h2>
+<% end -%>
<% if @operators.artist -%>
<h2><%= link_to h(@operators.artist.name), main_app.artist_path(@operators.artist) -%></h2>
<h3><%= t('.updated_picture') -%></h3>
</table>
<% else -%>
<h2><%= t('.artist') -%></h2>
- <h3><%= t('.updated_picture') -%></h3>
<h3><%= link_to t('.not_artist'), main_app.new_artist_path -%></h2>
<% end -%>
def init_fields
@manifest.each_field do |field_name, field_manifest|
if boost_name = @item.class.find_boost_name(field_name)
+ p [field_name]
extend_form_name = @item.boosters[boost_name].model_name
- extend_form_manifest = LocalManifest.manifest.forms[extend_form_name]
extend_item = @item.boosters[boost_name].extend_item
@fields[field_name] = ExtendForm.new self, extend_form_name, extend_item, @mounted, @operators
else
def init_fields
@manifest.each_field do |field_name, field_manifest|
- if boost_name = @item.class.find_boost_name(field_name)
- extend_form_name = @item.boosters[boost_name].model_name
- extend_form_manifest = LocalManifest.manifest.forms[extend_form_name]
- @fields[field_name] = ExtendField.new self, field_name, field_manifest, @item.boosters[n].extend_item
- else
- # @fields[field_name] = Field.new self, field_name, field_manifest
- end
+ @fields[field_name] = ExtendField.new self, field_name, field_manifest
end
end
"extend_form"
end
+ def template_option
+ {:form=> self}
+ end
+
end
end