Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
mahara
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
mahara
mahara
Commits
5470b39d
Commit
5470b39d
authored
Jun 24, 2015
by
Robert Lyon
Committed by
Gerrit Code Review
Jun 24, 2015
Browse files
Options
Browse Files
Download
Plain Diff
Merge "Bootstrap bug fixes (bootstrap) BUG 1465107"
parents
2c6ea727
50031f15
Changes
35
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
35 changed files
with
1167 additions
and
1031 deletions
+1167
-1031
htdocs/account/delete.php
htdocs/account/delete.php
+1
-1
htdocs/admin/groups/delete.php
htdocs/admin/groups/delete.php
+1
-0
htdocs/admin/groups/manage.php
htdocs/admin/groups/manage.php
+8
-4
htdocs/admin/index.php
htdocs/admin/index.php
+1
-1
htdocs/admin/site/options.php
htdocs/admin/site/options.php
+4
-3
htdocs/admin/users/addauthority.php
htdocs/admin/users/addauthority.php
+1
-0
htdocs/admin/users/institutions.php
htdocs/admin/users/institutions.php
+16
-10
htdocs/artefact/internal/socialprofile.php
htdocs/artefact/internal/socialprofile.php
+1
-1
htdocs/auth/browserid/lib.php
htdocs/auth/browserid/lib.php
+1
-1
htdocs/auth/imap/lib.php
htdocs/auth/imap/lib.php
+1
-1
htdocs/auth/ldap/lib.php
htdocs/auth/ldap/lib.php
+1
-1
htdocs/auth/saml/lib.php
htdocs/auth/saml/lib.php
+1
-1
htdocs/auth/xmlrpc/lib.php
htdocs/auth/xmlrpc/lib.php
+1
-1
htdocs/export/index.php
htdocs/export/index.php
+1
-4
htdocs/lib/pieforms/pieform.php
htdocs/lib/pieforms/pieform.php
+2
-1
htdocs/lib/pieforms/pieform/elements/bytes.php
htdocs/lib/pieforms/pieform/elements/bytes.php
+16
-7
htdocs/theme/default/style/style.css
htdocs/theme/default/style/style.css
+899
-894
htdocs/theme/raw/plugintype/artefact/plans/templates/delete.tpl
.../theme/raw/plugintype/artefact/plans/templates/delete.tpl
+6
-4
htdocs/theme/raw/sass/form/_dropdown-group.scss
htdocs/theme/raw/sass/form/_dropdown-group.scss
+5
-1
htdocs/theme/raw/sass/form/_form-group.scss
htdocs/theme/raw/sass/form/_form-group.scss
+6
-0
htdocs/theme/raw/sass/utilities/_bootstrap-variables.scss
htdocs/theme/raw/sass/utilities/_bootstrap-variables.scss
+4
-4
htdocs/theme/raw/style/style.css
htdocs/theme/raw/style/style.css
+59
-2
htdocs/theme/raw/style/tinymce.css
htdocs/theme/raw/style/tinymce.css
+5
-5
htdocs/theme/raw/templates/account/activity/index.tpl
htdocs/theme/raw/templates/account/activity/index.tpl
+1
-1
htdocs/theme/raw/templates/account/delete.tpl
htdocs/theme/raw/templates/account/delete.tpl
+8
-9
htdocs/theme/raw/templates/admin/groups/manage.tpl
htdocs/theme/raw/templates/admin/groups/manage.tpl
+13
-9
htdocs/theme/raw/templates/admin/users/addauthority.tpl
htdocs/theme/raw/templates/admin/users/addauthority.tpl
+8
-4
htdocs/theme/raw/templates/admin/users/institutions.tpl
htdocs/theme/raw/templates/admin/users/institutions.tpl
+34
-25
htdocs/theme/raw/templates/collection/delete.tpl
htdocs/theme/raw/templates/collection/delete.tpl
+6
-3
htdocs/theme/raw/templates/form.tpl
htdocs/theme/raw/templates/form.tpl
+4
-2
htdocs/theme/raw/templates/form/authlist.tpl
htdocs/theme/raw/templates/form/authlist.tpl
+22
-8
htdocs/theme/raw/templates/group/delete.tpl
htdocs/theme/raw/templates/group/delete.tpl
+8
-4
htdocs/theme/raw/templates/interaction/delete.tpl
htdocs/theme/raw/templates/interaction/delete.tpl
+4
-2
htdocs/theme/raw/templates/skin/delete.tpl
htdocs/theme/raw/templates/skin/delete.tpl
+5
-3
htdocs/theme/raw/templates/view/delete.tpl
htdocs/theme/raw/templates/view/delete.tpl
+13
-14
No files found.
htdocs/account/delete.php
View file @
5470b39d
...
@@ -26,7 +26,7 @@ $deleteform = pieform(array(
...
@@ -26,7 +26,7 @@ $deleteform = pieform(array(
'pluginname'
=>
'account'
,
'pluginname'
=>
'account'
,
'elements'
=>
array
(
'elements'
=>
array
(
'submit'
=>
array
(
'submit'
=>
array
(
'class'
=>
'btn btn-d
anger
'
,
'class'
=>
'btn btn-d
efault
'
,
'type'
=>
'submit'
,
'type'
=>
'submit'
,
'value'
=>
get_string
(
'deleteaccount'
,
'mahara'
,
display_username
(
$USER
),
full_name
(
$USER
)),
'value'
=>
get_string
(
'deleteaccount'
,
'mahara'
,
display_username
(
$USER
),
full_name
(
$USER
)),
),
),
...
...
htdocs/admin/groups/delete.php
View file @
5470b39d
...
@@ -29,6 +29,7 @@ $form = pieform(array(
...
@@ -29,6 +29,7 @@ $form = pieform(array(
'elements'
=>
array
(
'elements'
=>
array
(
'submit'
=>
array
(
'submit'
=>
array
(
'type'
=>
'submitcancel'
,
'type'
=>
'submitcancel'
,
'class'
=>
'btn btn-default'
,
'value'
=>
array
(
get_string
(
'yes'
),
get_string
(
'no'
)),
'value'
=>
array
(
get_string
(
'yes'
),
get_string
(
'no'
)),
'goto'
=>
get_config
(
'wwwroot'
)
.
'admin/groups/groups.php'
,
'goto'
=>
get_config
(
'wwwroot'
)
.
'admin/groups/groups.php'
,
)
)
...
...
htdocs/admin/groups/manage.php
View file @
5470b39d
...
@@ -22,6 +22,8 @@ define('TITLE', get_string('administergroups', 'admin'));
...
@@ -22,6 +22,8 @@ define('TITLE', get_string('administergroups', 'admin'));
$quotasform
=
pieform
(
array
(
$quotasform
=
pieform
(
array
(
'name'
=>
'groupquotasform'
,
'name'
=>
'groupquotasform'
,
'class'
=>
'form-inline'
,
'renderer'
=>
'div'
,
'elements'
=>
array
(
'elements'
=>
array
(
'groupid'
=>
array
(
'groupid'
=>
array
(
'type'
=>
'hidden'
,
'type'
=>
'hidden'
,
...
@@ -30,13 +32,14 @@ $quotasform = pieform(array(
...
@@ -30,13 +32,14 @@ $quotasform = pieform(array(
'quota'
=>
array
(
'quota'
=>
array
(
'type'
=>
'bytes'
,
'type'
=>
'bytes'
,
'title'
=>
get_string
(
'filequota1'
,
'admin'
),
'title'
=>
get_string
(
'filequota1'
,
'admin'
),
'description'
=>
get_string
(
'groupfilequotadescription'
,
'admin'
),
'defaultvalue'
=>
$group
->
quota
,
'defaultvalue'
=>
$group
->
quota
,
),
),
'submit'
=>
array
(
'submit'
=>
array
(
'type'
=>
'submit'
,
'type'
=>
'button'
,
'usebuttontag'
=>
true
,
'class'
=>
'btn btn-primary no-label'
,
'value'
=>
get_string
(
'save'
),
'value'
=>
get_string
(
'save'
),
)
,
)
),
),
));
));
...
@@ -73,7 +76,7 @@ $admins = get_column_sql(
...
@@ -73,7 +76,7 @@ $admins = get_column_sql(
$groupadminsform
=
pieform
(
array
(
$groupadminsform
=
pieform
(
array
(
'name'
=>
'groupadminsform'
,
'name'
=>
'groupadminsform'
,
'renderer'
=>
'
table
'
,
'renderer'
=>
'
div
'
,
'plugintype'
=>
'core'
,
'plugintype'
=>
'core'
,
'pluginname'
=>
'admin'
,
'pluginname'
=>
'admin'
,
'elements'
=>
array
(
'elements'
=>
array
(
...
@@ -86,6 +89,7 @@ $groupadminsform = pieform(array(
...
@@ -86,6 +89,7 @@ $groupadminsform = pieform(array(
),
),
'submit'
=>
array
(
'submit'
=>
array
(
'type'
=>
'submit'
,
'type'
=>
'submit'
,
'class'
=>
'btn btn-success'
,
'value'
=>
get_string
(
'save'
),
'value'
=>
get_string
(
'save'
),
),
),
),
),
...
...
htdocs/admin/index.php
View file @
5470b39d
...
@@ -54,7 +54,7 @@ $closeform = pieform(array(
...
@@ -54,7 +54,7 @@ $closeform = pieform(array(
'submit'
=>
array
(
'submit'
=>
array
(
'type'
=>
'submit'
,
'type'
=>
'submit'
,
'value'
=>
get_string
(
$closed
?
'Open'
:
'Close'
,
'admin'
),
'value'
=>
get_string
(
$closed
?
'Open'
:
'Close'
,
'admin'
),
'class'
=>
$closed
?
'btn btn-success'
:
'btn btn-d
anger
'
'class'
=>
$closed
?
'btn btn-success'
:
'btn btn-d
efault
'
),
),
),
),
));
));
...
...
htdocs/admin/site/options.php
View file @
5470b39d
...
@@ -730,7 +730,7 @@ $siteoptionform = array(
...
@@ -730,7 +730,7 @@ $siteoptionform = array(
),
),
'loggingsettings'
=>
array
(
'loggingsettings'
=>
array
(
'iconclass'
=>
'exclamation-triangle'
,
'iconclass'
=>
'exclamation-triangle'
,
'class'
=>
'last'
,
'class'
=>
'last
mbxl
'
,
'type'
=>
'fieldset'
,
'type'
=>
'fieldset'
,
'collapsible'
=>
true
,
'collapsible'
=>
true
,
'collapsed'
=>
true
,
'collapsed'
=>
true
,
...
@@ -764,8 +764,9 @@ $siteoptionform = array(
...
@@ -764,8 +764,9 @@ $siteoptionform = array(
);
);
$siteoptionform
[
'elements'
][
'submit'
]
=
array
(
$siteoptionform
[
'elements'
][
'submit'
]
=
array
(
'type'
=>
'submit'
,
'type'
=>
'button'
,
'class'
=>
'btn btn-success mtm'
,
'usebuttontag'
=>
true
,
'class'
=>
'btn btn-success'
,
'value'
=>
get_string
(
'updatesiteoptions'
,
'admin'
)
'value'
=>
get_string
(
'updatesiteoptions'
,
'admin'
)
);
);
...
...
htdocs/admin/users/addauthority.php
View file @
5470b39d
...
@@ -79,6 +79,7 @@ if ($institution && $plugin) {
...
@@ -79,6 +79,7 @@ if ($institution && $plugin) {
$form
[
'elements'
][
'submit'
]
=
array
(
$form
[
'elements'
][
'submit'
]
=
array
(
'type'
=>
'submitcancel'
,
'type'
=>
'submitcancel'
,
'class'
=>
'btn btn-success'
,
'value'
=>
array
(
get_string
(
'submit'
),
get_string
(
'cancel'
)),
'value'
=>
array
(
get_string
(
'submit'
),
get_string
(
'cancel'
)),
'goto'
=>
'addauthority.php?c=1'
'goto'
=>
'addauthority.php?c=1'
);
);
...
...
htdocs/admin/users/institutions.php
View file @
5470b39d
...
@@ -189,6 +189,7 @@ if ($institution || $add) {
...
@@ -189,6 +189,7 @@ if ($institution || $add) {
),
),
'submit'
=>
array
(
'submit'
=>
array
(
'type'
=>
'submitcancel'
,
'type'
=>
'submitcancel'
,
'class'
=>
'btn btn-default'
,
'value'
=>
array
(
get_string
(
'yes'
),
get_string
(
'no'
))
'value'
=>
array
(
get_string
(
'yes'
),
get_string
(
'no'
))
)
)
)
)
...
@@ -532,6 +533,7 @@ if ($institution || $add) {
...
@@ -532,6 +533,7 @@ if ($institution || $add) {
$elements
[
'lockedfields'
]
=
array
(
$elements
[
'lockedfields'
]
=
array
(
'type'
=>
'fieldset'
,
'type'
=>
'fieldset'
,
'class'
=>
'last'
,
'legend'
=>
get_string
(
'Lockedfields'
,
'admin'
),
'legend'
=>
get_string
(
'Lockedfields'
,
'admin'
),
'collapsible'
=>
true
,
'collapsible'
=>
true
,
'collapsed'
=>
true
,
'collapsed'
=>
true
,
...
@@ -551,11 +553,6 @@ if ($institution || $add) {
...
@@ -551,11 +553,6 @@ if ($institution || $add) {
'disabled'
=>
$institution
!=
'mahara'
&&
in_array
(
$field
,
$sitelockedfields
)
'disabled'
=>
$institution
!=
'mahara'
&&
in_array
(
$field
,
$sitelockedfields
)
);
);
}
}
$elements
[
'lockedfieldshelp'
]
=
array
(
'value'
=>
'<tr id="lockedfieldshelp"><th colspan="2">'
.
get_help_icon
(
'core'
,
'admin'
,
'institution'
,
'lockedfields'
)
.
'</th></tr>'
);
// Check for active plugins institution settings.
// Check for active plugins institution settings.
$elements
[
'pluginsfields'
]
=
array
(
$elements
[
'pluginsfields'
]
=
array
(
...
@@ -582,6 +579,7 @@ if ($institution || $add) {
...
@@ -582,6 +579,7 @@ if ($institution || $add) {
$elements
[
'submit'
]
=
array
(
$elements
[
'submit'
]
=
array
(
'type'
=>
'submitcancel'
,
'type'
=>
'submitcancel'
,
'class'
=>
'btn btn-success'
,
'value'
=>
array
(
get_string
(
'submit'
),
get_string
(
'cancel'
))
'value'
=>
array
(
get_string
(
'submit'
),
get_string
(
'cancel'
))
);
);
...
@@ -1059,6 +1057,8 @@ if ($institution && $institution != 'mahara') {
...
@@ -1059,6 +1057,8 @@ if ($institution && $institution != 'mahara') {
$suspendformdef
=
array
(
$suspendformdef
=
array
(
'name'
=>
'institution_suspend'
,
'name'
=>
'institution_suspend'
,
'plugintype'
=>
'core'
,
'plugintype'
=>
'core'
,
'renderer'
=>
'div'
,
'class'
=>
'form-as-button last'
,
'pluginname'
=>
'admin'
,
'pluginname'
=>
'admin'
,
'elements'
=>
array
(
'elements'
=>
array
(
'i'
=>
array
(
'i'
=>
array
(
...
@@ -1066,9 +1066,10 @@ if ($institution && $institution != 'mahara') {
...
@@ -1066,9 +1066,10 @@ if ($institution && $institution != 'mahara') {
'value'
=>
$institution
,
'value'
=>
$institution
,
),
),
'submit'
=>
array
(
'submit'
=>
array
(
'type'
=>
'submit'
,
'type'
=>
'button'
,
'value'
=>
get_string
(
'suspendinstitution'
,
'admin'
),
'usebuttontag'
=>
true
,
'description'
=>
get_string
(
'suspendinstitutiondescription'
,
'admin'
),
'class'
=>
'btn btn-default'
,
'value'
=>
'<span class="icon icon-lg text-danger icon-ban prm"></span>'
.
get_string
(
'suspendinstitution'
,
'admin'
),
),
),
)
)
);
);
...
@@ -1079,6 +1080,7 @@ if ($institution && $institution != 'mahara') {
...
@@ -1079,6 +1080,7 @@ if ($institution && $institution != 'mahara') {
$suspendformdef
=
array
(
$suspendformdef
=
array
(
'name'
=>
'institution_unsuspend'
,
'name'
=>
'institution_unsuspend'
,
'plugintype'
=>
'core'
,
'plugintype'
=>
'core'
,
'renderer'
=>
'div'
,
'pluginname'
=>
'admin'
,
'pluginname'
=>
'admin'
,
'elements'
=>
array
(
'elements'
=>
array
(
'i'
=>
array
(
'i'
=>
array
(
...
@@ -1086,8 +1088,10 @@ if ($institution && $institution != 'mahara') {
...
@@ -1086,8 +1088,10 @@ if ($institution && $institution != 'mahara') {
'value'
=>
$institution
,
'value'
=>
$institution
,
),
),
'submit'
=>
array
(
'submit'
=>
array
(
'type'
=>
'submit'
,
'type'
=>
'button'
,
'value'
=>
get_string
(
'unsuspendinstitution'
,
'admin'
),
'usebuttontag'
=>
true
,
'class'
=>
'btn btn-default'
,
'value'
=>
'<span class="icon icon-lg text-success icon-check prm"></span>'
.
get_string
(
'unsuspendinstitution'
,
'admin'
),
'description'
=>
get_string
(
'unsuspendinstitutiondescription'
,
'admin'
),
'description'
=>
get_string
(
'unsuspendinstitutiondescription'
,
'admin'
),
),
),
)
)
...
@@ -1136,6 +1140,7 @@ jQuery(function($) {
...
@@ -1136,6 +1140,7 @@ jQuery(function($) {
$smarty
=
smarty
();
$smarty
=
smarty
();
setpageicon
(
$smarty
,
'icon-university'
);
setpageicon
(
$smarty
,
'icon-university'
);
$smarty
->
assign
(
'INLINEJAVASCRIPT'
,
$themeoptionsjs
);
$smarty
->
assign
(
'INLINEJAVASCRIPT'
,
$themeoptionsjs
);
$smarty
->
assign
(
'institution_form'
,
$institutionform
);
$smarty
->
assign
(
'institution_form'
,
$institutionform
);
$smarty
->
assign
(
'instancestring'
,
$instancestring
);
$smarty
->
assign
(
'instancestring'
,
$instancestring
);
...
@@ -1154,6 +1159,7 @@ if (isset($suspended)) {
...
@@ -1154,6 +1159,7 @@ if (isset($suspended)) {
}
}
$smarty
->
assign
(
'PAGEHEADING'
,
get_string
(
'admininstitutions'
,
'admin'
));
$smarty
->
assign
(
'PAGEHEADING'
,
get_string
(
'admininstitutions'
,
'admin'
));
$smarty
->
assign
(
'subsectionheading'
,
get_field
(
'institution'
,
'displayname'
,
'name'
,
$institution
));
$smarty
->
display
(
'admin/users/institutions.tpl'
);
$smarty
->
display
(
'admin/users/institutions.tpl'
);
function
theme_sort
(
$a
,
$b
)
{
function
theme_sort
(
$a
,
$b
)
{
...
...
htdocs/artefact/internal/socialprofile.php
View file @
5470b39d
...
@@ -56,7 +56,7 @@ if ($delete) {
...
@@ -56,7 +56,7 @@ if ($delete) {
'elements'
=>
array
(
'elements'
=>
array
(
'submit'
=>
array
(
'submit'
=>
array
(
'type'
=>
'submitcancel'
,
'type'
=>
'submitcancel'
,
'class'
=>
'btn btn-d
anger
'
,
'class'
=>
'btn btn-d
efault
'
,
'value'
=>
array
(
get_string
(
'deleteprofile'
,
'artefact.internal'
),
get_string
(
'cancel'
)),
'value'
=>
array
(
get_string
(
'deleteprofile'
,
'artefact.internal'
),
get_string
(
'cancel'
)),
'goto'
=>
get_config
(
'wwwroot'
)
.
'/artefact/internal/index.php?fs=social'
,
'goto'
=>
get_config
(
'wwwroot'
)
.
'/artefact/internal/index.php?fs=social'
,
),
),
...
...
htdocs/auth/browserid/lib.php
View file @
5470b39d
...
@@ -154,7 +154,7 @@ class PluginAuthBrowserid extends PluginAuth {
...
@@ -154,7 +154,7 @@ class PluginAuthBrowserid extends PluginAuth {
return
array
(
return
array
(
'elements'
=>
$elements
,
'elements'
=>
$elements
,
'renderer'
=>
'
table
'
'renderer'
=>
'
div
'
);
);
}
}
...
...
htdocs/auth/imap/lib.php
View file @
5470b39d
...
@@ -210,7 +210,7 @@ class PluginAuthImap extends PluginAuth {
...
@@ -210,7 +210,7 @@ class PluginAuthImap extends PluginAuth {
return
array
(
return
array
(
'elements'
=>
$elements
,
'elements'
=>
$elements
,
'renderer'
=>
'
table
'
'renderer'
=>
'
div
'
);
);
}
}
...
...
htdocs/auth/ldap/lib.php
View file @
5470b39d
...
@@ -1967,7 +1967,7 @@ class PluginAuthLdap extends PluginAuth {
...
@@ -1967,7 +1967,7 @@ class PluginAuthLdap extends PluginAuth {
return
array
(
return
array
(
'elements'
=>
$elements
,
'elements'
=>
$elements
,
'renderer'
=>
'
table
'
'renderer'
=>
'
div
'
);
);
}
}
...
...
htdocs/auth/saml/lib.php
View file @
5470b39d
...
@@ -462,7 +462,7 @@ class PluginAuthSaml extends PluginAuth {
...
@@ -462,7 +462,7 @@ class PluginAuthSaml extends PluginAuth {
return
array
(
return
array
(
'elements'
=>
$elements
,
'elements'
=>
$elements
,
'renderer'
=>
'
table
'
'renderer'
=>
'
div
'
);
);
}
}
...
...
htdocs/auth/xmlrpc/lib.php
View file @
5470b39d
...
@@ -835,7 +835,7 @@ class PluginAuthXmlrpc extends PluginAuth {
...
@@ -835,7 +835,7 @@ class PluginAuthXmlrpc extends PluginAuth {
return
array
(
return
array
(
'elements'
=>
$elements
,
'elements'
=>
$elements
,
'renderer'
=>
'
table
'
'renderer'
=>
'
div
'
);
);
}
}
...
...
htdocs/export/index.php
View file @
5470b39d
...
@@ -204,10 +204,7 @@ function export_submit(Pieform $form, $values) {
...
@@ -204,10 +204,7 @@ function export_submit(Pieform $form, $values) {
}
}
$smarty
=
smarty
(
$smarty
=
smarty
(
$jsfiles
,
$jsfiles
array
(
'<link rel="stylesheet" type="text/css" href="'
.
append_version_number
(
get_config
(
'wwwroot'
)
.
'theme/views.css'
)
.
'">'
),
array
(),
array
(
'stylesheets'
=>
array
(
'style/views.css'
))
);
);
$smarty
->
assign
(
'PAGEHEADING'
,
TITLE
);
$smarty
->
assign
(
'PAGEHEADING'
,
TITLE
);
$smarty
->
assign
(
'pagedescription'
,
get_string
(
'exportportfoliodescription'
,
'export'
));
$smarty
->
assign
(
'pagedescription'
,
get_string
(
'exportportfoliodescription'
,
'export'
));
...
...
htdocs/lib/pieforms/pieform.php
View file @
5470b39d
...
@@ -1496,7 +1496,8 @@ EOF;
...
@@ -1496,7 +1496,8 @@ EOF;
else
{
else
{
$labelclass
=
''
;
$labelclass
=
''
;
}
}
$nolabeltypes
=
array
(
'radio'
,
'emaillist'
,
'date'
,
'files'
,
'checkboxes'
);
$nolabeltypes
=
array
(
'radio'
,
'emaillist'
,
'date'
,
'files'
,
'checkboxes'
,
'bytes'
);
if
(
!
empty
(
$element
[
'nolabel'
])
||
in_array
(
$element
[
'type'
],
$nolabeltypes
))
{
if
(
!
empty
(
$element
[
'nolabel'
])
||
in_array
(
$element
[
'type'
],
$nolabeltypes
))
{
// Don't bother with a label for the element.
// Don't bother with a label for the element.
// Special 'nolabeltypes' have their own label(s) added direct to the form field(s).
// Special 'nolabeltypes' have their own label(s) added direct to the form field(s).
...
...
htdocs/lib/pieforms/pieform/elements/bytes.php
View file @
5470b39d
...
@@ -65,16 +65,19 @@ function pieform_element_bytes(Pieform $form, $element) {/*{{{*/
...
@@ -65,16 +65,19 @@ function pieform_element_bytes(Pieform $form, $element) {/*{{{*/
// @todo probably create with an actual input element, as tabindex doesn't work here for one thing
// @todo probably create with an actual input element, as tabindex doesn't work here for one thing
// Same with the select. And do the events using mochikit signal instead of dom events
// Same with the select. And do the events using mochikit signal instead of dom events
$numberinput
=
'<input'
;
$numberinput
=
'<div class="with-dropdown js-with-dropdown text">'
;
$numberinput
.
=
'<label for="'
.
$formname
.
'_'
.
$name
.
'">'
.
Pieform
::
hsc
(
$element
[
'title'
])
.
': </label><input'
;
$numberinput
.
=
' type="text" size="6" name="'
.
$name
.
'"'
;
$numberinput
.
=
' type="text" size="6" name="'
.
$name
.
'"'
;
$numberinput
.
=
' id="'
.
$formname
.
'_'
.
$name
.
'" value="'
.
Pieform
::
hsc
(
$values
[
'number'
])
.
'" tabindex="'
.
Pieform
::
hsc
(
$element
[
'tabindex'
])
.
'"'
;
$numberinput
.
=
' id="'
.
$formname
.
'_'
.
$name
.
'" value="'
.
Pieform
::
hsc
(
$values
[
'number'
])
.
'" tabindex="'
.
Pieform
::
hsc
(
$element
[
'tabindex'
])
.
'"'
;
$numberinput
.
=
(
isset
(
$element
[
'error'
])
?
' class="error"'
:
''
)
;
$numberinput
.
=
'class="with-dropdown js-with-dropdown form-control text'
.
(
isset
(
$element
[
'error'
])
?
' error"'
:
''
)
.
'"'
;
if
(
isset
(
$element
[
'description'
]))
{
if
(
isset
(
$element
[
'description'
]))
{
$numberinput
.
=
' aria-describedby="'
.
$form
->
element_descriptors
(
$element
)
.
'"'
;
$numberinput
.
=
' aria-describedby="'
.
$form
->
element_descriptors
(
$element
)
.
'"'
;
}
}
$numberinput
.
=
">
\n
"
;
$numberinput
.
=
"></div>
\n
"
;
$uselect
=
'<label for="'
.
$formname
.
'_'
.
$name
.
'_units" class="accessible-hidden sr-only">'
.
get_string
(
'units'
)
.
'</label>'
;
$uselect
.
=
'<select name="'
.
$name
.
'_units" id="'
.
$formname
.
'_'
.
$name
.
'_units"'
.
' tabindex="'
.
Pieform
::
hsc
(
$element
[
'tabindex'
])
.
'"'
;
$uselect
=
'<div class="dropdown-connect js-dropdown-connect select">'
;
$uselect
.
=
'<label for="'
.
$formname
.
'_'
.
$name
.
'_units" class="accessible-hidden sr-only">'
.
get_string
(
'units'
)
.
'</label>'
;
$uselect
.
=
'<span class="picker"><select class="form-control dropdown-connect js-dropdown-connect select" name="'
.
$name
.
'_units" id="'
.
$formname
.
'_'
.
$name
.
'_units"'
.
' tabindex="'
.
Pieform
::
hsc
(
$element
[
'tabindex'
])
.
'"'
;
if
(
isset
(
$element
[
'description'
]))
{
if
(
isset
(
$element
[
'description'
]))
{
$uselect
.
=
' aria-describedby="'
.
$form
->
element_descriptors
(
$element
)
.
'"'
;
$uselect
.
=
' aria-describedby="'
.
$form
->
element_descriptors
(
$element
)
.
'"'
;
}
}
...
@@ -83,9 +86,15 @@ function pieform_element_bytes(Pieform $form, $element) {/*{{{*/
...
@@ -83,9 +86,15 @@ function pieform_element_bytes(Pieform $form, $element) {/*{{{*/
$uselect
.
=
"
\t
<option value=
\"
$u
\"
"
.
((
$values
[
'units'
]
==
$u
)
?
' selected="selected"'
:
''
)
.
'>'
$uselect
.
=
"
\t
<option value=
\"
$u
\"
"
.
((
$values
[
'units'
]
==
$u
)
?
' selected="selected"'
:
''
)
.
'>'
.
$form
->
i18n
(
'element'
,
'bytes'
,
$u
,
$element
)
.
"</option>
\n
"
;
.
$form
->
i18n
(
'element'
,
'bytes'
,
$u
,
$element
)
.
"</option>
\n
"
;
}
}
$uselect
.
=
"</select>
\n
"
;
$uselect
.
=
"</select></span></div>
\n
"
;
$fieldset
=
'<div id="'
.
$formname
.
'_'
.
$name
.
'_fieldset" class="dropdown-group js-dropdown-group form-group">'
.
'<fieldset class="pieform-fieldset dropdown-group js-dropdown-group">'
.
$numberinput
.
$uselect
.
'</fieldset></div>'
;
return
$
numberinput
.
$uselec
t
;
return
$
fieldse
t
;
}
/*}}}*/
}
/*}}}*/
/**
/**
...
...
htdocs/theme/default/style/style.css
View file @
5470b39d
This diff is collapsed.
Click to expand it.
htdocs/theme/raw/plugintype/artefact/plans/templates/delete.tpl
View file @
5470b39d
{
include
file
=
"header.tpl"
}
{
include
file
=
"header.tpl"
}
<div
class=
"deletemessage"
>
<div
class=
"panel panel-danger mtxl"
>
<h2>
{
$subheading
}
</h2>
<h2
class=
"panel-heading"
>
{
$subheading
}
</h2>
<p
class=
"lead"
>
{
$message
}
</p>
<div
class=
"panel-body"
>
{
$form
|
safe
}
<p>
{
$message
}
</p>
{
$form
|
safe
}
</div>
</div>
</div>
{
include
file
=
"footer.tpl"
}
{
include
file
=
"footer.tpl"
}
htdocs/theme/raw/sass/form/_dropdown-group.scss
View file @
5470b39d
...
@@ -7,7 +7,11 @@
...
@@ -7,7 +7,11 @@
}
}
&
.form-group
{
&
.form-group
{
margin-left
:
15px
;
margin-left
:
11px
;
.with-heading
&
{
margin-left
:
15px
;
}
}
}
.with-dropdown
{
.with-dropdown
{
position
:
absolute
;
position
:
absolute
;
...
...
htdocs/theme/raw/sass/form/_form-group.scss
View file @
5470b39d
...
@@ -16,6 +16,12 @@
...
@@ -16,6 +16,12 @@
padding
:
20px
0
;
padding
:
20px
0
;
position
:
relative
;
position
:
relative
;
&
.bytes
{
.pseudolabel
{
display
:
none
;
}
}
&
.fake-form
{
&
.fake-form
{
border
:
0
;
border
:
0
;
padding
:
0
;
padding
:
0
;
...
...
htdocs/theme/raw/sass/utilities/_bootstrap-variables.scss
View file @
5470b39d
...
@@ -21,8 +21,8 @@ $gray-lighter: lighten($gray-base, 93.5%) !default; // #eee
...
@@ -21,8 +21,8 @@ $gray-lighter: lighten($gray-base, 93.5%) !default; // #eee
$brand-default
:
#ECECEC
!
default
;
$brand-default
:
#ECECEC
!
default
;
$brand-primary
:
$mahara-green-bright
!
default
;
$brand-primary
:
darken
(
$mahara-green-bright
,
2%
)
!
default
;
$brand-success
:
$mahara-green-bright
!
default
;
$brand-success
:
darken
(
$mahara-green-bright
,
2%
)
!
default
;
$brand-info
:
#5bc0de
!
default
;
$brand-info
:
#5bc0de
!
default
;
$brand-warning
:
#f0ad4e
!
default
;
$brand-warning
:
#f0ad4e
!
default
;
$brand-danger
:
#d9534f
!
default
;
$brand-danger
:
#d9534f
!
default
;
...
@@ -183,10 +183,10 @@ $btn-default-border: #ccc !default;
...
@@ -183,10 +183,10 @@ $btn-default-border: #ccc !default;
$btn-primary-color
:
#fff
!
default
;
$btn-primary-color
:
#fff
!
default
;
$btn-primary-bg
:
$brand-primary
!
default
;
$btn-primary-bg
:
$brand-primary
!
default
;
$btn-primary-border
:
darken
(
$btn-primary-bg
,
5
%
)
!
default
;
$btn-primary-border
:
darken
(
$btn-primary-bg
,
8
%
)
!
default
;
$btn-success-color
:
#fff
!
default
;
$btn-success-color
:
#fff
!
default
;
$btn-success-bg
:
$
mahara-green-light
!
default
;
$btn-success-bg
:
$
brand-primary
!
default
;
$btn-success-border
:
darken
(
$btn-success-bg
,
5%
)
!
default
;
$btn-success-border
:
darken
(
$btn-success-bg
,
5%
)
!
default
;
$btn-info-color
:
$state-info-text
!
default
;
$btn-info-color
:
$state-info-text
!
default
;
...
...
htdocs/theme/raw/style/style.css
View file @
5470b39d
This source diff could not be displayed because it is too large. You can
view the blob
instead.
htdocs/theme/raw/style/tinymce.css
View file @
5470b39d
This diff is collapsed.
Click to expand it.
htdocs/theme/raw/templates/account/activity/index.tpl
View file @
5470b39d
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
</table>
</table>
<div
class=
"right activity-buttons"
>
<div
class=
"right activity-buttons"
>
<input
class=
"submit btn btn-success"
type=
"submit"
value=
"
{
str
tag
=
'markasread'
section
=
'activity'
}
"
/>
<input
class=
"submit btn btn-success"
type=
"submit"
value=
"
{
str
tag
=
'markasread'
section
=
'activity'
}
"
/>
<input
class=
"submit btn btn-d
anger
"
type=
"button"
value=
"
{
str
tag
=
'delete'
}
"
onClick=
"markread(document.notificationlist, 'del'); return false;"
/>
<input
class=
"submit btn btn-d
efault
"
type=
"button"
value=
"
{
str
tag
=
'delete'
}
"
onClick=
"markread(document.notificationlist, 'del'); return false;"
/>
</div>
</div>
{
$activitylist.pagination
|
safe
}
{
$activitylist.pagination
|
safe
}
</form>
</form>
...
...
htdocs/theme/raw/templates/account/delete.tpl
View file @
5470b39d
{
include
file
=
"header.tpl"
}
{
include
file
=
"header.tpl"
}
<div
id=
"deleteaccount"
>
<div
id=
"deleteaccount"
>
<
h1
>
<
div
class=
"panel panel-danger mtxl"
>
{
str
tag
=
deleteaccount
section
=
account
}
<h2
class=
"panel-heading"
>
{
str
tag
=
deleteaccount
section
=
account
}
</h2>
</h1
>
<div
class=
"panel-body"
>
<p
class=
"lead"
>
<p>
{
str
tag
=
deleteaccountdescription
section
=
account
}
</p
>
{
str
tag
=
deleteaccountdescription
section
=
account
}
{
$delete_form
|
safe
}
</p
>
</div
>
{
$form
|
safe
}
</div>
</div>
</div>
{
include
file
=
"footer.tpl"
}
{
include
file
=
"footer.tpl"
}
\ No newline at end of file
htdocs/theme/raw/templates/admin/groups/manage.tpl
View file @
5470b39d
{
include
file
=
"header.tpl"
}
{
include
file
=
"header.tpl"
}
<h3>
{
str
tag
=
groupquotas
section
=
admin
args
=
$groupname
}
</h3>
<div
class=
"panel panel-default"
>
<p>
{
str
tag
=
managegroupquotadescription1
section
=
admin
}
</p>
<h2
class=
"panel-heading"
>
{
str
tag
=
groupquotas
section
=
admin
args
=
$groupname
}
</h2>
<div>
<div
class=
"panel-body"
>