Changeset 1277
- Timestamp:
- 10/26/06 20:34:53 (2 years ago)
- Files:
-
- experimental/restful/app/controllers/admin/content_controller.rb (modified) (1 diff)
- experimental/restful/app/controllers/admin/pages_controller.rb (modified) (1 diff)
- experimental/restful/app/controllers/admin/textfilters_controller.rb (modified) (1 diff)
- experimental/restful/app/controllers/articles_controller.rb (modified) (2 diffs)
- experimental/restful/app/controllers/content_controller.rb (modified) (1 diff)
- experimental/restful/app/controllers/live_controller.rb (modified) (1 diff)
- experimental/restful/app/controllers/theme_controller.rb (modified) (1 diff)
- experimental/restful/app/views/accounts/login.rhtml (modified) (2 diffs)
- experimental/restful/app/views/accounts/signup.rhtml (modified) (2 diffs)
- experimental/restful/app/views/admin/blacklist/destroy.rhtml (modified) (1 diff)
- experimental/restful/app/views/admin/blacklist/edit.rhtml (modified) (1 diff)
- experimental/restful/app/views/admin/blacklist/_quick_post.rhtml (modified) (2 diffs)
- experimental/restful/app/views/admin/categories/destroy.rhtml (modified) (1 diff)
- experimental/restful/app/views/admin/categories/edit.rhtml (modified) (1 diff)
- experimental/restful/app/views/admin/categories/show.rhtml (modified) (2 diffs)
- experimental/restful/app/views/admin/categories/_quick_post.rhtml (modified) (2 diffs)
- experimental/restful/app/views/admin/comments/destroy.rhtml (modified) (1 diff)
- experimental/restful/app/views/admin/comments/edit.rhtml (modified) (1 diff)
- experimental/restful/app/views/admin/comments/new.rhtml (modified) (1 diff)
- experimental/restful/app/views/admin/content/destroy.rhtml (modified) (1 diff)
- experimental/restful/app/views/admin/content/edit.rhtml (modified) (2 diffs)
- experimental/restful/app/views/admin/content/new.rhtml (modified) (2 diffs)
- experimental/restful/app/views/admin/content/_quick_post.rhtml (modified) (2 diffs)
- experimental/restful/app/views/admin/feedback/list.rhtml (modified) (2 diffs)
- experimental/restful/app/views/admin/feedback/_item.rhtml (modified) (1 diff)
- experimental/restful/app/views/admin/general/index.rhtml (modified) (4 diffs)
- experimental/restful/app/views/admin/general/update_database.rhtml (modified) (3 diffs)
- experimental/restful/app/views/admin/pages/destroy.rhtml (modified) (1 diff)
- experimental/restful/app/views/admin/pages/edit.rhtml (modified) (2 diffs)
- experimental/restful/app/views/admin/pages/new.rhtml (modified) (2 diffs)
- experimental/restful/app/views/admin/pages/_quick_post.rhtml (modified) (2 diffs)
- experimental/restful/app/views/admin/resources/destroy.rhtml (modified) (1 diff)
- experimental/restful/app/views/admin/resources/new.rhtml (modified) (1 diff)
- experimental/restful/app/views/admin/resources/_metadata_add.rhtml (modified) (2 diffs)
- experimental/restful/app/views/admin/resources/_metadata_edit.rhtml (modified) (2 diffs)
- experimental/restful/app/views/admin/resources/_mime_edit.rhtml (modified) (1 diff)
- experimental/restful/app/views/admin/textfilters/destroy.rhtml (modified) (1 diff)
- experimental/restful/app/views/admin/textfilters/new.rhtml (modified) (1 diff)
- experimental/restful/app/views/admin/trackbacks/destroy.rhtml (modified) (1 diff)
- experimental/restful/app/views/admin/trackbacks/edit.rhtml (modified) (2 diffs)
- experimental/restful/app/views/admin/trackbacks/new.rhtml (modified) (1 diff)
- experimental/restful/app/views/admin/users/destroy.rhtml (modified) (2 diffs)
- experimental/restful/app/views/admin/users/edit.rhtml (modified) (2 diffs)
- experimental/restful/app/views/admin/users/new.rhtml (modified) (1 diff)
- experimental/restful/app/views/settings/install.rhtml (modified) (2 diffs)
- experimental/restful/app/views/shared/_search.rhtml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
experimental/restful/app/controllers/admin/content_controller.rb
r1275 r1277 45 45 46 46 def preview 47 @headers["Content-Type"] = "text/html; charset=utf-8"47 headers["Content-Type"] = "text/html; charset=utf-8" 48 48 @article = Article.new(params[:article]) 49 49 render :layout => false experimental/restful/app/controllers/admin/pages_controller.rb
r1033 r1277 43 43 44 44 def preview 45 @headers["Content-Type"] = "text/html; charset=utf-8"45 headers["Content-Type"] = "text/html; charset=utf-8" 46 46 @page = this_blog.pages.build(params[:page]) 47 47 render :layout => false experimental/restful/app/controllers/admin/textfilters_controller.rb
r977 r1277 73 73 74 74 def preview 75 @headers["Content-Type"] = "text/html; charset=utf-8"75 headers["Content-Type"] = "text/html; charset=utf-8" 76 76 @textfilter = params[:textfilter] 77 77 render :layout => false experimental/restful/app/controllers/articles_controller.rb
r1275 r1277 88 88 # Receive comments to articles 89 89 def comment 90 unless @request.xhr? || this_blog.sp_allow_non_ajax_comments90 unless request.xhr? || this_blog.sp_allow_non_ajax_comments 91 91 render_error("non-ajax commenting is disabled") 92 92 return … … 200 200 201 201 def set_headers 202 @headers["Content-Type"] = "text/html; charset=utf-8"202 headers["Content-Type"] = "text/html; charset=utf-8" 203 203 end 204 204 experimental/restful/app/controllers/content_controller.rb
r1275 r1277 49 49 def auto_discovery_defaults 50 50 @auto_discovery_url_rss = 51 @request.instance_variable_get(:@auto_discovery_url_rss)51 request.instance_variable_get(:@auto_discovery_url_rss) 52 52 @auto_discovery_url_atom = 53 @request.instance_variable_get(:@auto_discovery_url_atom)53 request.instance_variable_get(:@auto_discovery_url_atom) 54 54 unless @auto_discovery_url_rss && @auto_discovery_url_atom 55 55 auto_discovery_feed(:type => 'feed') 56 @request.instance_variable_set(:@auto_discovery_url_rss,57 @auto_discovery_url_rss)58 @request.instance_variable_set(:@auto_discovery_url_atom,59 @auto_discovery_url_atom)56 request.instance_variable_set(:@auto_discovery_url_rss, 57 @auto_discovery_url_rss) 58 request.instance_variable_set(:@auto_discovery_url_atom, 59 @auto_discovery_url_atom) 60 60 end 61 61 end experimental/restful/app/controllers/live_controller.rb
r915 r1277 5 5 @search = params[:q] 6 6 @articles = Article.search(@search) 7 @headers["Content-Type"] = "text/html; charset=utf-8"7 headers["Content-Type"] = "text/html; charset=utf-8" 8 8 end 9 9 experimental/restful/app/controllers/theme_controller.rb
r1275 r1277 26 26 def render_theme_item(type, file, mime = nil) 27 27 mime ||= mime_for(file) 28 render :text => "Not Found", :status => 404 and return if file.split(%r{[\\/]}).include?("..") 29 send_file this_blog.current_theme.path + "/#{type}/#{file}", :type => mime, :disposition => 'inline', :stream => false 28 if file.split(%r{[\\/]}).include?("..") 29 render :text => "Not Found", :status => 404 30 return 31 end 32 send_file(this_blog.current_theme.path + "/#{type}/#{file}", 33 :type => mime, :disposition => 'inline', :stream => false) 30 34 end 31 35 experimental/restful/app/views/accounts/login.rhtml
r1245 r1277 1 <% = start_form_tag :action=> "login"%>1 <% form_tag :action=> "login" do %> 2 2 3 3 … … 21 21 </div> 22 22 23 <% = end_form_tag%>23 <% end %> 24 24 experimental/restful/app/views/accounts/signup.rhtml
r1007 r1277 1 <% = start_form_tag :action=> "signup"%>1 <% form_tag :action=> "signup" do %> 2 2 3 3 <%= error_messages_for 'user' %><br/> 4 4 5 5 <div title="Account signup" id="loginform"> 6 <h3>Signup</h3> 6 <h3>Signup</h3> 7 7 <div class="form"> 8 8 <label for="user_login">Desired login:</label><br/> … … 23 23 </div> 24 24 25 <% = end_form_tag%>25 <% end %> 26 26 experimental/restful/app/views/admin/blacklist/destroy.rhtml
r361 r1277 6 6 7 7 <p>Are you sure you want to delete this item?</p> 8 <% = start_form_tag :action => "destroy", :id => @blacklist_pattern.id%>8 <% form_tag :action => "destroy", :id => @blacklist_pattern.id do %> 9 9 <%= confirm_delete %> 10 <% = end_form_tag%>10 <% end %> experimental/restful/app/views/admin/blacklist/edit.rhtml
r365 r1277 1 1 <% @page_heading = 'Blacklist Patterns' %> 2 2 3 <% = start_form_tag :action=>"edit", :id => @blacklist_pattern.id%>4 3 <% form_tag :action=>"edit", :id => @blacklist_pattern.id do %> 4 5 5 <h3>Editing pattern</h3> 6 <div class="form"> 6 <div class="form"> 7 7 <%= render_partial "form" %> 8 8 </div> 9 9 10 10 <div id="operations"> 11 <%= save %> or <%= cancel %> 11 <%= save %> or <%= cancel %> 12 12 </div> 13 13 14 <% = end_form_tag%>14 <% end %> experimental/restful/app/views/admin/blacklist/_quick_post.rhtml
r656 r1277 1 <% = start_form_tag :action=>"new"%>1 <% form_tag :action=>"new" do %> 2 2 3 3 <p> 4 <label for="blacklist_pattern_pattern">Pattern:</label> 4 <label for="blacklist_pattern_pattern">Pattern:</label> 5 5 <%= text_field 'blacklist_pattern', 'pattern' %> 6 6 </p> 7 7 <p> 8 <label for="blacklist_pattern_type">Type:</label> 8 <label for="blacklist_pattern_type">Type:</label> 9 9 <select name="blacklist_pattern[type]"> 10 10 <%= options_for_select [ ['String', 'StringPattern'], ['Regex', 'RegexPattern' ] ] %> … … 14 14 <%= save("Add pattern") %> or <a href="#" onclick="new Effect.BlindUp('quick-post', {duration: 0.4}); return false;" >Cancel</a> 15 15 </div> 16 <%= end_form_tag %> 16 </p> 17 <% end %> experimental/restful/app/views/admin/categories/destroy.rhtml
r558 r1277 3 3 <% content_for('tasks') do %> 4 4 <%= task_show 'Show this category', @category.id %> 5 <% end %> 5 <% end %> 6 6 7 7 <p>Are you sure you want to delete the category '<%= @category.name %>'?</p> 8 <% = start_form_tag :action => "destroy", :id => @category.id%>8 <% form_tag :action => "destroy", :id => @category.id do %> 9 9 <%= confirm_delete("Delete this category") %> 10 <% = end_form_tag%>10 <% end %> experimental/restful/app/views/admin/categories/edit.rhtml
r365 r1277 1 1 <% @page_heading = 'Categories' %> 2 2 3 <% = start_form_tag :action=>"edit", :id => @category.id%>3 <% form_tag :action=>"edit", :id => @category.id do %> 4 4 <h3>Editing category</h3> 5 <div class="form"> 5 <div class="form"> 6 6 <%= render_partial "form" %> 7 7 </div> 8 8 9 9 <div id="operations"> 10 <%= save %> or <%= cancel %> 10 <%= save %> or <%= cancel %> 11 11 </div> 12 12 13 <% = end_form_tag%>13 <% end %> experimental/restful/app/views/admin/categories/show.rhtml
r1233 r1277 5 5 <% end %> 6 6 7 <% = start_form_tag :action=>"new"%>7 <% form_tag :action=>"new" do %> 8 8 <div class="list"> 9 9 <table cellspacing="1" cellpadding="0"> … … 17 17 </table> 18 18 </div> 19 <% = end_form_tag%>19 <% end %> experimental/restful/app/views/admin/categories/_quick_post.rhtml
r656 r1277 1 <% = start_form_tag :action=>"new"%>1 <% form_tag :action=>"new" do %> 2 2 3 3 <p> 4 4 <label for="category_name">Title:</label><br/> 5 <%= text_field 'category', 'name' %> 5 <%= text_field 'category', 'name' %> 6 6 </p> 7 7 … … 9 9 <%= save("Add category") %> or <a href="#" onclick="new Effect.BlindUp('quick-post', {duration: 0.4}); return false;" >Cancel</a> 10 10 </div> 11 <% = end_form_tag%>11 <% end %> experimental/restful/app/views/admin/comments/destroy.rhtml
r1233 r1277 3 3 <% content_for('tasks') do %> 4 4 <%= task_show 'Show this comment', @comment.id %> 5 <% end %> 5 <% end %> 6 6 7 7 <p>Are you sure you want to delete this item?</p> 8 <% = start_form_tag%>8 <% form_tag do %> 9 9 <%= hidden_field "comment", "id" %> 10 10 <%= confirm_delete %> 11 <% = end_form_tag%>11 <% end %> experimental/restful/app/views/admin/comments/edit.rhtml
r1233 r1277 3 3 <% content_for('tasks') do %> 4 4 <li><%= link_to_permalink @comment,'View comment on your blog' %></li> 5 <% end %> 5 <% end %> 6 6 7 <% = start_form_tag :action=>"edit", :id => @comment.id%>7 <% form_tag :action=>"edit", :id => @comment.id do %> 8 8 9 9 <h3>Editing comment</h3> 10 <div class="form"> 10 <div class="form"> 11 11 <%= render_partial "form" %> 12 12 </div> 13 13 14 14 <div id="operations"> 15 <%= save %> or <%= cancel %> 15 <%= save %> or <%= cancel %> 16 16 </div> 17 17 18 <% = end_form_tag%>18 <% end %> experimental/restful/app/views/admin/comments/new.rhtml
r1233 r1277 2 2 3 3 <h3>Creating comment</h3> 4 5 <%= start_form_tag :action=>"new" %>6 4 7 <div class="form"> 5 <% form_tag :action=>"new" do %> 6 7 <div class="form"> 8 8 <%= render_partial "form" %> 9 9 </div> 10 10 11 11 <div id="operations"> 12 <%= save %> or <%= cancel %> 12 <%= save %> or <%= cancel %> 13 13 </div> 14 14 15 <% = end_form_tag%>15 <% end %> experimental/restful/app/views/admin/content/destroy.rhtml
r1250 r1277 6 6 7 7 <p>Are you sure you want to delete this article ( <%=h @article.title -%> )?</p> 8 <% = start_form_tag :controller => '/admin/content', :action => 'destroy'%>8 <% form_tag :controller => '/admin/content', :action => 'destroy' do %> 9 9 <%= hidden_field_tag "id", @article.id %> 10 10 <%= confirm_delete("Delete this article") %> 11 <% = end_form_tag%>11 <% end %> experimental/restful/app/views/admin/content/edit.rhtml
r1233 r1277 1 1 <% @page_heading = 'Articles' %> 2 2 3 3 <% content_for('tasks') do %> 4 4 <%= task_new 'Create new article' %> 5 5 <li><%= link_to 'View article on your blog', @article.permalink_url %></li> 6 <% end %> 6 <% end %> 7 7 8 <% = start_form_tag({ :action => "edit", :id => @article }, :id => "article_form", :enctype => "multipart/form-data")%>8 <% form_tag({ :action => "edit", :id => @article }, :id => "article_form", :enctype => "multipart/form-data") do %> 9 9 <h3>Editing article</h3> 10 10 … … 12 12 <!-- LIVE PREVIEW --> 13 13 <div id="preview" class="post" style="display:none;"></div> 14 <!-- /LIVE PREVIEW --> 14 <!-- /LIVE PREVIEW --> 15 15 <%= render_partial "form" %> 16 16 </div> 17 17 18 18 <div id="operations"> 19 <%= save %> or <%= cancel %> 19 <%= save %> or <%= cancel %> 20 20 </div> 21 21 22 <% = end_form_tag%>22 <% end %> 23 23 24 <%= observe_form "article_form", 25 :frequency => 2, 24 <%= observe_form "article_form", 25 :frequency => 2, 26 26 :update => "preview", 27 27 :complete => "Element.show('preview')", 28 :url => { :action => "preview" } %> 28 :url => { :action => "preview" } %> experimental/restful/app/views/admin/content/new.rhtml
r825 r1277 3 3 <h3>Creating article</h3> 4 4 5 <% = start_form_tag({ :action => "new" }, :id => "article_form", :enctype => "multipart/form-data")%>6 7 8 <div class="form"> 9 <!-- LIVE PREVIEW --> 5 <% form_tag({ :action => "new" }, :id => "article_form", :enctype => "multipart/form-data") do %> 6 7 8 <div class="form"> 9 <!-- LIVE PREVIEW --> 10 10 <div id="preview" class="post" style="display: none;"></div> 11 11 <!-- /LIVE PREVIEW --> … … 14 14 15 15 <div id="operations"> 16 <%= save("Save this article") %> or <%= cancel %> 16 <%= save("Save this article") %> or <%= cancel %> 17 17 </div> 18 18 19 <% = end_form_tag%>19 <% end %> 20 20 21 <%= observe_form "article_form", 22 :frequency => 2, 21 <%= observe_form "article_form", 22 :frequency => 2, 23 23 :update => "preview", 24 24 :complete => "Element.show('preview')", 25 :url => { :action => "preview" } %> 25 :url => { :action => "preview" } %> 26 26 27 27 experimental/restful/app/views/admin/content/_quick_post.rhtml
r656 r1277 1 <% = start_form_tag :action=>"new"%>1 <% form_tag :action=>"new" do %> 2 2 <p> 3 3 <label for="articles_title">Title:</label><br /> … … 18 18 <%= save("Save Post") %> or <a href="#" onclick="new Effect.BlindUp('quick-post', {duration: 0.4}); return false;" >Cancel</a> 19 19 </div> 20 <% = end_form_tag%>20 <% end %> experimental/restful/app/views/admin/feedback/list.rhtml
r1218 r1277 8 8 9 9 <div class="search"> 10 <% = form_tag({:action => 'index'}, :method => :get)%>10 <% form_tag({:action => 'index'}, :method => :get) do %> 11 11 <label for="search">Feedback Search:</label><input type="text" id="feedback_search" name="search" value="<%=h params[:search] %>" size="15" /> 12 <% = end_form_tag%>12 <% end %> 13 13 </div> 14 14 15 15 <div class="list"> 16 <% = form_tag({:action => 'bulkops'}, :method => :post)%>16 <% form_tag({:action => 'bulkops'}, :method => :post) do %> 17 17 <br/> 18 18 <%= submit_tag "Delete Checked Items" %> … … 42 42 <%= submit_tag "Mark Checked Items as Spam" %> 43 43 <%= submit_tag "Confirm Classification of Checked Items" %> 44 < /form>44 <% end %> 45 45 </div> 46 46 experimental/restful/app/views/admin/feedback/_item.rhtml
r1276 r1277 14 14 <td class="field"><%=h item.ip %></td> 15 15 <td class="field"><%=h distance_of_time_in_words_to_now(item.created_at) %> ago</td> 16 <td class="field"><%= link_to image_tag('delete.png'), {:action => 'delete', :id => item.id, :search => params[:search], :page => params[:page] }, :confirm => "Are you sure?", : post => true%></td>16 <td class="field"><%= link_to image_tag('delete.png'), {:action => 'delete', :id => item.id, :search => params[:search], :page => params[:page] }, :confirm => "Are you sure?", :method => :post %></td> 17 17 </tr> experimental/restful/app/views/admin/general/index.rhtml
r1242 r1277 1 1 <% @page_heading = 'Blog settings' %> 2 2 3 <% = start_form_tag :action => 'update'%>3 <% form_tag :action => 'update' do %> 4 4 5 5 <div class="tasks"> … … 84 84 85 85 <p>This setting allows you to disable trackbacks for every article in 86 your blog. It won't remove existing trackbacks, but it will prevent87 any further attempt to add a trackback anywhere on your blog. You can88 enable or disable trackbacks per-article using the article's extended89 settings. See also the 86 your blog. It won't remove existing trackbacks, but it will prevent 87 any further attempt to add a trackback anywhere on your blog. You can 88 enable or disable trackbacks per-article using the article's extended 89 settings. See also the 90 90 <a href="#gensettings" onclick="new Effect.ScrollTo('gensettings'); return false">"Enable Trackbacks by default" setting</a> above. 91 </p>91 </p> 92 92 <p> 93 93 <input name="setting[global_pings_disable]" id="global_pings_disable" type="checkbox" value="1" <%= 'checked="checked"' if this_blog.global_pings_disable%> /> … … 162 162 <label for="sp_global">Enable spam protection</label> 163 163 </p> 164 <p>Typo can (optionally) use the <a href="http://akismet.com">Akismet</a> spam-filtering service. You need to register with 165 Akismet and receive an API key before you can use their service. If you have an Akismet key, enter it here.166 </p>164 <p>Typo can (optionally) use the <a href="http://akismet.com">Akismet</a> spam-filtering service. You need to register with 165 Akismet and receive an API key before you can use their service. If you have an Akismet key, enter it here. 166 </p> 167 167 <p> 168 168 <label for="sp_akismet_key">Akismet Key</label> 169 169 <input name="setting[sp_akismet_key]" id="sp_akismet_key" type="text" value="<%=h this_blog.sp_akismet_key %>"/> 170 170 </p> 171 <p>You can optionally disable non-Ajax comments. Typo will always use Ajax for comment submission if Javascript is enabled,172 so non-Ajax comments are either from spammers or users without Javascript.173 </p>171 <p>You can optionally disable non-Ajax comments. Typo will always use Ajax for comment submission if Javascript is enabled, 172 so non-Ajax comments are either from spammers or users without Javascript. 173 </p> 174 174 <p> 175 175 <input name="setting[sp_allow_non_ajax_comments]" id="sp_allow_non_ajax_comments" type="checkbox" value="1" <%= 'checked="checked"' if this_blog.sp_allow_non_ajax_comments%> /> … … 244 244 </div> 245 245 246 <% = end_form_tag%>246 <% end %> experimental/restful/app/views/admin/general/update_database.rhtml
r407 r1277 6 6 <h3>Information</h3> 7 7 <p> 8 <label>Current database version:</label> 8 <label>Current database version:</label> 9 9 <span class="db_version"><%= @current_version %></span> 10 10 </p> 11 11 <p> 12 <label>New database version:</label> 12 <label>New database version:</label> 13 13 <span class="db_version"><%= @needed_version %></span> 14 14 </p> 15 15 <p> 16 <label>Your database supports migrations:</label> 16 <label>Your database supports migrations:</label> 17 17 <span class="db_version"><%= @support ? 'yes' : 'no' %></span> 18 18 </p> 19 19 </div> 20 21 20 21 22 22 <% unless @needed_migrations.blank? %> 23 23 <div id="gensettings" class="set" style="margin-top:10px;"> … … 26 26 <% for migration in @needed_migrations %> 27 27 <li><%= migration.humanize %></li> 28 <% end %> 28 <% end %> 29 29 </ul> 30 30 </div> 31 31 <% end %> 32 32 33 33 </div> 34 34 35 35 36 <% = start_form_tag :action => 'migrate'%>36 <% form_tag :action => 'migrate' do %> 37 37 <div id="operations" class="tasks"> 38 38 <% if @current_version == @needed_version %> … … 42 42 <% end %> 43 43 </div> 44 <% = end_form_tag%>44 <% end %> experimental/restful/app/views/admin/pages/destroy.rhtml
r1233 r1277 3 3 <% content_for('tasks') do %> 4 4 <%= task_show "Show this page", @page.id %> 5 <% end %> 5 <% end %> 6 6 7 7 <p>Are you sure you want to delete the page '<%= @page[:name] %>'?</p> 8 <% = start_form_tag :controller => '/admin/pages', :action => 'destroy'%>8 <% form_tag :controller => '/admin/pages', :action => 'destroy' do %> 9 9 <%= hidden_field "page", "id" %> 10 10 <%= confirm_delete("Delete this page") %> 11 <% = end_form_tag%>11 <% end %> experimental/restful/app/views/admin/pages/edit.rhtml
r1233 r1277 1 1 <% @page_heading = 'Pages' %> 2 2 3 3 <% content_for('tasks') do %> 4 4 <%= task_new 'Create new page' %> 5 5 <li><%= link_to 'View page on your blog', @page.permalink_url %></li> 6 <% end %> 6 <% end %> 7 7 8 <% = start_form_tag({ :action => "edit", :id => @page }, :id => "page_form")%>8 <% form_tag({ :action => "edit", :id => @page }, :id => "page_form") do %> 9 9 <h3>Editing page</h3> 10 10 … … 12 12 <!-- LIVE PREVIEW --> 13 13 <div id="preview" class="post" style="display:none;"></div> 14 <!-- /LIVE PREVIEW --> 14 <!-- /LIVE PREVIEW --> 15 15 <%= render :partial => "form" %> 16 16 </div> 17 17 18 18 <div id="operations"> 19 <%= save %> or <%= cancel %> 19 <%= save %> or <%= cancel %> 20 20 </div> 21 21 22 <% = end_form_tag%>22 <% end %> 23 23 24 <%= observe_form "page_form", 25 :frequency => 2, 24 <%= observe_form "page_form", 25 :frequency => 2, 26 26 :update => "preview", 27 27 :complete => "Element.show('preview')", experimental/restful/app/views/admin/pages/new.rhtml
r461 r1277 3 3 <h3>Creating page</h3> 4 4 5 <% = start_form_tag({ :action => "new" }, :id => "page_form")%>6 7 <div class="form"> 8 <!-- LIVE PREVIEW --> 5 <% form_tag({ :action => "new" }, :id => "page_form") do %> 6 7 <div class="form"> 8 <!-- LIVE PREVIEW --> 9 9 <div id="preview" class="post" style="display: none;"></div> 10 10 <!-- /LIVE PREVIEW --> … … 13 13 14 14 <div id="operations"> 15 <%= save %> or <%= cancel %> 15 <%= save %> or <%= cancel %> 16 16 </div> 17 17 18 <% = end_form_tag%>18 <% end %> 19 19 20 <%= observe_form "page_form", 21 :frequency => 2, 20 <%= observe_form "page_form", 21 :frequency => 2, 22 22 :update => "preview", 23 23 :complete => "Element.show('preview')", 24 :url => { :action => "preview" } %> 24 :url => { :action => "preview" } %> experimental/restful/app/views/admin/pages/_quick_post.rhtml
r656 r1277 1 <% = start_form_tag :action=>"new"%>1 <% form_tag :action=>"new" do %> 2 2 <p> 3 3 <label for="page_title">Location:</label><br/> … … 19 19 <%= save("Save Post") %> or <a href="#" onclick="new Effect.BlindUp('quick-post', {duration: 0.4}); return false;" >Cancel</a> 20 20 </div> 21 <% = end_form_tag%>21 <% end %> experimental/restful/app/views/admin/resources/destroy.rhtml
r534 r1277 3 3 <% content_for('tasks') do %> 4 4 <%= task_new 'Upload a new File' %> 5 <% end %> 5 <% end %> 6 6 7 7 <p>Are you sure you want to delete this file ( <%= @file.filename -%> )?</p> 8 <% = start_form_tag :action => 'destroy'%>8 <% form_tag :action => 'destroy' do %> 9 9 <%= hidden_field "file", "id" %> 10 10 <%= confirm_delete("Delete this file from the webserver?") %> 11 <% = end_form_tag%>11 <% end %> experimental/restful/app/views/admin/resources/new.rhtml
r534 r1277 8 8 <%= submit_tag 'Upload' -%> 9 9 <div id='status' style="display: none"><%= upload_status_tag %></div> 10 < %= end_form_tag %>10 </form> 11 11 12 12 <div id="message"><%= @message %></div> experimental/restful/app/views/admin/resources/_metadata_add.rhtml
r915 r1277 1 <% = start_form_tag({ :action => "update" }, :id => id, :enctype => "multipart/form-data")%>1 <% form_tag({ :action => "update" }, :id => id, :enctype => "multipart/form-data") do %> 2 2 <div class="form"> 3 3 <b>Resource MetaData</b><br /> … … 20 20 <%= save("Save") %> or <a href="#" onclick="new Effect.BlindUp('add-resource-metadata-<%= id %>', {duration: 0.4}); return false;" >Cancel</a> 21 21 </div> 22 <% = end_form_tag%>22 <% end %> experimental/restful/app/views/admin/resources/_metadata_edit.rhtml
r864 r1277 1 <% = start_form_tag({ :action => "update" }, :id => id, :enctype => "multipart/form-data")%>1 <% form_tag({ :action => "update" }, :id => id, :enctype => "multipart/form-data") do %> 2 2 <div class="form"> 3 3 <b>Resource MetaData</b><br /> … … 17 17 <input name="resource[itunes_explicit]" type="checkbox" value="1" <%= 'checked="checked"' if resource.itunes_explicit%>>Explicit</input><input name="resource[itunes_explicit]" type="hidden" value="0" /> 18 18 <br /> 19 <input name="resource[id]" type="hidden" value="<%= id %>" /> 19 <input name="resource[id]" type="hidden" value="<%= id %>" /> 20 20 <%= save("Save") %> or <a href="#" onclick="new Effect.BlindUp('edit-resource-metadata-<%= id %>', {duration: 0.4}); return false;" >Cancel</a> 21 21 </div> 22 <% = end_form_tag%>22 <% end %> experimental/restful/app/views/admin/resources/_mime_edit.rhtml
r840 r1277 1 <% = start_form_tag({ :action => "set_mime" }, :id => id, :enctype => "multipart/form-data")%>1 <% form_tag({ :action => "set_mime" }, :id => id, :enctype => "multipart/form-data") do %> 2 2 <div class="form"> 3 3 <label for="resource_mime_<%= id %>">Content Type:</label><br/> 4 4 <input name="resource[mime]" size="22" id="resource_mime_<%= id %>" type="text" value="<%=h mime %>" /><br /> 5 <input name="resource[id]" type="hidden" value="<%= id %>" /> 5 <input name="resource[id]" type="hidden" value="<%= id %>" /> 6 6 <%= save("Save") %> or <a href="#" onclick="new Effect.BlindUp('edit-resource-mime-<%= id %>', {duration: 0.4}); return false;" >Cancel</a> 7 7 </div> 8 <% = end_form_tag%>8 <% end %> experimental/restful/app/views/admin/textfilters/destroy.rhtml
r1233 r1277 2 2 3 3 <% content_for('tasks') do %> 4 <% end %> 4 <% end %> 5 5 6 6 <p>Are you sure you want to delete this filter '<%= @textfilter.name %>'?</p> 7 <% = start_form_tag :controller => '/admin/textfilters', :action => 'destroy'%>7 <% form_tag :controller => '/admin/textfilters', :action => 'destroy' do %> 8 8 <%= hidden_field "textfilter", "id" %>&nbs
