Commit b0461340dec1921f99f28dd42e462291bc705c31

Authored by Rodrigo Souto
Committed by Antonio Terceiro
1 parent ca2289a8

Disabling temporarily the publish event feature

* Using the type to filter Events while the feature isn't ready.

(ActionItem1479)
Showing 1 changed file with 17 additions and 9 deletions   Show diff stats
app/views/cms/publish.rhtml
@@ -14,16 +14,24 @@ @@ -14,16 +14,24 @@
14 </div> 14 </div>
15 <% end %> 15 <% end %>
16 16
17 -<% form_tag do%>  
18 - <%= hidden_field_tag :back_to, @back_to %>  
19 - <% @groups.each do |group| %>  
20 - <%= labelled_check_box group.name, 'marked_groups[][group_id]', group.id, @marked_groups.include?(group) %><br />  
21 - <%= labelled_text_field _('Title') + ': ', 'marked_groups[][name]', @article.name, :style => 'width: 100%' %>  
22 - <hr />  
23 - <% end %>  
24 17
25 - <% button_bar do %>  
26 - <%= submit_button 'spread', _('Publish') %> 18 +<!-- Workaroud while the publish feature isn't ready for Events -->
  19 +<% if @article.type != "Event" %>
  20 + <% form_tag do%>
  21 + <%= hidden_field_tag :back_to, @back_to %>
  22 + <% @groups.each do |group| %>
  23 + <%= labelled_check_box group.name, 'marked_groups[][group_id]', group.id, @marked_groups.include?(group) %><br />
  24 + <%= labelled_text_field _('Title') + ': ', 'marked_groups[][name]', @article.name, :style => 'width: 100%' %>
  25 + <hr />
  26 + <% end %>
  27 +
  28 + <% button_bar do %>
  29 + <%= submit_button 'spread', _('Publish') %>
  30 + <% end %>
27 <% end %> 31 <% end %>
  32 +<% else %>
  33 + <div class='atention'>
  34 + <%= _("This option is temporarily disabled.") %>
  35 + </div>
28 <% end %> 36 <% end %>
29 37