24 lines
718 B
Plaintext
Executable File
24 lines
718 B
Plaintext
Executable File
-@new_i_task = @new_i_task || ITask.new(:i_website_id => (@i_website.id if @i_website))
|
|
|
|
-new_var = new_var || false
|
|
|
|
|
|
|
|
=semantic_form_for [:admin, (new_var ? @new_i_task : @i_task)], :remote => true do |f|
|
|
|
|
.content
|
|
=f.inputs do
|
|
= f.input :i_website_id, :label => "Site :", :collection => IWebsite.all, :as => :select, :include_blank => true
|
|
= f.input :name, :label => "Libélé :"
|
|
= f.input :minutes, :label => "Temps estimé :"
|
|
= f.input :end_at, :label => "Echeance", :as => :date
|
|
= f.input :done, :label => "Accomplis ?"
|
|
=# f.input :status, :label => "Nom :"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.actions=f.submit "sauvegarder", :class => "btn btn-primary"
|
|
|