Sha256: b187b7ac29c602fe2e6d0a300262db3a2772345d89164c8998ce79f3d3d8bdf2
Contents?: true
Size: 933 Bytes
Versions: 3
Compression:
Stored size: 933 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.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.buttons do = f.commit_button
Version data entries
3 entries across 3 versions & 1 rubygems