Need guidance on an inline editing design

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
17 messages Options
Reply | Threaded
Open this post in threaded view
|

Need guidance on an inline editing design

John Sanderbeck
What I am trying to do is in my application is add Student Attendance for the day.

What I would like to have is a form that a teacher goes to every morning on their computer or iPad with the list of his/her students and he/she just has a list of option buttons beside each student with the student's attendance for that day. They just tap the option that is correct by each student...

The options will typically be Present, Absent, Half-Day District, Half-Day CTC, Full-Day District...

Has anyone done something like this I can look at the code or do you have suggestions on how I can do this...

I've been googling and watching videos and nothing does what I am looking for...

John Sanderbeck

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/ef7e07f6-dd10-4123-9b75-e0e522a3c26b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Need guidance on an inline editing design

David Merrick
Hi The database would supply the students details.

The form would consist of the 

ist row Student details checkbox for each  Present, Absent, Half-Day District, Half-Day CTC, Full-Day District.

2nd row Submit button

Once the submit button is clicked those details would entered into the database 

and the next Student in the Database would be presented

Cheers Dave


On Wed, Aug 1, 2018 at 9:34 AM, John Sanderbeck <[hidden email]> wrote:
What I am trying to do is in my application is add Student Attendance for the day.

What I would like to have is a form that a teacher goes to every morning on their computer or iPad with the list of his/her students and he/she just has a list of option buttons beside each student with the student's attendance for that day. They just tap the option that is correct by each student...

The options will typically be Present, Absent, Half-Day District, Half-Day CTC, Full-Day District...

Has anyone done something like this I can look at the code or do you have suggestions on how I can do this...

I've been googling and watching videos and nothing does what I am looking for...

John Sanderbeck

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/ef7e07f6-dd10-4123-9b75-e0e522a3c26b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Dave Merrick

Daves Web Designs

Website http://www.daveswebdesigns.co.nz

Email [hidden email]

Ph   03 216 2053

Cell 027 3089 169

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CA%2B%3DMcKbfgooSw0%3DjfvOm_AYwrWFUK%2BKWvRyp9T2T5jwcwy%2BvcQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Need guidance on an inline editing design

John Sanderbeck
Is there a way I could do all students at once?

John

On Wednesday, August 1, 2018 at 3:35:06 AM UTC-4, David Merrick wrote:
Hi The database would supply the students details.

The form would consist of the 

ist row Student details checkbox for each  Present, Absent, Half-Day District, Half-Day CTC, Full-Day District.

2nd row Submit button

Once the submit button is clicked those details would entered into the database 

and the next Student in the Database would be presented

Cheers Dave


On Wed, Aug 1, 2018 at 9:34 AM, John Sanderbeck <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="k7jOWVNHCQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">band...@...> wrote:
What I am trying to do is in my application is add Student Attendance for the day.

What I would like to have is a form that a teacher goes to every morning on their computer or iPad with the list of his/her students and he/she just has a list of option buttons beside each student with the student's attendance for that day. They just tap the option that is correct by each student...

The options will typically be Present, Absent, Half-Day District, Half-Day CTC, Full-Day District...

Has anyone done something like this I can look at the code or do you have suggestions on how I can do this...

I've been googling and watching videos and nothing does what I am looking for...

John Sanderbeck

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="k7jOWVNHCQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">rubyonrails-ta...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="k7jOWVNHCQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">rubyonra...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/rubyonrails-talk/ef7e07f6-dd10-4123-9b75-e0e522a3c26b%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/ef7e07f6-dd10-4123-9b75-e0e522a3c26b%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/ef7e07f6-dd10-4123-9b75-e0e522a3c26b%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/rubyonrails-talk/ef7e07f6-dd10-4123-9b75-e0e522a3c26b%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.



--
Dave Merrick

Daves Web Designs

Website <a href="http://www.daveswebdesigns.co.nz" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.daveswebdesigns.co.nz\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGm3yB5Eg6LFoQK4gg_gqwLmv-Nyg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.daveswebdesigns.co.nz\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGm3yB5Eg6LFoQK4gg_gqwLmv-Nyg&#39;;return true;">http://www.daveswebdesigns.co.nz

