change gem and add preview

This commit is contained in:
yqbk
2016-07-13 15:14:38 +02:00
parent 00cdbf00f8
commit f4abc1fec3
6 changed files with 18 additions and 28 deletions

View File

@ -9,9 +9,12 @@
.form-group
= f.label(:description)
= f.hidden_field(:description)
= f.pagedown_editor :description
/.form-control.markdown
.wmd-panel
#wmd-button-bar
.wmd-button-bar
textarea.wmd-input
.wmd-preview
/=f.input :description, :as => :pagedown, :input_html => { :preview => true }
.form-group
= f.label(:execution_environment_id)