33 lines
751 B
Plaintext
Executable File
33 lines
751 B
Plaintext
Executable File
=semantic_form_for [:admin, @press_release] do |f|
|
|
|
|
=f.inputs do
|
|
|
|
= f.input :image_file_id, :label => "Image :" , :as => :qi_image_select
|
|
|
|
= f.input :title, :label => "Titre"
|
|
= f.input :slug, :label => "Slug"
|
|
= f.input :description, :label => "Description"
|
|
= f.input :published_at, :label => "Date de publication : ",:as => :qi_date_picker
|
|
%p
|
|
%br
|
|
=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);
|
|
} |