Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added default filters, fixed caching ids for all users.
- Loading branch information
Doug Youch
committed
May 24, 2010
1 parent
d045f49
commit c6923df
Showing
5 changed files
with
40 additions
and
3 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,3 +1,22 @@ | ||
<%= render :partial => 'operation_form' %> | ||
<% if @filter.nil? && @segment.nil? && @builder.field.nil? -%> | ||
|
||
<fieldset id="operation_builder" style="padding:10px 10px 20px 10px; margin:5px;"> | ||
<legend style="font-size:14px; font-weight:bold;">Rule Builder</legend> | ||
<% form_tag do |f| -%> | ||
<ul style="list-style:none; color:#3B648C; font-weight: bold;"> | ||
<li>Pre-built filters | ||
<%= select_tag :filter, options_for_select(UserSegment::OperationBuilder.prebuilt_filters_options), :style => 'width:200px;' %> | ||
</li> | ||
<li style="padding-top:5px; width:400px; text-align:left;"> | ||
<%= submit_tag 'Select' %> | ||
</li> | ||
</ul> | ||
</form> | ||
<% end -%> | ||
|
||
</fieldset> | ||
<% else -%> | ||
<%= render :partial => 'operation_form' %> | ||
<% end -%> | ||
|