-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revised generated form partial. Now corresponds with instructions on the wiki page. Closes this issue.
- Loading branch information
Showing
2 changed files
with
10 additions
and
2 deletions.
There are no files selected for viewing
10 changes: 8 additions & 2 deletions
10
lib/generators/board_plugin/templates/lib/views/_formfor_plugin.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,6 @@ | |
<div class="ui-widget-header"> | ||
<%= @parameters["title"] %> | ||
</div> | ||
<div class="ui-widget-content"> | ||
</div> | ||
</div> |