Email <a href="javascript:" target="_blank" gdf-obfuscated-mailto="k7jOWVNHCQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">merri...@...

Ph   03 216 2053

Cell 027 3089 169

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/959cedf8-1c1b-4f6e-8fba-72e632b325d0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Need guidance on an inline editing design

Ralph Shnelvar
In reply to this post by John Sanderbeck
Re: [Rails] Need guidance on an inline editing design John,

This is an add-on to David Merrick's answer.

Since this is for a school class, it's unlikely to have more than, say, 50 students.

Your database query could bring in up to 50 students and then you could build a view with something like the following pseudo-code
 <% students.each do |student| %>
     /* build a line or lines identifying the student and radio buttons indicating attendance */
 <% end %>
 /* submit button */

Of course, if you have more than 50 (or whatever) students, the logic becomes a bit more complicated - but not by much.

I think this would be preferred over a one-student-per-screen approach.

Ralph



Tuesday, July 31, 2018, 3:34:23 PM, you wrote:


What I am trying to do is in my application is add Student Attendance for the day.

What I would like to have is a form that a teacher goes to every morning on their computer or iPad with the list of his/her students and he/she just has a list of option buttons beside each student with the student's attendance for that day. They just tap the option that is correct by each student...

The options will typically be Present, Absent, Half-Day District, Half-Day CTC, Full-Day District...

Has anyone done something like this I can look at the code or do you have suggestions on how I can do this...

I've been googling and watching videos and nothing does what I am looking for...

John Sanderbeck
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
[hidden email].
To post to this group, send email to
[hidden email].
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/ef7e07f6-dd10-4123-9b75-e0e522a3c26b%40googlegroups.com.
For more options, visit
https://groups.google.com/d/optout.




Ralph

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/977048833.20180801035527%40dos32.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Need guidance on an inline editing design

John Sanderbeck
It will typically be a single class however the main secretary may go in to check attendance and she will see the entire school. This won't hurt me as we only have 125 kids, but a larger school could have an issue...   Would Pagination still work in this scenario?

John

On Wednesday, August 1, 2018 at 5:55:41 AM UTC-4, Ralph Shnelvar wrote:
John,

This is an add-on to David Merrick's answer.

Since this is for a school class, it's unlikely to have more than, say, 50 students.

Your database query could bring in up to 50 students and then you could build a view with something like the following pseudo-code
 <% students.each do |student| %>
     /* build a line or lines identifying the student and radio buttons indicating attendance */
 <% end %>
 /* submit button */

Of course, if you have more than 50 (or whatever) students, the logic becomes a bit more complicated - but not by much.

I think this would be preferred over a one-student-per-screen approach.

Ralph



Tuesday, July 31, 2018, 3:34:23 PM, you wrote:


What I am trying to do is in my application is add Student Attendance for the day.

What I would like to have is a form that a teacher goes to every morning on their computer or iPad with the list of his/her students and he/she just has a list of option buttons beside each student with the student's attendance for that day. They just tap the option that is correct by each student...

The options will typically be Present, Absent, Half-Day District, Half-Day CTC, Full-Day District...

Has anyone done something like this I can look at the code or do you have suggestions on how I can do this...

I've been googling and watching videos and nothing does what I am looking for...

John Sanderbeck
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
<a style="font-family:&#39;times new roman&#39;;font-size:14pt" href="javascript:" target="_blank" gdf-obfuscated-mailto="m-_mKv9OCQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">rubyonrails-ta...@googlegroups.com.
To post to this group, send email to
<a style="font-family:&#39;times new roman&#39;;font-size:14pt" href="javascript:" target="_blank" gdf-obfuscated-mailto="m-_mKv9OCQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">rubyonra...@googlegroups.com.
To view this discussion on the web visit
<a style="font-family:&#39;times new roman&#39;;font-size:14pt" href="https://groups.google.com/d/msgid/rubyonrails-talk/ef7e07f6-dd10-4123-9b75-e0e522a3c26b%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/ef7e07f6-dd10-4123-9b75-e0e522a3c26b%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/ef7e07f6-dd10-4123-9b75-e0e522a3c26b%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/rubyonrails-talk/ef7e07f6-dd10-4123-9b75-e0e522a3c26b%40googlegroups.com.
For more options, visit
<a style="font-family:&#39;times new roman&#39;;font-size:14pt" href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.




