Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-core
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
intranet-core
Commits
41bb6bfd
Commit
41bb6bfd
authored
Oct 22, 2021
by
Project Open
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Fixed portlet behavior
parent
e0fce1da
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
22 deletions
+48
-22
view.adp
www/companies/view.adp
+39
-22
view.tcl
www/companies/view.tcl
+9
-0
No files found.
www/companies/view.adp
View file @
41bb6bfd
<master
src="../master"
>
<master>
<property name="doc(title)">@company_name;literal@</property>
<property name="main_navbar_label">companies</property>
<property name="left_navbar">@left_navbar_html;literal@</property>
<property name="sub_navbar">@sub_navbar;literal@</property>
<!-- left - right - bottom design -->
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td valign="top" width="50%">
<%= [im_component_bay left] %>
</td>
<td width="2"> </td>
<td valign="top">
<!-- Component Bay Right -->
<%= [im_component_bay right] %>
<!-- End Component Bay Right -->
</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr><td>
<%= [im_component_bay bottom] %>
</td></tr>
</table>
<% if {"" eq $view_name || "standard" eq $view_name} { %>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr><td>
<%= [im_component_bay top] %>
</td></tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td valign="top" width="50%">
<%= [im_component_bay left] %>
</td>
<td width="2"> </td>
<td valign="top">
<%= [im_component_bay right] %>
</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr><td>
<%= [im_component_bay bottom] %>
</td></tr>
</table>
<% } elseif {"files" eq $view_name} { %>
<div id="position_filestorage_view_files">
<%= [im_component_insert "Companies Filestorage Component"] %>
</div>
<% } else { %>
<%= [im_component_page -plugin_id $plugin_id -return_url "/intranet/companies/view?company_id=$company_id"] %>
<% } %>
www/companies/view.tcl
View file @
41bb6bfd
...
...
@@ -27,6 +27,7 @@ ad_page_contract {
{
forum_order_by
""
}
show_all_correspondance_comments:integer,optional
{
plugin_id
""
}
{
view_name
""
}
}
# -----------------------------------------------------------
...
...
@@ -48,6 +49,14 @@ if {0 == $company_id} {
return
}
if
{
""
eq
$view
_name
}
{
if
{
""
eq
$plugin
_id
}
{
set view_name
"standard"
}
else
{
set view_name
"component"
}
}
# Check permissions. "See details" is an additional check for
# critical information
im_company_permissions
$user
_id
$company
_id view read write admin
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment