Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
c2968440
Commit
c2968440
authored
Aug 22, 2008
by
Richard Mansfield
Browse files
Add create view button on group/institution views pages
parent
0aa6064c
Changes
3
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/view.php
View file @
c2968440
...
...
@@ -1916,7 +1916,7 @@ function createview_submit(Pieform $form, $values) {
global
$USER
,
$SESSION
;
$group
=
isset
(
$values
[
'group'
])
?
(
int
)
$values
[
'group'
]
:
null
;
$institution
=
isset
(
$values
[
'institution'
])
?
(
int
)
$values
[
'institution'
]
:
null
;
$institution
=
isset
(
$values
[
'institution'
])
?
$values
[
'institution'
]
:
null
;
$templateid
=
isset
(
$values
[
'usetemplate'
])
?
(
int
)
$values
[
'usetemplate'
]
:
null
;
$owner
=
(
$group
||
$institution
)
?
null
:
$USER
->
get
(
'id'
);
...
...
htdocs/view/groupviews.php
View file @
c2968440
...
...
@@ -84,6 +84,7 @@ $smarty->assign('grouptabs', group_get_menu_tabs($group));
$smarty
->
assign
(
'member'
,
$member
);
$smarty
->
assign
(
'views'
,
$data
->
data
);
$smarty
->
assign
(
'pagination'
,
$pagination
[
'html'
]);
$smarty
->
assign
(
'createviewform'
,
pieform
(
create_view_form
(
$groupid
)));
if
(
$can_edit
)
{
// && !$shared) {
$smarty
->
display
(
'view/index.tpl'
);
...
...
htdocs/view/institutionviews.php
View file @
c2968440
...
...
@@ -77,6 +77,7 @@ $smarty->assign('INLINEJAVASCRIPT', $s['institutionselectorjs']);
$smarty
->
assign
(
'views'
,
$data
->
data
);
$smarty
->
assign
(
'institution'
,
$institution
);
$smarty
->
assign
(
'pagination'
,
$pagination
[
'html'
]);
$smarty
->
assign
(
'createviewform'
,
pieform
(
create_view_form
(
null
,
$institution
)));
$smarty
->
display
(
'view/index.tpl'
);
...
...
Write
Preview
Supports
Markdown
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