Ralph

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/3164af28-e392-42ac-8863-16f731bdf1ac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Need guidance on an inline editing design

John Sanderbeck
And if not, could I have a filter?  We use Filterrific in most of the application...

John

On Wednesday, August 1, 2018 at 10:16:19 AM UTC-4, John Sanderbeck wrote:
It will typically be a single class however the main secretary may go in to check attendance and she will see the entire school. This won't hurt me as we only have 125 kids, but a larger school could have an issue...   Would Pagination still work in this scenario?

John

On Wednesday, August 1, 2018 at 5:55:41 AM UTC-4, Ralph Shnelvar wrote:
John,

This is an add-on to David Merrick's answer.

Since this is for a school class, it's unlikely to have more than, say, 50 students.

Your database query could bring in up to 50 students and then you could build a view with something like the following pseudo-code
 <% students.each do |student| %>
     /* build a line or lines identifying the student and radio buttons indicating attendance */
 <% end %>
 /* submit button */

Of course, if you have more than 50 (or whatever) students, the logic becomes a bit more complicated - but not by much.

I think this would be preferred over a one-student-per-screen approach.

Ralph



Tuesday, July 31, 2018, 3:34:23 PM, you wrote:


What I am trying to do is in my application is add Student Attendance for the day.

What I would like to have is a form that a teacher goes to every morning on their computer or iPad with the list of his/her students and he/she just has a list of option buttons beside each student with the student's attendance for that day. They just tap the option that is correct by each student...

The options will typically be Present, Absent, Half-Day District, Half-Day CTC, Full-Day District...

Has anyone done something like this I can look at the code or do you have suggestions on how I can do this...

I've been googling and watching videos and nothing does what I am looking for...

John Sanderbeck
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
rubyonrails-ta...@googlegroups.com.
To post to this group, send email to
[hidden email].
To view this discussion on the web visit
<a style="font-family:&#39;times new roman&#39;;font-size:14pt" href="https://groups.google.com/d/msgid/rubyonrails-talk/ef7e07f6-dd10-4123-9b75-e0e522a3c26b%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/ef7e07f6-dd10-4123-9b75-e0e522a3c26b%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/ef7e07f6-dd10-4123-9b75-e0e522a3c26b%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/rubyonrails-talk/ef7e07f6-dd10-4123-9b75-e0e522a3c26b%40googlegroups.com.
For more options, visit
<a style="font-family:&#39;times new roman&#39;;font-size:14pt" href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.




Ralph

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/5e0a9dbf-4a56-45c1-8edf-d82c969c6330%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Need guidance on an inline editing design

Joe Guerra
Doesn't seem like a very hard app to put together. 

Why not just load all the students at once (if they are about 50 of them) (or you can say paginate them at 20 records).

I would use radio buttons, instead of check boxes.

On Wed, Aug 1, 2018 at 10:18 AM, John Sanderbeck <[hidden email]> wrote:
And if not, could I have a filter?  We use Filterrific in most of the application...

John

On Wednesday, August 1, 2018 at 10:16:19 AM UTC-4, John Sanderbeck wrote:
It will typically be a single class however the main secretary may go in to check attendance and she will see the entire school. This won't hurt me as we only have 125 kids, but a larger school could have an issue...   Would Pagination still work in this scenario?

John

On Wednesday, August 1, 2018 at 5:55:41 AM UTC-4, Ralph Shnelvar wrote:
John,

This is an add-on to David Merrick's answer.

Since this is for a school class, it's unlikely to have more than, say, 50 students.

Your database query could bring in up to 50 students and then you could build a view with something like the following pseudo-code
 <% students.each do |student| %>
     /* build a line or lines identifying the student and radio buttons indicating attendance */
 <% end %>
 /* submit button */

Of course, if you have more than 50 (or whatever) students, the logic becomes a bit more complicated - but not by much.

I think this would be preferred over a one-student-per-screen approach.

Ralph



Tuesday, July 31, 2018, 3:34:23 PM, you wrote:


