• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: How do I add delete Button

How do I add delete Button 10 years 10 months ago #27902

  • yoadiga
  • yoadiga's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
Hello

how can add delete Button to Submissions Directory, or replace edit to delete
please see the picture


The administrator has disabled public write access.

How do I add delete Button 10 years 9 months ago #28086

  • cosmin.cristea
  • cosmin.cristea's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 756
  • Thank you received: 144
You can try implementing the scenario provided in the following article : Adding a delete submission button in manage directories
My help is not official customer support. To receive your support, submit a ticket by clicking here
The administrator has disabled public write access.

How do I add delete Button 10 years 7 months ago #28901

  • ligi
  • ligi's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 3
Great, that works...it now shows delete after every submission.

However, when clicking the delete button , the entry is deleted straight away, without any warning. It would be great if a " Are you sure' warning could be implemented. Does anyone know how to do this?
Tnx.
The administrator has disabled public write access.

How do I add delete Button 10 years 7 months ago #28902

  • ligi
  • ligi's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 3
Worked it out

in the default_layout.php in the template override ( as suggested in www.rsjoomla.com/support/documentation/v...age-directories.html I changed the following line

<a href="<?php echo JRoute::_('index.php?option=com_rsform&formId='.$this->params->get('formId').'&action=delete&id='.$item->SubmissionId);
?>">Delete</a>


to

<a href="<?php echo JRoute::_('index.php?option=com_rsform&formId='.$this->params->get('formId').'&action=delete&id='.$item->SubmissionId);
?>" onclick="return (confirm('Are you sure?'));">Delete</a>

Now i do get a warning message before deleting the entry
The administrator has disabled public write access.
The following user(s) said Thank You: Gerard.Verheij, cosmin.cristea

How do I add delete Button 9 years 11 months ago #31268

  • Gerard.Verheij
  • Gerard.Verheij's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 12
  • Thank you received: 4
Great feature!

I placed a delete-icon (16x16 pixels PNG) in components/com_rsform/assets/images/delete.png, added the delete-warning and put the icon in between the view-icon and the pdf-icon. Also add the corresponding language overrides in your language: RSFP_SUBM_DIR_DELETE, RSFP_SUBM_DIR_DELETE_CONF and RSFP_SUBM_DIR_EDIT etc.

Thanks, Gerard

This is the combined code, from line 43 (in between the edit button and the PDF-button) in default-layout.php:
<a class="<?php echo $this->tooltipClass; ?> directoryDelete" title="<?php echo RSFormProHelper::getTooltipText(JText::_('RSFP_SUBM_DIR_DELETE')); ?>"href="<?php echo JRoute::_('index.php?option=com_rsform&formId='.$this->params->get('formId').'&action=delete&id='.$item->SubmissionId);?>" onclick="return (confirm('<?php echo RSFormProHelper::getTooltipText(JText::_('RSFP_SUBM_DIR_DELETE_CONF')); ?>'));">
<img src="<?php echo JURI::root().'components/com_rsform/assets/images/delete.png'; ?>" alt="" />
</a>
Last Edit: 9 years 11 months ago by Gerard.Verheij.
The administrator has disabled public write access.

How do I add delete Button 9 years 7 months ago #32325

  • jon23
  • jon23's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
I am having some issues with this added delete button. It is causing issues for users who do NOT have edit rights. Anytime you hover over any <a> element, it applies the style value "display:none;" and the item disappears until a page refresh.

Also, I would like to add the hover label over the Delete button, just like the View and PDF buttons. I am unsure where this script is located or the changes needed.
The administrator has disabled public write access.

How do I add delete Button 9 years 2 weeks ago #34825

Did you figure out the disappearing button issue? I'm having that as well.
The administrator has disabled public write access.

How do I add delete Button 9 years 2 weeks ago #34826

  • jon23
  • jon23's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
Nope. I never figured out why it happens. Just learned to live with it.
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!