Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow task due date inline editing if no date #563

Merged

Conversation

vishwasja
Copy link
Contributor

@vishwasja vishwasja commented Sep 13, 2017

- Added place holder text for Due date so the inline editing is available for nil due date
Copy link
Contributor

@anthonycrumley anthonycrumley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vishwasja Please see comment on #formatted_due_date.

@@ -123,7 +123,7 @@
data-source="<%= User.editable_options %>"><%= task.owner.try(:email) %></a></td>
<td><%= task.network_event.schools.map {|school| school.name}.join(", ") %></td>
<td class="date-cell" id="date_<%= task.id %>">
<span class="date-view"><%= task.formatted_due_date %></span>
<span class="date-view"><%= task.formatted_due_date.present? ? task.formatted_due_date : 'Add Due Date' %></span>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vishwasja It may be better to modify NetworkEventTask#formatted_due_date to return text when no date has been set. The date_modifier field would probably be better text since it would give an indication of when the date would be relative to the event. See example of an event with the date_modifier text below.

 => #<NetworkEventTask id: 65, name: "Schedule transportation", completed_at: nil, common_task_id: 2, network_event_id: 22, user_id: 1, created_at: "2017-09-13 17:13:49", updated_at: "2017-09-13 17:13:49", due_date: nil, date_modifier: "1 week before event", owner_id: nil> 

@anthonycrumley anthonycrumley merged commit a2ddd32 into edbirmingham:master Sep 13, 2017
@anthonycrumley
Copy link
Contributor

@vishwasja Thanks for all the help you give to Birmingham's school children!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants