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