forked from jasder/taskover
add enter event and remove form element
This commit is contained in:
parent
f1e64e95a6
commit
e1edb25ffa
|
|
@ -1,6 +1,7 @@
|
|||
%form.form.form-horizontal.plan#new_list
|
||||
.form.form-horizontal.plan#new_list
|
||||
.field
|
||||
= text_field_tag :list_title, nil, class: 'form-control', required: true, 'v-model' => 'list.title', placeholder: '名称'
|
||||
= text_field_tag :list_title, nil, class: 'form-control', required: true, placeholder: '名称',
|
||||
'v-model' => 'list.title', 'v-on:keyup.enter' => 'addList'
|
||||
.field
|
||||
.color-select-feild
|
||||
= collection_radio_buttons :list_color_tag, nil, options_for_color, :last, :first do |b|
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
%form.form.form-horizontal.plan#new_plan
|
||||
.form.form-horizontal.plan#new_plan
|
||||
.field
|
||||
= text_field_tag :title, nil, class: 'form-control', required: true, 'v-model' => 'plan.title', placeholder: '名称'
|
||||
.field
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
%form.form.form-horizontal.plan#new_task
|
||||
.form.form-horizontal.plan#new_task
|
||||
.field
|
||||
= text_field_tag :task_title, nil, class: 'form-control', required: true, 'v-model' => 'task.title', placeholder: '任务名称'
|
||||
= text_field_tag :task_title, nil, class: 'form-control', required: true, placeholder: '任务名称',
|
||||
'v-model' => 'task.title', 'v-on:keyup.enter' => 'addTask'
|
||||
= hidden_field_tag :new_task_path, nil, ':value' => 'list.new_task_path'
|
||||
.field.add-task-buttons
|
||||
%button.btn.btn-sm.btn-default{ :type => "button", 'v-on:click' => 'cancelTask' } 取消
|
||||
|
|
|
|||
Loading…
Reference in New Issue