Skip to content
Snippets Groups Projects
Commit cf35c8ea authored by Peter Rotich's avatar Peter Rotich
Browse files

Merge pull request #955 from greezybacon/feature/change-organization


orbs: Allow inline edit, change, and creation

Reviewed-By: default avatarPeter Rotich <peter@osticket.com>
parents 40a7616b eecfb4cf
No related branches found
No related tags found
No related merge requests found
......@@ -14,9 +14,10 @@ if ($info['error']) {
<div id="org-profile" style="display:<?php echo $forms ? 'none' : 'block'; ?>;margin:5px;">
<i class="icon-group icon-4x pull-left icon-border"></i>
<?php
if ($account) { ?>
if ($user) { ?>
<a class="action-button pull-right user-action" style="overflow:inherit"
href="#users/<?php echo $account->getUserId(); ?>/org/<?php echo $org->getId(); ?>" ><i class="icon-user"></i> Change Organization</a>
href="#users/<?php echo $user->getId(); ?>/org/<?php echo $org->getId(); ?>" ><i class="icon-user"></i> Change</a>
<a class="action-button pull-right" href="orgs.php?id=<?php echo $org->getId(); ?>"><i class="icon-share"></i> Manage</a>
<?php
} ?>
<div><b><a href="#" id="editorg"><i class="icon-edit"></i>&nbsp;<?php
......
......@@ -84,8 +84,8 @@ $org = $user->getOrganization();
<span id="user-<?php echo $user->getId(); ?>-org">
<?php
if ($org)
echo sprintf('<a href="orgs.php?id=%d">%s</a>',
$org->getId(), $org->getName());
echo sprintf('<a href="#users/%d/org" class="user-action">%s</a>',
$user->getId(), $org->getName());
else
echo sprintf('<a href="#users/%d/org"
class="user-action">Add Organization</a>',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment