Sha256: 415f9247b06dd53efd81214a04b238d121346a1194106c38b3c82b5e78020771
Contents?: true
Size: 658 Bytes
Versions: 7
Compression:
Stored size: 658 Bytes
Contents
- include_stylesheet 'admin/forum' - fields_for :page do |f| %p.commentability %label = t('forum_extension.comments').titlecase = f.check_box :commentable, {:onclick => "if (this.checked) { $('page_comments_closed').enable(); $('comments_closed_label').removeClassName('disabled'); } else { $('page_comments_closed').disable(); $('comments_closed_label').addClassName('disabled'); }"} = f.label :commentable, nil, :class => 'checkbox' = f.check_box :comments_closed, :disabled => !@page.commentable? = f.label :comments_closed, nil, :id => 'comments_closed_label', :class => !@page.commentable? ? 'checkbox disabled' : 'checkbox'
Version data entries
7 entries across 7 versions & 1 rubygems