| 1 |
|
| 2 |
<% urlopts = {:controller => 'glossary_styles', :action => 'edit', |
| 3 |
:project_id => @project, |
| 4 |
:glossary_style_id => @glossary_style.id} |
| 5 |
add_search_params(urlopts) %><%= |
| 6 |
form_for @glossary_style, :url => urlopts do |f| %> |
| 7 |
|
| 8 |
|
| 9 |
<label> <%= f.check_box "show_desc" %> <%= l(:label_glossary_style_show_desc) %> </label> |
| 10 |
<br /> |
| 11 |
|
| 12 |
<%=h l(:label_project) %> |
| 13 |
<%= |
| 14 |
options = [] |
| 15 |
options << [l(:label_glossary_style_project_current), GlossaryStyle::ProjectCurrent] |
| 16 |
options << [l(:label_glossary_style_project_mine), GlossaryStyle::ProjectMine] if User.current.logged? |
| 17 |
options << [l(:label_glossary_style_project_all), GlossaryStyle::ProjectAll] |
| 18 |
f.select('project_scope', options) |
| 19 |
%> |
| 20 |
|
| 21 |
|
| 22 |
<fieldset id="grouping"><legend><%= l(:label_grouping) %></legend> |
| 23 |
<% group_labels = [:label_none, :field_category, :label_project] %> |
| 24 |
<% for gby in [GlossaryStyle::GroupByNone, |
| 25 |
GlossaryStyle::GroupByCategory, |
| 26 |
GlossaryStyle::GroupByProject] %> |
| 27 |
<label><%= f.radio_button('groupby', gby, |
| 28 |
{ :checked => (gby == @glossary_style.groupby ) } ) %> |
| 29 |
<%= l(group_labels[gby]) %></label> |
| 30 |
<% end %> |
| 31 |
</fieldset> |
| 32 |
|
| 33 |
|
| 34 |
<fieldset id="sort"><legend><%= l(:label_sort) %></legend> |
| 35 |
<% for cnt in 0...2 %> |
| 36 |
<%= cnt+1 %> : <%= params_select(f, "sort_item_#{cnt}", default_sort_params) %><br /> |
| 37 |
<% end %> |
| 38 |
</fieldset> |
| 39 |
|
| 40 |
<%= submit_tag l(:label_view) %> |
| 41 |
<%= submit_tag l(:button_clear), :name => 'clear' %> |
| 42 |
|
| 43 |
<% end %> |