What I am trying to do is in my application is add Student Attendance for the day.

What I would like to have is a form that a teacher goes to every morning on their computer or iPad with the list of his/her students and he/she just has a list of option buttons beside each student with the student's attendance for that day. They just tap the option that is correct by each student...

The options will typically be Present, Absent, Half-Day District, Half-Day CTC, Full-Day District...

Has anyone done something like this I can look at the code or do you have suggestions on how I can do this...

I've been googling and watching videos and nothing does what I am looking for...

John Sanderbeck
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
rubyonrails-ta...@googlegroups.com.
To post to this group, send email to
[hidden email].
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/ef7e07f6-dd10-4123-9b75-e0e522a3c26b%40googlegroups.com.
For more options, visit
https://groups.google.com/d/optout.




Ralph

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/5e0a9dbf-4a56-45c1-8edf-d82c969c6330%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAOFgAM%3DzGW4HLLW2G9YTYgboULPhaHJQx_wA9SS5ZPJ%3D%2BJrdNQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Need guidance on an inline editing design

Joe Guerra
or you can put a drop-down list with the attendance options in the list.

On Wed, Aug 1, 2018 at 10:24 AM, Joe Guerra <[hidden email]> wrote:
Doesn't seem like a very hard app to put together. 

Why not just load all the students at once (if they are about 50 of them) (or you can say paginate them at 20 records).

I would use radio buttons, instead of check boxes.

On Wed, Aug 1, 2018 at 10:18 AM, John Sanderbeck <[hidden email]> wrote:
And if not, could I have a filter?  We use Filterrific in most of the application...

John

On Wednesday, August 1, 2018 at 10:16:19 AM UTC-4, John Sanderbeck wrote:
It will typically be a single class however the main secretary may go in to check attendance and she will see the entire school. This won't hurt me as we only have 125 kids, but a larger school could have an issue...   Would Pagination still work in this scenario?

John

On Wednesday, August 1, 2018 at 5:55:41 AM UTC-4, Ralph Shnelvar wrote:
John,

This is an add-on to David Merrick's answer.

Since this is for a school class, it's unlikely to have more than, say, 50 students.

Your database query could bring in up to 50 students and then you could build a view with something like the following pseudo-code
 <% students.each do |student| %>
     /* build a line or lines identifying the student and radio buttons indicating attendance */
 <% end %>
 /* submit button */

Of course, if you have more than 50 (or whatever) students, the logic becomes a bit more complicated - but not by much.

I think this would be preferred over a one-student-per-screen approach.

Ralph



Tuesday, July 31, 2018, 3:34:23 PM, you wrote:


What I am trying to do is in my application is add Student Attendance for the day.

What I would like to have is a form that a teacher goes to every morning on their computer or iPad with the list of his/her students and he/she just has a list of option buttons beside each student with the student's attendance for that day. They just tap the option that is correct by each student...

The options will typically be Present, Absent, Half-Day District, Half-Day CTC, Full-Day District...

Has anyone done something like this I can look at the code or do you have suggestions on how I can do this...

I've been googling and watching videos and nothing does what I am looking for...

John Sanderbeck
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
rubyonrails-ta...@googlegroups.com.
To post to this group, send email to
[hidden email].
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/ef7e07f6-dd10-4123-9b75-e0e522a3c26b%40googlegroups.com.
For more options, visit
https://groups.google.com/d/optout.




Ralph

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/5e0a9dbf-4a56-45c1-8edf-d82c969c6330%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAOFgAMm-_3rUuneF8rkAqn%2BgOGtCD2V0K3NOwYpy9Kkumy-84w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Need guidance on an inline editing design

Hassan Schroeder-2
In reply to this post by John Sanderbeck
On Wed, Aug 1, 2018 at 7:16 AM, John Sanderbeck <[hidden email]> wrote:
> It will typically be a single class however the main secretary may go in to
> check attendance and she will see the entire school.

Is the "main secretary" *viewing* or *editing* the data?

If it's only viewing you can consider that a completely different use
case to provide for (and it might be presenting a list, a chart/graph,
a search-by-name, etc.).

Also, consider what should happen when the teacher has recorded
attendance and an "absent" student walks in late :-)

