Sha256: 99fab05aaef7654bdea3b3e77c23a4f91f72a4447dc9ee02de92d4874771c810

Contents?: true

Size: 612 Bytes

Versions: 6

Compression:

Stored size: 612 Bytes

Contents

= form_for @syllabus, url: create_assignment_syllabus_path(id: @syllabus), remote: true do |f|
  = f.fields_for :assignments do |assignment_form|
    - if assignment_form.object.new_record?
      .field
        = assignment_form.label t('assignment.name')
        br/
        = assignment_form.text_field :name
      .field
        = assignment_form.label t('assignment.description')
        br/
        = assignment_form.text_area :description
      .field
        = assignment_form.label t('assignment.max_score')
        br/
        = assignment_form.number_field :max_score

  = f.submit t('assignment.add')

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
gaku_core-0.0.3 app/views/gaku/syllabuses/assignments/_form.html.slim
gaku-0.0.3 core/app/views/gaku/syllabuses/assignments/_form.html.slim
gaku-0.0.2 core/app/views/gaku/syllabuses/assignments/_form.html.slim
gaku_core-0.0.2 app/views/gaku/syllabuses/assignments/_form.html.slim
gaku-0.0.1 core/app/views/gaku/syllabuses/assignments/_form.html.slim
gaku_core-0.0.1 app/views/gaku/syllabuses/assignments/_form.html.slim