Commit 694bd7e5e5613a1eab2fdf31ad10f9057310fe2d
1 parent
7b535d93
Exists in
master
and in
28 other branches
ActionItem862: not allowing enterprise to edit titles
Showing
1 changed file
with
7 additions
and
1 deletions
Show diff stats
app/views/cms/_tiny_mce_article.rhtml
@@ -2,7 +2,13 @@ | @@ -2,7 +2,13 @@ | ||
2 | 2 | ||
3 | <%= render :file => 'shared/tiny_mce' %> | 3 | <%= render :file => 'shared/tiny_mce' %> |
4 | 4 | ||
5 | -<%= required labelled_form_field(_('Title'), text_field(:article, 'name', :size => '64')) %> | 5 | +<% if profile.enterprise? && environment.enabled?('disable_cms') && !@article.name.blank? %> |
6 | + <div> | ||
7 | + <%= _('Title') %>: <%= @article.name %> | ||
8 | + </div> | ||
9 | +<% else %> | ||
10 | + <%= required labelled_form_field(_('Title'), text_field(:article, 'name', :size => '64')) %> | ||
11 | +<% end %> | ||
6 | 12 | ||
7 | <%= labelled_form_field(_('Text'), text_area(:article, 'body', :cols => 40, :style => 'width:99%')) %> | 13 | <%= labelled_form_field(_('Text'), text_area(:article, 'body', :cols => 40, :style => 'width:99%')) %> |
8 | 14 |