Updated URLs to match the new part view
This commit is contained in:
parent
4f33fb8a8d
commit
5743219a1c
@ -43,4 +43,9 @@ table.clubs > tbody > tr > th
|
||||
.clubs_content_row:hover > a > .edit-icon
|
||||
{
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
|
||||
form.clubs-part, form.clubs-part > input
|
||||
{
|
||||
margin: 0pt;
|
||||
}
|
||||
|
@ -22,7 +22,7 @@ abstract class ClubsHelperParts
|
||||
$ret .= "<input type='hidden' name='partname' value='$partname'>";
|
||||
$ret .= $this->getEditMarkup();
|
||||
$ret .= ' <a class="clubs-save" href="#"><span class="icon-ok"></span></a> ';
|
||||
$ret .= '<a class="clubs-abort" href="index.php?option=com_clubs&view=mypage&layout=parts&type='.$partname.'"><span class="icon-cancel-2"></span></a>';
|
||||
$ret .= '<a class="clubs-abort" href="index.php?option=com_clubs&view=part&type='.$partname.'"><span class="icon-cancel-2"></span></a>';
|
||||
$ret .= '</form>';
|
||||
|
||||
return $ret;
|
||||
@ -50,7 +50,7 @@ abstract class ClubsHelperParts
|
||||
{
|
||||
$ret = '';
|
||||
|
||||
$ret = "<a class='clubs-edit' href='index.php?option=com_clubs&view=mypage&layout=parts&mode=edit&type=" . $this->getPartName();
|
||||
$ret = "<a class='clubs-edit' href='index.php?option=com_clubs&view=part&mode=edit&type=" . $this->getPartName(). "'>";
|
||||
$ret .= $this->getViewContent();
|
||||
$ret .= "<span class='icon-apply clubs-hidden edit-icon' style='font-size: 200%; margin-left: 0.75em;'></span></a>";
|
||||
|
||||
|
@ -13,10 +13,10 @@ defined('_JEXEC') or die;
|
||||
<div class='clubs_row'>
|
||||
<div class='clubs_title_row'>Name</div>
|
||||
<div class='clubs_content_row'>
|
||||
<a class='clubs-edit' href='index.php?option=com_clubs&view=mypage&layout=parts&mode=edit&type=name'>
|
||||
<?php echo htmlentities($this->me->getName()); ?>
|
||||
<span class='icon-apply clubs-hidden edit-icon' style='font-size: 200%; margin-left: 0.75em;'></span>
|
||||
</a>
|
||||
<?php
|
||||
$partHandler = new ClubsPartUserName();
|
||||
echo $partHandler->getViewPart();
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -2,8 +2,6 @@
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\MVC\View\HtmlView;
|
||||
use Joomla\CMS\Uri\Uri;
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
|
||||
// No direct access.
|
||||
defined('_JEXEC') or die;
|
||||
@ -13,16 +11,8 @@ class ClubsViewPart extends HtmlView
|
||||
|
||||
public function display($tpl = null)
|
||||
{
|
||||
// $auth = new ClubsHelperAuth();
|
||||
// $this->me = $auth->getCurrentUser();
|
||||
// TODO ACLs prüfen?
|
||||
|
||||
// $this->clubsPresident = $this->me->getPresidentClubs();
|
||||
// $this->positions = $this->me->getPositions();
|
||||
|
||||
// HTMLHelper::_('jquery.framework');
|
||||
// Factory::getDocument()->addScript(Uri::base(true) . "components/com_clubs/js/edit.js");
|
||||
// parent::display($tpl);
|
||||
|
||||
$app = Factory::getApplication();
|
||||
$input = $app->input;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user