Skip to content

Commit

Permalink
#88 working on user select box
Browse files Browse the repository at this point in the history
  • Loading branch information
nutso committed Jun 30, 2015
1 parent 4faa48c commit 8d0fea7
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion app/views/settings/_recurring_tasks_settings.html.erb
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
<table>
<tbody>
<tr>
<% users = User.active.all #.sort_by {|e| e[:lastname]}
%>
<th><%=l(:label_recurring_tasks_setting_journal_user)%></th>
<td><input type="text" id="journal_attributed_to_user" value="<%= settings['journal_attributed_to_user'] %>" name="settings[journal_attributed_to_user]"></td>
<td>

<%= select_tag('settings[journal_attributed_to_user]',
principals_options_for_select(users, settings['journal_attributed_to_user'])) %>

</td>

<!-- <td><input type="text" id="journal_attributed_to_user" value="<%= settings['journal_attributed_to_user'] %>" name="settings[journal_attributed_to_user]"></td> -->
</tr>
<tr>
<th><%=l(:label_recurring_tasks_setting_show_top_menu)%></th>
Expand Down

0 comments on commit 8d0fea7

Please sign in to comment.