class Pettanr.LicensesController extends Pettanr.AppController index: () -> @redraw_title(@params) @filer_list() by_icense_group: () -> @redraw_title(@params) @filer_list() by_system_picture: () -> @redraw_title(@params) @filer_list() show_html: () -> _this = this @item.fetch({cache: true}).done -> _this.redraw_title(_this.params, _this.item.get('caption')) view = new Pettanr.Views.License.Show({ el: "#pettanr", item: @item, operators: @operators }) view.render() show: () -> @set_show() switch @params['format'] when 'prof' @show_prof() when 'html' @show_html() count: () -> new: () -> @redraw_title(@params) @form_new() edit: () -> @redraw_title(@params) @form_edit() create: () -> update: () -> destroy: () ->