-
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.
- Loading branch information
Doug Youch
committed
May 24, 2010
1 parent
0101309
commit 6c813ab
Showing
7 changed files
with
126 additions
and
38 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<% active_table_for :user_segments_table, @active_table_output, | ||
:class => 'active_table', | ||
:width => '100%', | ||
:more_actions => [ ['Delete Segments','delete','Delete the selected segments?'] ], | ||
:update => 'user_segments_table' do |t| %> | ||
<tr <%= highlight_row "user",t.id %> > | ||
<td nowrap='1'><%= entry_checkbox 'user',t.id %></td> | ||
<td align='center'><%= t.main_page ? 'Yes'.t : 'No'.t %></td> | ||
<td nowrap='1'><%= h t.name %></td> | ||
<td><%= h(t.description ? t.description : '') %></td> | ||
<td align='center'><%= t.last_count %></td> | ||
<td align='center'><%= t.last_ran_at.strftime(DEFAULT_DATETIME_FORMAT.t) %></td> | ||
<td align='center'><%= t.created_at.strftime(DEFAULT_DATETIME_FORMAT.t) %></td> | ||
</tr> | ||
<% 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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<% admin_form_for :segment, @segment do |f| -%> | ||
<%= f.text_field :name %> | ||
<%= f.text_area :description, :rows => 3 %> | ||
<%= f.check_boxes :main_page, [['display on people page', true]], :single => true %> | ||
<%= f.text_area :segment_options_text, :rows => 8, :label => 'Operations' %> | ||
<%= f.spacer %> | ||
<%= f.cancel_submit_buttons 'Cancel', 'Create' %> | ||
<% 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
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<script> | ||
<%= active_table_javascript %> | ||
</script> | ||
|
||
<br /> | ||
|
||
<div id='user_segments_table'> | ||
<%= render :partial => 'user_segments_table' %> | ||
</div> |