Sha256: cb4f16d7f1ac942fb981dea01585360a0d88021b681902323bd23965802fea19

Contents?: true

Size: 397 Bytes

Versions: 26

Compression:

Stored size: 397 Bytes

Contents

class App.Views.Admin.Comments.Form extends App.Views.Base
  constructor: (opts = {}) ->
    super opts

  render: (opts = {}) ->
    form = new App.UI.Form
      for: new App.Models.Article.Comment id: opts.commentId, resource: 'admin'
      id: "edit_comment_#{opts.commentId}"
      initObj: true
    form.render()
    # only for testing purpose
    App.Env.test = commentFormObj: form.getObj()

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
loco-rails-3.0.3 test/dummy/app/assets/javascripts/views/admin/comments/form.coffee
loco-rails-2.5.3 test/dummy/app/assets/javascripts/views/admin/comments/form.coffee
loco-rails-2.5.2 test/dummy/app/assets/javascripts/views/admin/comments/form.coffee
loco-rails-3.0.2 test/dummy/app/assets/javascripts/views/admin/comments/form.coffee
loco-rails-3.0.1 test/dummy/app/assets/javascripts/views/admin/comments/form.coffee
loco-rails-2.5.1 test/dummy/app/assets/javascripts/views/admin/comments/form.coffee
loco-rails-2.5.0 test/dummy/app/assets/javascripts/views/admin/comments/form.coffee
loco-rails-2.4.0 test/dummy/app/assets/javascripts/views/admin/comments/form.coffee
loco-rails-2.3.0 test/dummy/app/assets/javascripts/views/admin/comments/form.coffee
loco-rails-3.0.0 test/dummy/app/assets/javascripts/views/admin/comments/form.coffee
loco-rails-2.2.2 test/dummy/app/assets/javascripts/views/admin/comments/form.coffee
loco-rails-2.2.1 test/dummy/app/assets/javascripts/views/admin/comments/form.coffee
loco-rails-2.2.0 test/dummy/app/assets/javascripts/views/admin/comments/form.coffee
loco-rails-2.1.0 test/dummy/app/assets/javascripts/views/admin/comments/form.coffee
loco-rails-2.0.0 test/dummy/app/assets/javascripts/views/admin/comments/form.coffee
loco-rails-1.5.2 test/dummy/app/assets/javascripts/views/admin/comments/form.coffee
loco-rails-1.5.1 test/dummy/app/assets/javascripts/views/admin/comments/form.coffee
loco-rails-1.5.0 test/dummy/app/assets/javascripts/views/admin/comments/form.coffee
loco-rails-1.4.0 test/dummy/app/assets/javascripts/views/admin/comments/form.coffee
loco-rails-1.3.3 test/dummy/app/assets/javascripts/views/admin/comments/form.coffee