-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix fields in user segment. Display the arguments name.
- Loading branch information
Doug Youch
committed
May 24, 2010
1 parent
5b5ade5
commit a02eb0c
Showing
6 changed files
with
31 additions
and
29 deletions.
There are no files selected for viewing
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
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
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
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
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,17 +1,18 @@ | ||
<% cms_unstyled_fields_for :builder, @builder do |f| %> | ||
<ul> | ||
<table style="padding:5px;"> | ||
<% @builder.operation_arguments.each_with_index do |arg, idx| -%> | ||
<li> | ||
<label><%= "Argument #{idx+1}" %></label> | ||
<tr> | ||
<td class="label"><%= @builder.operation_argument_names[idx] %></td> | ||
<td class="argument"> | ||
<% arg_options = @builder.operation_argument_options[idx] | ||
label = @builder.operation_argument_names[idx] | ||
if arg_options[:options] -%> | ||
<%= f.select "argument#{idx}", arg_options[:options], :label => label %> | ||
<%= f.select "argument#{idx}", arg_options[:options] %> | ||
<% else -%> | ||
<%= f.text_field "argument#{idx}", :label => label %> | ||
<%= f.text_field "argument#{idx}" %> | ||
<% end -%> | ||
</li> | ||
</td> | ||
</tr> | ||
<% end -%> | ||
</ul> | ||
</table> | ||
<% 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