add paper status textfield

This commit is contained in:
Rueshyna 2012-11-26 09:37:24 +08:00 committed by chris
parent 23de4f72a6
commit 9061448c5f
2 changed files with 9 additions and 1 deletions

View File

@ -83,7 +83,7 @@ class Desktop::JournalPagesController < ApplicationController
def destroy def destroy
@writing_journal = WritingJournal.find(params[:id]) @writing_journal = WritingJournal.find(params[:id])
@writing_journal.destroy @writing_journal.destroy
render :json => {success: true,msg: "Paper deleted successfully!"} render :json => {success: true, msg: "Paper deleted successfully!"}
end end
def get_journals_json def get_journals_json

View File

@ -171,6 +171,14 @@
<%= f.text_field :tag, size: "20", value: "Tag", class: "s_grid_6 s_grid"%> <%= f.text_field :tag, size: "20", value: "Tag", class: "s_grid_6 s_grid"%>
<span class="icon-plus input_append"></span> <span class="icon-plus input_append"></span>
</li> </li>
<li class="s_grid_row">
<select name="" id="" class="s_grid s_grid_2">
<option value="">Status</option>
<option value="">Published</option>
<option value="">Pending</option>
<option value="">Writing</option>
</select>
</li>
</ul> </ul>
</div> </div>
<div class="s_grid_con s_form"> <div class="s_grid_con s_form">