class LicenseGroupsController < ApplicationController
- before_filter :authenticate_admin!, :only => []
-
- def self.model
- LicenseGroup
+ if Manifest.manifest.magic_numbers['run_mode'] == 0
+ else
+ before_filter :authenticate_reader, :only => [
+ :by_resource_picture
+ ]
end
+ before_filter :authenticate_admin, :only => [:new, :create, :edit, :update, :destroy]
def index
filer_list
end
+ def by_resource_picture
+ filer_list
+ end
+
def show_html_format format
format.html {
@license_group = @item
end
end
- def count
- list_count
+ def new
+ form_new
+ end
+
+ def edit
+ form_edit
+ end
+
+ def create
+ set_model
+ @item = @my_model_class.new
+ @item.supply_default
+ @my_model_class.fold_extend_settings params[@my_model_class.item_name]
+ @item.attributes = params[@my_model_class.item_name]
+ @item.overwrite
+ render_create
+ end
+
+ def update
+ set_edit
+ @my_model_class.fold_extend_settings params[@my_model_class.item_name]
+ @item.attributes = params[@my_model_class.item_name]
+ @item.overwrite
+ render_update
end
end