That said, you're describing a pretty basic form/CRUD pattern, so it
shouldn't be too difficult to implement.

Have fun!

--
Hassan Schroeder ------------------------ [hidden email]
twitter: @hassan
Consulting Availability : Silicon Valley or remote

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yC2A96YKv-sOgh%3DSVw9arqDYmTyDVyB_7MkNhfNoKcdTA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Need guidance on an inline editing design

John Sanderbeck
She may be editing...

Ok, Taking the suggestions from above I think I have the form figured out but where I am having an issue is with the radio buttons...   

How do I define a set of radio buttons unique to each student with a set of options from an AttendanceStatus table?   I would also like to show them as actual buttons with bootstrap if possible...

John

On Wednesday, August 1, 2018 at 11:07:41 AM UTC-4, Hassan Schroeder wrote:
On Wed, Aug 1, 2018 at 7:16 AM, John Sanderbeck <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="_r3M4gVgCQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">band...@...> wrote:
> It will typically be a single class however the main secretary may go in to
> check attendance and she will see the entire school.

Is the "main secretary" *viewing* or *editing* the data?

If it's only viewing you can consider that a completely different use
case to provide for (and it might be presenting a list, a chart/graph,
a search-by-name, etc.).

Also, consider what should happen when the teacher has recorded
attendance and an "absent" student walks in late :-)

That said, you're describing a pretty basic form/CRUD pattern, so it
shouldn't be too difficult to implement.

Have fun!

--
Hassan Schroeder ------------------------ <a href="javascript:" target="_blank" gdf-obfuscated-mailto="_r3M4gVgCQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">hassan.s...@...
twitter: @hassan
Consulting Availability : Silicon Valley or remote

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/9cfc89fa-1457-4209-b2ed-88f4e68c704a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Need guidance on an inline editing design

Hassan Schroeder-2
On Wed, Aug 1, 2018 at 9:06 AM, John Sanderbeck <[hidden email]> wrote:

> How do I define a set of radio buttons unique to each student

You'll need to include an identifier with each set of button names
(student id or something).

> with a set of options from an AttendanceStatus table?

If they're unlikely to change frequently or ever I'd just hardcode
them into the app. (You could always change that later.)

> I would also like to show them as actual buttons with bootstrap if possible...

Dunno -- bootstrap is just CSS right? I mean, we're talking about
"actual buttons" to start with...

--
Hassan Schroeder ------------------------ [hidden email]
twitter: @hassan
Consulting Availability : Silicon Valley or remote

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yB_DULscW0SzUijt%2Bx4%2BV21Z2WWng5n2OKTg%3D07XK14Ww%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Need guidance on an inline editing design

John Sanderbeck
Sorry...  Only been doing RoR code for about a year...  Still learning...

John

On Wednesday, August 1, 2018 at 1:23:45 PM UTC-4, Hassan Schroeder wrote:
On Wed, Aug 1, 2018 at 9:06 AM, John Sanderbeck <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="0Kr7jHJnCQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">band...@...> wrote:

> How do I define a set of radio buttons unique to each student

You'll need to include an identifier with each set of button names
(student id or something).

> with a set of options from an AttendanceStatus table?

If they're unlikely to change frequently or ever I'd just hardcode
them into the app. (You could always change that later.)

> I would also like to show them as actual buttons with bootstrap if possible...

Dunno -- bootstrap is just CSS right? I mean, we're talking about
"actual buttons" to start with...

--
Hassan Schroeder ------------------------ <a href="javascript:" target="_blank" gdf-obfuscated-mailto="0Kr7jHJnCQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">hassan.s...@...
twitter: @hassan
Consulting Availability : Silicon Valley or remote

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/6062c110-1521-4a55-99d6-9b633719b53a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Need guidance on an inline editing design

Joe Guerra
Have you put your code up on github?  

I can give you a hand, I'm also learning rails, and run out of ideas / projects to work on.  



On Thursday, August 2, 2018 at 6:38:39 AM UTC-4, John Sanderbeck wrote:
Sorry...  Only been doing RoR code for about a year...  Still learning...

John

