23 lines
660 B
Plaintext
Executable File
23 lines
660 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({
|
|
plugins: ['source', 'fontcolor'],
|
|
buttons : ['bold', 'italic','underline', 'deleted','lists', 'image', 'file', 'link']
|
|
});
|
|
|
|
:css
|
|
.redactor-editor{
|
|
padding: 24px 32px;
|
|
|
|
border: 1px solid rgba(0, 0, 0, 0.07);
|
|
} |