Skip to content

Commit

Permalink
Issue 8
Browse files Browse the repository at this point in the history
Revised generated form partial. Now corresponds with instructions on the wiki page. Closes this issue.
  • Loading branch information
ploubser committed Oct 15, 2010
1 parent 179f6e1 commit 1603ce6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
<% form_remote_tag :html => { :action => url_for(:controller => "griditems", :action =>"create_grid_item"), :id => "form_for"} do %>
<!-- Your form goes here -->
<%= hidden_field_tag "refresh_rate", "0" %>
<! -- Required form elements -->
Title : <%= text_field_tag "title" %> <br>
Width : <%= text_field_tag "width", "", :size=>4%><br>
Height: <%= text_field_tag "height", "", :size=>4%><br>
Refresh Rate (in seconds): <%= text_field_tag "refresh_rate" %> <br>
<!-- Your form content goes here -->

<! -- Required submit buttons -->
<%= submit_to_remote "create_grid_item", "Create", :url => {:action => "create_grid_item", :type => type}, :html => {:class => "create"} %> <br>
<%= submit_to_remote "update_grid_item", "Update", :url => {:action => "update_grid_item", :type => type}, :html => {:class => "update"} %>
<% end %>
2 changes: 2 additions & 0 deletions lib/generators/board_plugin/templates/lib/views/view.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@
<div class="ui-widget-header">
<%= @parameters["title"] %>
</div>
<div class="ui-widget-content">
</div>
</div>

0 comments on commit 1603ce6

Please sign in to comment.