28 lines
681 B
Plaintext
Executable File
28 lines
681 B
Plaintext
Executable File
=semantic_form_for [:admin, @timeline_content] do |f|
|
|
|
|
=f.inputs do
|
|
=f.hidden_field :timeline_year_id
|
|
= f.input :image_file_id, :label => "Image", :as => :qi_image_select
|
|
= f.input :content, :label => "Contenu :", :input_html => {:class => "redactor_textarea"}
|
|
|
|
|
|
=f.submit "sauvegarder", :class => "btn btn-primary"
|
|
|
|
|
|
:javascript
|
|
$(".redactor_textarea").redactor({
|
|
focus: true,
|
|
callbacks: {
|
|
init: function()
|
|
{
|
|
|
|
}
|
|
}
|
|
});
|
|
|
|
:css
|
|
.redactor-editor{
|
|
padding: 24px 32px;
|
|
|
|
border: 1px solid rgba(0, 0, 0, 0.07);
|
|
} |