Skip to content

Commit

Permalink
Removed language fields from the forms for documents and categories
Browse files Browse the repository at this point in the history
  • Loading branch information
janv committed Dec 9, 2009
1 parent 39e7ef1 commit bb3cdef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 17 deletions.
15 changes: 3 additions & 12 deletions app/views/vrame/categories/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,14 @@
<em><%= f.error_message_on :title %></em>
</li>

<li class="last">
<li>
<%= render :partial => 'vrame/shared/slug_field', :locals => { :sluggable => category } %>
</li>
</ul>
</fieldset>

<fieldset>
<h3>Zuordnung und Sprache</h3>
<ul id="parent-category-language">
<li>

<li class="last">
<%= f.label :parent_id, 'Eltern-Kategorie:' %>
<%= tree_select(:category, :parent_id, Category.roots, :id, :title, :include_blank => true) %>
</li>
<li class="last">
<%= f.label :language_id, "Sprache:" %>
<%= collection_select :category, :language_id, Language.all, :id, :name %>
</li>
</ul>
</fieldset>

Expand Down
6 changes: 1 addition & 5 deletions app/views/vrame/documents/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,10 @@
<%= f.label :url, "URL:" %>
<%= f.text_field :url %> <em><%= f.error_message_on :url %></em>
</li>
<li>
<li class="last">
<%= f.label :backend_url, "Backend-URL:" %>
<%= f.text_field :backend_url %> <em><%= f.error_message_on :backend_url %></em>
</li>
<li class="last">
<%= f.label :language_id, "Sprache:" %>
<%= collection_select :document, :language_id, Language.all, :id, :name %>
</li>
</ul>
</fieldset>

Expand Down

0 comments on commit bb3cdef

Please sign in to comment.