Commit a8df9e37aa5eaee1d1b5195d1de945c298a7e43e

Authored by Victor Costa
1 parent 66dfdfb0

Remove unused view

Showing 1 changed file with 0 additions and 79 deletions   Show diff stats
views/cms/edit.html.erb
... ... @@ -1,79 +0,0 @@
1   -<%= error_messages_for 'article' %>
2   -
3   -<% if @article.archived? %>
4   - <%= render :partial => 'archived_warning', :locals => {:article => @article} %>
5   -<% end %>
6   -<div class='<%= (@article.display_media_panel? ? 'with_media_panel' : 'no_media_panel') %>'>
7   -<%= labelled_form_for 'article', :html => { :multipart => true, :class => @type } do |f| %>
8   -
9   - <%= hidden_field_tag("type", @type) if @type %>
10   -
11   - <%= hidden_field_tag('back_to', @back_to) %>
12   -
13   - <%= hidden_field_tag('success_back_to', @success_back_to) %>
14   -
15   -
16   - <%= render :partial => partial_for_class(@article.class), :locals => { :f => f } %>
17   -
18   - <% if environment.is_portal_community?(profile) %>
19   - <div>
20   - <%= check_box(:article, :highlighted) %>
21   - <label for="article_highlighted"><%= _('Highlight this article')%></label>
22   - </div>
23   - <% end %>
24   -
25   - <% button_bar do %>
26   - <%= submit_button :save, _('Save') %>
27   - <%= submit_button :save, _('Save and continue'), :name => "continue" %>
28   - <% end %>
29   -
30   - <% unless @article.kind_of?(ProposalsDiscussionPlugin::Response) %>
31   - <div style='float: right'>
32   - <%= modal_button :help, _('Why categorize?'), :action => 'why_categorize' %>
33   - </div>
34   -
35   - <%= select_categories(:article, _('Categorize your article')) %>
36   -
37   - <br />
38   -
39   - <%= f.text_field('tag_list', :size => 64) %>
40   - <%= content_tag( 'small', _('Separate tags with commas') ) %>
41   -
42   - <script>
43   - jQuery('#article_tag_list').inputosaurus({
44   - autoCompleteSource: <%= "'/myprofile/#{profile.identifier}/cms/search_tags'," %>
45   - activateFinalResult : true
46   - })
47   - </script>
48   -
49   - <div id='edit-article-options'>
50   - <%= options_for_article(@article, @tokenized_children) %>
51   - </div>
52   -
53   - <% button_bar do %>
54   - <%= submit_button :save, _('Save') %>
55   -
56   - <% if @back_to %>
57   - <%= button :cancel, _('Cancel'), @back_to %>
58   - <% elsif @parent_id || @article.parent %>
59   - <%= button :cancel, _('Cancel'), :action => 'view', :id => @parent_id || @article.parent %>
60   - <% else %>
61   - <%= button :cancel, _('Cancel'), :action => 'index' %>
62   - <% end %>
63   -
64   - <% unless @article.new_record? %>
65   - <%= button :delete, _('Delete'), {:controller => :cms, :action => :destroy, :id => @article},
66   - :method => :post, :confirm => delete_article_message(@article) %>
67   - <% end %>
68   - <% end %>
69   - <% end %>
70   -<% end %>
71   -</div>
72   -
73   -<% if @article.display_media_panel? %>
74   - <%= render :partial => 'text_editor_sidebar' %>
75   -<% end %>
76   -
77   -<br style='clear: both'/>
78   -
79   -<%= javascript_include_tag "article.js" %>