On Wednesday, August 1, 2018 at 1:23:45 PM UTC-4, Hassan Schroeder wrote:
On Wed, Aug 1, 2018 at 9:06 AM, John Sanderbeck <[hidden email]> wrote:

> How do I define a set of radio buttons unique to each student

You'll need to include an identifier with each set of button names
(student id or something).

> with a set of options from an AttendanceStatus table?

If they're unlikely to change frequently or ever I'd just hardcode
them into the app. (You could always change that later.)

> I would also like to show them as actual buttons with bootstrap if possible...

Dunno -- bootstrap is just CSS right? I mean, we're talking about
"actual buttons" to start with...

--
Hassan Schroeder ------------------------ [hidden email]
twitter: @hassan
Consulting Availability : Silicon Valley or remote

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/ffc4fede-9e81-4025-8c85-34db90d4e9bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Need guidance on an inline editing design

John Sanderbeck
It's part of a larger project so let me see if I can split the attendance portion out...   We use BitBucket because we are cheap...  :-)

John

On Thursday, August 2, 2018 at 10:06:23 AM UTC-4, Joe Guerra wrote:
Have you put your code up on github?  

I can give you a hand, I'm also learning rails, and run out of ideas / projects to work on.  



On Thursday, August 2, 2018 at 6:38:39 AM UTC-4, John Sanderbeck wrote:
Sorry...  Only been doing RoR code for about a year...  Still learning...

John

On Wednesday, August 1, 2018 at 1:23:45 PM UTC-4, Hassan Schroeder wrote:
On Wed, Aug 1, 2018 at 9:06 AM, John Sanderbeck <[hidden email]> wrote:

> How do I define a set of radio buttons unique to each student

You'll need to include an identifier with each set of button names
(student id or something).

> with a set of options from an AttendanceStatus table?

If they're unlikely to change frequently or ever I'd just hardcode
them into the app. (You could always change that later.)

> I would also like to show them as actual buttons with bootstrap if possible...

Dunno -- bootstrap is just CSS right? I mean, we're talking about
"actual buttons" to start with...

--
Hassan Schroeder ------------------------ [hidden email]
twitter: @hassan
Consulting Availability : Silicon Valley or remote

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/e4a70f14-e89b-40c4-b904-5b96aa6e5b9c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Need guidance on an inline editing design

Joe Guerra
ok great.  I've started a little project.  Very easy took me about 1/2 hr so far.

It's an online quiz app, great for schools (or testing one's knowledge).

https://github.com/merlin2049er/onlinequiz

basically, it's a multiple choice database, add questions, and it retrieves the questions in random order.  

It's still a work in progress.


On Thursday, August 2, 2018 at 2:09:01 PM UTC-4, John Sanderbeck wrote:
It's part of a larger project so let me see if I can split the attendance portion out...   We use BitBucket because we are cheap...  :-)

John

On Thursday, August 2, 2018 at 10:06:23 AM UTC-4, Joe Guerra wrote:
Have you put your code up on github?  

I can give you a hand, I'm also learning rails, and run out of ideas / projects to work on.  



On Thursday, August 2, 2018 at 6:38:39 AM UTC-4, John Sanderbeck wrote:
Sorry...  Only been doing RoR code for about a year...  Still learning...

John

On Wednesday, August 1, 2018 at 1:23:45 PM UTC-4, Hassan Schroeder wrote:
On Wed, Aug 1, 2018 at 9:06 AM, John Sanderbeck <[hidden email]> wrote:

> How do I define a set of radio buttons unique to each student

You'll need to include an identifier with each set of button names
(student id or something).

> with a set of options from an AttendanceStatus table?

If they're unlikely to change frequently or ever I'd just hardcode
them into the app. (You could always change that later.)

> I would also like to show them as actual buttons with bootstrap if possible...

Dunno -- bootstrap is just CSS right? I mean, we're talking about
"actual buttons" to start with...

--
Hassan Schroeder ------------------------ [hidden email]
twitter: @hassan
Consulting Availability : Silicon Valley or remote

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/bbb6e3c2-9a2c-42c9-9f0f-5f15a2725154%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Need guidance on an inline editing design

John Sanderbeck
Ok, I'm close on the form...   Just can't figure out how to pass back a hash or array that I can use to write the records...  This is what I have in my form...

