プロジェクト

全般

プロフィール

Vote #66884

完了

Parent select on Wiki rename page

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Wiki_1
対象バージョン:
開始日:
2010/03/20
期日:
進捗率:

0%

予定工数:
category_id:
1
version_id:
20
issue_org_id:
5136
author_id:
13472
assigned_to_id:
0
comments:
3
status_id:
5
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

I wont to add parent selection combobox on rename page, but when I change field type from text_field to collection_select string "Parent page" removed :(, how can I fix it?

!select-in-rename.png!

My patch for app/views/wiki/rename.rhtml

9c9
< 

<%= f.text_field :parent_title, :size => 100 %>

--- >

<%= f.collection_select :parent_title, WikiPage.find(:all, :conditions => ["id <> ? ", @page.id ]), :title, :pretty_title, {:prompt => ""} %>

P.S.

I am novice in RoR


journals

--------------------------------------------------------------------------------
Feature added in r4375. The combo shows the page hierarchy.
--------------------------------------------------------------------------------


related_issues

duplicates,Closed,3617,Selecting wiki page parent from a list

Admin Redmine さんが3年以上前に更新

  • カテゴリWiki_1 にセット
  • 対象バージョン1.1.0_20 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0