Add panel namespace

This commit is contained in:
Wen-Tien Chang committed 2010-01-11 17:53:44 +08:00
1 parent 314f6d5219
commit cd21cadfe7
8 files changed
+61 -79

No files matched your search

+1 -1
View File
@@ -23,7 +23,7 @@
<li><%= link_to t(:page, :scope => :admin), admin_pages_path %></li>
<li><%= link_to t(:snippet, :scope => :admin), admin_snippets_path %></li>
<li><%= link_to t(:layout, :scope => :admin), admin_layouts_path %></li>
<li><%= link_to t(:announcement, :scope => :admin), admin_announcements_path( :entry_name => 'news' ) %></li>
<li><%= link_to t(:announcement, :scope => :admin), panel_announcements_path( :entry_name => 'news' ) %></li>
</ul>
</div>
@@ -1,6 +1,6 @@
<h1>Editing announcement</h1>
<% form_for @announcement, :url => admin_announcement_path(@announcement) do |f| %>
<% form_for @announcement, :url => panel_announcement_path(@announcement) do |f| %>
<%= f.error_messages %>
<%= render :partial => "form", :locals => { :f => f } %>
@@ -11,4 +11,4 @@
<% end %>
<%= link_to 'Show', @announcement %> |
<%= link_to 'Back', admin_announcements_path %>
<%= link_to 'Back', panel_announcements_path %>
@@ -10,12 +10,12 @@
<tr>
<td><%=h announcement.title %></td>
<td><%= link_to 'Show', announcement_path(announcement) %> |
<%= link_to 'Edit', edit_admin_announcement_path(announcement) %> |
<%= link_to 'Destroy', admin_announcement_path(announcement), :confirm => 'Are you sure?', :method => :delete %></td>
<%= link_to 'Edit', edit_panel_announcement_path(announcement) %> |
<%= link_to 'Destroy', panel_announcement_path(announcement), :confirm => 'Are you sure?', :method => :delete %></td>
</tr>
<% end %>
</table>
<br />
<%= link_to 'New announcement', new_admin_announcement_path( :entry_name => params[:entry_name] ) %>
<%= link_to 'New announcement', new_panel_announcement_path( :entry_name => params[:entry_name] ) %>
@@ -1,6 +1,6 @@
<h1>New announcement</h1>
<% form_for @announcement, :url => admin_announcements_path do |f| %>
<% form_for @announcement, :url => panel_announcements_path do |f| %>
<%= f.error_messages %>
<%= render :partial => "form", :locals => { :f => f } %>
@@ -10,4 +10,4 @@
</p>
<% end %>
<%= link_to 'Back', admin_announcements_path %>
<%= link_to 'Back', panel_announcements_path %>