Sha256: 7f356b89ac39a2f2b2638dca502df9433b1597c696ac6c54a1794cbc008d5ce7
Contents?: true
Size: 878 Bytes
Versions: 3
Compression:
Stored size: 878 Bytes
Contents
= form_for @task.becomes(Task) do |f| .form-group = f.label :name = f.text_field :name, class: 'form-control' .form-group = f.label :type, 'Action' = f.select(:type, options_for_select(Task.selectable_actions, @task.type), {}, {class: 'form-control'}) .form-group = f.label :trigger = f.text_field :trigger, class: 'form-control' .form-group = f.label :database, 'Database' = f.number_field :database, class: 'form-control' .form-group = f.label :every, 'Every (seconds)' = f.number_field :every, class: 'form-control' .form_group .checkbox = f.label :status, {style: 'font-weight:bold'} do = f.check_box :status, {}, Task::ACTIVE, Task::INACTIVE = 'Active' .form-group %button.btn.btn-default{type: 'submit', style: 'margin-right: 10px'} Save %a{href: tasks_path} Cancel
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
redis_monitor-0.3.3 | lib/engine/app/views/tasks/_form.haml |
redis_monitor-0.3.2 | lib/engine/app/views/tasks/_form.haml |
redis_monitor-0.3 | lib/engine/app/views/tasks/_form.haml |