Sha256: 124705fb2b3d67e75725178b8a26727b1e8d3b4339c52fc5c3605e53ff7040c6

Contents?: true

Size: 924 Bytes

Versions: 2

Compression:

Stored size: 924 Bytes

Contents

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

  = f.inputs do
    %table{:style => 'width: 100%'}
      %thead
        %th= t_attr :person, Activity
        %th= t_attr :project, Activity
        %th{:style => 'width: 5em'}= t_attr :duration, Activity
        %th= t_attr :comment, 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 :hours
            %td= a.text_field :comment

  = f.buttons do
    = f.commit_button

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bookyt_projects-0.12.0 app/views/batch_activities/_form.html.haml
bookyt_projects-0.11.2 app/views/batch_activities/_form.html.haml