X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=app%2Fviews%2Fresource_pictures%2F_form.html.erb;h=17a68160ab4737378e68788997c7f31a1cfc0e88;hb=467daaf74bbf62a7ad43d7af7fd6326bfacd9010;hp=b8ef270183aa3032f95e2cd813932bdc6b70be26;hpb=531ec75ef74c753607bbf08d1661883b49f68617;p=pettanr%2Fpettanr.git diff --git a/app/views/resource_pictures/_form.html.erb b/app/views/resource_pictures/_form.html.erb index b8ef2701..17a68160 100644 --- a/app/views/resource_pictures/_form.html.erb +++ b/app/views/resource_pictures/_form.html.erb @@ -1,28 +1,19 @@ -<%= form_for(@resource_picture, :url => '/resource_pictures', :method => :post) do |f| %> + +<%= form_for(@item, :url => '/resource_pictures', :method => :post) do |f| %> <%= hidden_field_tag :original_picture_id, @original_picture.id %> + <%= hidden_field_tag :json, @item.to_json %> - <%= hidden_field_tag 'original_picture_license_group[original_picture_id]', @original_picture_license_group.original_picture_id %> - <%= hidden_field_tag 'original_picture_license_group[license_group_id]', @original_picture_license_group.license_group_id %> - - <%= f.hidden_field :original_picture_id %> - <%= f.hidden_field :license_id %> - <%= f.hidden_field :artist_name %> - <%= f.hidden_field :classname %> - <%= f.hidden_field :credit %> - <%= f.hidden_field :settings %> -
- <%= link_to h(@license_group.caption), main_app.license_group_path(@license_group) %> - <%= link_to h(@license.caption), main_app.license_path(@license) %> +

<%= t('credit.full') -%>

+ <%= render @item.full_credit_template, :picture => @item %>
- artist name:<%= @resource_picture.artist_name %> +

<%= t('credit.digest') -%>

+ <%= render @item.credit_template, :picture => @item %>
- <%= render :partial => @resource_picture.classname.tableize + '/attributes/confirm' %> -
- <%= f.submit %> + <%= f.submit t 'resource_pictures.new.publish' %>
<% end %>