class OriginalPictureLicenseGroupsController < ApplicationController
- layout 'test' if MagicNumber['test_layout']
before_filter :authenticate_user, :only => [:new, :create]
before_filter :authenticate_artist, :only => [:new, :create]
@original_picture = OriginalPicture.show params[:original_picture_id], @operators
@original_picture_license_group = OriginalPictureLicenseGroup.new params[:original_picture_license_group]
@license_group = LicenseGroup.show @original_picture_license_group.license_group_id, @operators
- @ctl = @license_group.engine_name
-
+ @ctl = @license_group.template_path_name
+ @attr = @license_group.template_module.new_attribute {}
+ @attr.supply_default @operators
+
respond_to do |format|
if @original_picture_license_group.valid?
format.html { render :template => "#{@ctl}/attributes/new" }