Hi

Thanks alot for this great module. Is there anyway to include Mark Finished button in Views Fields and also it'll be really cool whenever user click that button and the title and details become strikethrough.

Regards
Hlan

Comments

AlexisWilke’s picture

It certainly would be possible to add the buttons as a view field.

Now, I'm not too sure about the strike-through. The title is being generated by the node. Have you seen something in views like a "Start" and "End" marker? Then we could create a start marker with a class with the current state, which is what I do for the default Block. Then the end marker would close that <div> tag.

Thank you.
Alexis

hlan’s picture

Thanks Alexis. As I have zero knowledge of php, is there anyway to create a patch for views integration for Mark Finish link?

Regards
Hlan

AlexisWilke’s picture

Title: Mark Finished Button in Views with Strikethrough » Mark Finished Button in Views with Strikethrough (buttons done.)
Assigned: Unassigned » AlexisWilke

Hi Hlan,

The buttons are now available in the 1.x-dev version. It will appear with the next 12h.

Thank you.
Alexis

hlan’s picture

Thanks alot Alexis. It works perfect. I'll try and get that strikethrough function and will contribute it back here.

Regards
Hlan

apmsooner’s picture

I've tried using the buttons in a view and it only shows up for one to do item and not the whole list of items. Also, is there a way to make the button not show once marked finished?

apmsooner’s picture

The other weird thing is when I go back to the view that has the buttons field, it may not even show up as a field in the view anymore. Perhaps I'll try uninstalling and reinstalling the module and see if theres an update to the database that I'm missing.

AlexisWilke’s picture

apmsooner,

Ah! I should use the correct value here. 8-)

I checked in a change to the button so it checks the status and not the priority to know whether the button should be hidden or shown.

Which version of views are you using? I'm running on 3.x right now... I do see the Button and other fields no problem except when I want to move them up or down. Then the up/down interface breaks my selection. Very annoying. I reported that problem to the views issue queue. You may want to post a message there with your own problem.

#839236: Rearranging fields when a field is named "button" (or some other known UI item)

Thank you.
Alexis Wilke

apmsooner’s picture

I'm on views 6.x-2.11.

AlexisWilke’s picture

Okay, I'm checking a version of the Views that strikes through the title defined as:

Task brief description

So I would think I'm done on this issue. Let me know if you have any problem seeing the strike through with 1.x-dev.

Also, this will mark the title with a SPAN and different names defined after the current status. This means you can now style each status in a different way (i.e. in progress could be green, not started could be orange, finished could be blue, etc.)

Thank you.
Alexis

AlexisWilke’s picture

Status: Active » Fixed

Alright the last changes are in 1.4. I'll mark this as fixed for now.

Thank you.
Alexis

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.