The Thinkery

Not finding what you're looking for? Don't hesitate to contact us!

Before Posting...

Before posting questions in the forums, please be sure to read the FAQs by clicking on the FAQs link in the sidebar product menu. You must be logged in and have a valid subscription to access the SUPPORT FORUMS.
×
Support Policy Notice

As outlined in our Rules section (though never closely followed by our staff!), effective immediately we will no longer be taking time to provide customizations of our products.

Progress Bar for Contract from/to field

More
11 years 3 weeks ago - 11 years 3 weeks ago #5809 by migus
migus created the topic: Progress Bar for Contract from/to field
Did you like the countdown display?
OK, here is one more hack of the same template to show the progress bar of the Contract From/To field.


For implementation the code must be inserted in default.php in folder:
...home.../docs/components/com_projectlog/views/project/tmpl/
between lines:
<div class="right_details">
<span class="content_header"><?php echo JText::_('CONTRACT FROM TO'); ?>:</span><br />
<?php echo ($this->project->contract_from != '0000-00-00') ? $contract_from->toFormat('%d %b %Y' ) : '--N/A--'; ?>
 - 
<?php echo ($this->project->contract_to != '0000-00-00') ? $contract_to->toFormat('%d %b %Y' ) : '--N/A--'; ?>
//put here the code from attached file
</div>
<div class="right_details">
<span class="content_header"><?php echo JText::_('DEPLOYMENT FROM TO'); ?>:</span><br />
<?php echo $deploy_from->toFormat('%d %b %Y' ) . ' - ' . $deploy_to->toFormat('%d %b %Y' ); ?>
</div>

//There are comments in attach to help you configure appearance of the bar...
So you can make independent bars for some other fields (for instance Team Deployment):

NB: To make every next bar you have to rename $variables. And don't forget to make backups! ;)

Have a fun! :cheer:

Attachment prgrss_bar_hack.zip not found

Attachments:
Last Edit: 11 years 3 weeks ago by migus.

Please Log in or Create an account to join the conversation.

More
11 years 3 weeks ago #5811 by tim
tim replied the topic: Re: Progress Bar for Contract from/to field
very cool migus!

Thanks again for contributing to the community. If it's ok with you when we get some time we may take your additions and package them up as plugins or extensions for the product-- we'll keep your credits in the code.

Thanks

Please Log in or Create an account to join the conversation.

More
11 years 3 weeks ago - 11 years 3 weeks ago #5813 by migus
migus replied the topic: Re: Progress Bar for Contract from/to field
Of course, feel free. Open source you know :silly:
By the way...
I'm proud of you - at the first top place in Project & Task Management category on JED. :woohoo:
Why don't you add the language thumbs in the extension header there? Your PL is going to be popular among my friends in Russia :cheer:
Cheers, see you
Last Edit: 11 years 3 weeks ago by migus.

Please Log in or Create an account to join the conversation.

Moderators: vinny
Time to create page: 0.353 seconds