-
Notifications
You must be signed in to change notification settings - Fork 43
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
Allow task due date inline editing if no date #563
Conversation
- Added place holder text for Due date so the inline editing is available for nil due date
There was a problem hiding this 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> |
There was a problem hiding this comment.
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>
…_due_date with the date_modifier value
@vishwasja Thanks for all the help you give to Birmingham's school children!! |
Allow task due date inplace editing if no date #555
Fix event page New Task Form dropdown widths #554