1 class Pettanr.License extends Peta.SystemResource
\r
14 license_group: () ->
\r
15 r = new Pettanr.LicenseGroup({id: @get('license_group_id')})
\r
17 system_picture: () ->
\r
18 new Pettanr.SystemPicture({id: @get('system_picture_id')})
\r
20 symbol_option: (cb) ->
\r
21 i = @system_picture()
\r
22 i.fetch({cache: true}).done ->
\r
23 cb(i.tmb_opt_img_tag())
\r
25 caption_with_group: () ->
\r
26 new Pettanr.License.Caption({license: this, license_group: @license_group()})
\r
32 class Pettanr.License.Caption extends Backbone.View
\r
34 initialize: (options) ->
\r
35 @license = options.license
\r
36 @license_group = options.license_group
\r
40 @license_group.fetch({cache: true}).done ->
\r
41 _this.$el.html(_this.license_group.get('caption') + '/' + _this.license.get('caption'))
\r