Skip to content
This repository has been archived by the owner on Aug 15, 2018. It is now read-only.

Commit

Permalink
fixed a few stupid bugs in testimonials plugin, made the admin menu m…
Browse files Browse the repository at this point in the history
…ore neutral
  • Loading branch information
Josh Adams committed Nov 9, 2008
1 parent 76c7b08 commit 836e185
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 13 deletions.
2 changes: 1 addition & 1 deletion app/views/admin/pages/edit.html.erb
Expand Up @@ -10,7 +10,7 @@
:complete => 'refresh_visibility()'),
:html => { 'name' => 'page_form' } do -%>
<%= render :partial => 'form' %>
<%= submit_tag 'Update', :class => 'submit' -%>
<%= submit_tag 'Update' %>
<% end -%>

<h2>Plugins on this page</h2>
Expand Down
5 changes: 4 additions & 1 deletion app/views/layouts/admin.html.erb
Expand Up @@ -31,8 +31,8 @@
<!--[if lt IE 7.]><%= javascript_include_tag 'pngfix.js' %><![endif]-->
</head>
<body>
<%= display_site_title %>
<%= display_standard_flashes -%>
<%= display_site_title %>
<div id='wrapper'>
<div id='toolbar'>
<%= render :partial => "/admin/tabs" %>
Expand All @@ -46,6 +46,9 @@
</div>
<div id="ft">
[ Currently Editing: <b><%= current_database %></b> ]
<div class='credits'>
Powered by <%= link_to "Ansuz CMS", "http://www.ansuzcms.com" %>
</div>
</div>
</div>
<div id='sidebar'>
Expand Down
9 changes: 5 additions & 4 deletions public/stylesheets/admin.css
Expand Up @@ -89,17 +89,18 @@ h1{
#hd ul li a, #hd ul li span {
text-decoration: none;
padding: 2px 10px;
background:#eee;
background:#555;
color: white;
}

#hd ul li span {
background:#0084ff;
color: #eee;
background:#555;
color: white;
}

#hd ul li a:hover {
padding: 2px 10px;
background:#bbb;
background:#333;
}

#hd ul li {
Expand Down
@@ -1,2 +1,5 @@
Content: <%= f.text_area(:content) -%><br />
Attributed To: <%= f.text_field(:attributed_to) -%><br />
<table class='form-table'>
<%= form_row "Content", f.text_area(:content) -%>
<%= form_row "Attributed To", f.text_field(:attributed_to) -%>
</table>
<br />
@@ -1,8 +1,9 @@
<%= title "Edit Ansuz Theme: #{@ansuz_theme}" -%>
<%= title "Edit Testimonial: #{@testimonial}" -%>
<% content_for :sidebar do -%>
<%= link_to "All Ansuz Themes", admin_ansuz_themes_path, :class => 'button icon back' -%>
<%= link_to "All Testimonials", admin_testimonials_path, :class => 'button icon back' -%>
<% end -%>
<% form_for :ansuz_theme, :url => admin_ansuz_theme_path(@ansuz_theme), :html => { :method => :put } do |f| -%>
<% form_for :testimonial, :url => admin_testimonial_path(@testimonial), :html => { :method => :put } do |f| -%>
<%= render :partial => 'form', :locals => { :f => f } -%>
<%= submit_tag("Update Ansuz Theme") -%> or <%= link_to "Cancel", admin_ansuz_themes_path -%>
<%= submit_tag("Update Testimonial") -%> or <%= link_to "Cancel", admin_testimonials_path -%>
<% end -%>
@@ -1,6 +1,6 @@
<%= title "New User" -%>
<% content_for :sidebar do -%>
<%= link_to "All Users", admin_users_path -%>
<%= link_to "All Users", admin_users_path, :class => 'button icon back' -%>
<% end -%>
<% form_for [:admin, @user] do |f| -%>
<%= render :partial => 'form', :locals => { :f => f } -%>
Expand Down

0 comments on commit 836e185

Please sign in to comment.