samedi 16 avril 2016

Rails time table update form

My project has day calender
where period model has period_id(id autoincrement) and subject_id,teacher_id,which_period ,day . data in form below as follows (period_id ,which_period ,day) = hidden ,subjectid is input field . output update form will be like below how to achieve this please help ...

----------------------------------------------------------
|period|        1        |        2        |       3
----------------------------------------------------------
| mon  |  period_id=1    |   period_id=2   | period_id=3
|      | which_period =1 | which_period =2 | which_period =3
|      |      day=mon    |     day=mon     | day=mon
|      |  subject_id=1   |   subject_id=2  | subject_id=3 <= input_field
----------------------------------------------------------
| tue  |  period_id=4    |   period_id=5   |  period_id=6
|      |      day=tue    |     day=tue     |    day=tue
|      | which_period =1 | which_period =2 | which_period =3
|      | subject_id=4    | subject_id=5    | subject_id=6
----------------------------------------------------------
                                          | submit|
---------------------------------------------------------

thanks

Aucun commentaire:

Enregistrer un commentaire