Basically I autocreate an attendance record each morning for all students with a :attendance_status of nil...  This list shows each student with a radio button of each AttendanceStatus they could possibly have.

I need to somehow join the Attendance record with the list so when it comes in I can update the ones that have an attendance status selected for them.

This is the do_attendance.html.erb form
<div class="page-title">Doing Attendance for <%= global_district_name %> - <%= global_building_name %> for <%= Date.current.strftime("%b %-d, %Y") %></div>
<%= form_tag submit_attendance_attendances_path, method: :put do %>
  <%= render(partial:'do_attendance_list') %>
  <div class="form-submit-buttons">
    <%= submit_tag 'Submit Attendance', class: 'btn btn-success' %>
    <%= link_to 'Cancel', attendances_path, class: 'btn btn-danger' %>
  </div>
<% end %>

This is the list section of the form
<div id="filterrific_results">
  <table class="pretty-table table-hover">
    <thead>
      <tr>
        <th>Student</th>
        <th colspan="4">Attendance</th>
      </tr>
    </thead>
    <tbody>
      <% @attendances.each do |attendance| %>
        <tr>
          <td><%= attendance.student.full_name %></td>
          <td>
            <div class="btn-group">
              <% AttendanceStatus.all.each do |a| %>
                  <div class="btn">
                    <%= radio_button_tag "attendance[" + attendance.id.to_s + "]", a.id, (a.id == attendance.attendance_status) %>
                    <%= label_tag a.status_name.titleize %>
                  </div>
              <% end %>
            </div>
          </td>
        </tr>
      <% end %>
    </tbody>
  </table>
  <%= page_entries_info @attendances %>
  <%= paginate @attendances, :remote => 'true' %>
</div>



On Thursday, August 2, 2018 at 2:13:21 PM UTC-4, Joe Guerra wrote:
ok great.  I've started a little project.  Very easy took me about 1/2 hr so far.

It's an online quiz app, great for schools (or testing one's knowledge).

<a href="https://github.com/merlin2049er/onlinequiz" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmerlin2049er%2Fonlinequiz\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF0t6Edy3qnMKo9tBsA8NOxrn4u6w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmerlin2049er%2Fonlinequiz\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF0t6Edy3qnMKo9tBsA8NOxrn4u6w&#39;;return true;">https://github.com/merlin2049er/onlinequiz

basically, it's a multiple choice database, add questions, and it retrieves the questions in random order.  

It's still a work in progress.


On Thursday, August 2, 2018 at 2:09:01 PM UTC-4, John Sanderbeck wrote:
It's part of a larger project so let me see if I can split the attendance portion out...   We use BitBucket because we are cheap...  :-)

John

On Thursday, August 2, 2018 at 10:06:23 AM UTC-4, Joe Guerra wrote:
Have you put your code up on github?  

I can give you a hand, I'm also learning rails, and run out of ideas / projects to work on.  



On Thursday, August 2, 2018 at 6:38:39 AM UTC-4, John Sanderbeck wrote:
Sorry...  Only been doing RoR code for about a year...  Still learning...

John

On Wednesday, August 1, 2018 at 1:23:45 PM UTC-4, Hassan Schroeder wrote:
On Wed, Aug 1, 2018 at 9:06 AM, John Sanderbeck <[hidden email]> wrote:

> How do I define a set of radio buttons unique to each student

You'll need to include an identifier with each set of button names
(student id or something).

> with a set of options from an AttendanceStatus table?

If they're unlikely to change frequently or ever I'd just hardcode
them into the app. (You could always change that later.)

> I would also like to show them as actual buttons with bootstrap if possible...

Dunno -- bootstrap is just CSS right? I mean, we're talking about
"actual buttons" to start with...

--
Hassan Schroeder ------------------------ [hidden email]
twitter: @hassan
Consulting Availability : Silicon Valley or remote

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/8cd8569b-7c6f-4b45-b012-64034a728a04%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Need guidance on an inline editing design

John Sanderbeck
Got it but I think I want to do it with Ajax instead...   :-)

One Click = 1 update....   Would be cleaner for the teachers...

John

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/4a95d5ac-aab3-48d6-893c-9a0e9bf4b3c6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.