Sha256: 3ef0c1521e50de3b8a15ec248ea33d972b559ff2ddb64c771a61333bc92f995c

Contents?: true

Size: 846 Bytes

Versions: 11

Compression:

Stored size: 846 Bytes

Contents

= simple_form_for :batch_activities, :url => batch_activities_path do |f|
  = f.input :date, :as => :date_field, :label => t('attributes.date'), :input_html => {:value => @date}

  %table.table.table-striped.collection
    %thead
      %th= t_attr :person, Activity
      %th= t_attr :project, Activity
      %th{:style => 'width: 5em'}= t_attr :duration, Activity
      %th= t_attr :remarks, Activity

    %tbody
    - for activity in @activities
      %tr
        = fields_for 'activities[]', activity do |a|
          %td
            = link_to activity.person, activity.person
            = a.hidden_field :person_id
          %td= a.select :project_id, Project.all.map{|project| [project.to_s, project.id]}, {:prompt => t_select_prompt(Project)}
          %td= a.text_field :duration
          %td= a.text_field :remarks

  = f.button :submit

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
bookyt_projects-1.1.2 app/views/batch_activities/_form.html.haml
bookyt_projects-1.1.1 app/views/batch_activities/_form.html.haml
bookyt_projects-1.1.0 app/views/batch_activities/_form.html.haml
bookyt_projects-1.0.1 app/views/batch_activities/_form.html.haml
bookyt_projects-1.0.0 app/views/batch_activities/_form.html.haml
bookyt_projects-0.21.0 app/views/batch_activities/_form.html.haml
bookyt_projects-0.20.0 app/views/batch_activities/_form.html.haml
bookyt_projects-0.19.23 app/views/batch_activities/_form.html.haml
bookyt_projects-0.19.22 app/views/batch_activities/_form.html.haml
bookyt_projects-0.19.21 app/views/batch_activities/_form.html.haml
bookyt_projects-0.19.20 app/views/batch_activities/_form.html.haml