Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Riina Antikainen
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 9f725a38
authored
May 10, 2013
by
Petri Jarvisalo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ui.. ui..
1 parent
decca77b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
5 deletions
code/MoyaBeans/ejbModule/fi/codecrew/moya/beans/MenuBean.java
code/MoyaWeb/WebContent/resources/cditools/user/usertabs.xhtml
code/MoyaWeb/WebContent/resources/templates/template1/css/style.css
code/MoyaWeb/WebContent/resources/templates/template1/css/tabnav.css
code/MoyaBeans/ejbModule/fi/codecrew/moya/beans/MenuBean.java
View file @
9f725a3
...
...
@@ -11,9 +11,12 @@ import javax.ejb.Stateless;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
com.sun.xml.registry.uddi.infomodel.OrganizationImpl
;
import
fi.codecrew.moya.enums.apps.BillPermission
;
import
fi.codecrew.moya.enums.apps.CompoPermission
;
import
fi.codecrew.moya.enums.apps.ContentPermission
;
import
fi.codecrew.moya.enums.apps.EventPermission
;
import
fi.codecrew.moya.enums.apps.MapPermission
;
import
fi.codecrew.moya.enums.apps.PollPermission
;
import
fi.codecrew.moya.enums.apps.ShopPermission
;
...
...
@@ -126,6 +129,11 @@ public class MenuBean implements MenuBeanLocal {
navifacade
.
create
(
usermenu
);
//
// Admin menu
//
MenuNavigation
adminmenu
=
new
MenuNavigation
(
ev
,
"topnavi.adminnavi"
,
menusort
=
+
10
);
//user management
...
...
@@ -154,6 +162,8 @@ public class MenuBean implements MenuBeanLocal {
adminEventCards
.
addPage
(
menuitemfacade
.
findOrCreate
(
"/shop/shopToUser"
),
null
).
setVisible
(
false
);
adminEventCards
.
addPage
(
menuitemfacade
.
findOrCreate
(
"/shop/assocToUser"
),
null
).
setVisible
(
false
);
adminuser
.
addPage
(
menuitemfacade
.
findOrCreate
(
"/eventorg/list"
),
EventPermission
.
MANAGE_PROPERTIES
);
// shop
MenuNavigation
adminshop
=
adminmenu
.
addPage
(
null
,
null
);
adminshop
.
setKey
(
"topnavi.adminshop"
);
...
...
@@ -186,7 +196,7 @@ public class MenuBean implements MenuBeanLocal {
MenuNavigation
adminPlaces
=
adminmenu
.
addPage
(
null
,
null
);
adminPlaces
.
setKey
(
"topnavi.userplaces"
);
adminPlaces
.
addPage
(
menuitemfacade
.
findOrCreate
(
"/place/adminPlacemap"
),
UserPermission
.
VIEW_ALL
);
adminPlaces
.
addPage
(
menuitemfacade
.
findOrCreate
(
"/place/adminGroups"
),
UserPermission
.
VIEW_ALL
);
// adminPlaces.addPage(menuitemfacade.findOrCreate("/place/adminGroups"), UserPermission.VIEW_ALL); // todo: make new view for managing
// event
...
...
code/MoyaWeb/WebContent/resources/cditools/user/usertabs.xhtml
View file @
9f725a3
...
...
@@ -10,12 +10,12 @@
<h:outputStylesheet
library=
"templates/#{sessionHandler.templateName}/css"
name=
"tabnav.css"
/>
<h
2
>
<h
3
>
<h:outputText
value=
"#{i18n['usertitle.managingUser']}: #{userView.user.nick} / #{userView.user.wholeName} "
/>
</h
2
>
<h
2
>
</h
3
>
<h
3
>
<h:outputText
value=
"#{i18n['user.cardPower']}: #{userView.usersCardtemplate.name}"
/>
</h
2
>
</h
3
>
<div
id=
"#{cc.attrs.tabId}"
>
<ul
id=
"usertabnav"
>
...
...
code/MoyaWeb/WebContent/resources/templates/template1/css/style.css
View file @
9f725a3
...
...
@@ -34,6 +34,13 @@
padding-left
:
0.5em
;
}
.center
h3
{
font-family
:
Oxygen
,
Calibri
;
font-size
:
11pt
;
color
:
#101D27
;
font-weight
:
lighter
;
}
.center
{
font-family
:
Oxygen
,
Calibri
;
font-size
:
10pt
;
...
...
@@ -276,6 +283,7 @@ h1 {
#main
a
{
color
:
#2694e8
;
}
.bgColor1
{
background-color
:
#68A3C2
;
}
...
...
code/MoyaWeb/WebContent/resources/templates/template1/css/tabnav.css
0 → 100644
View file @
9f725a3
#edit
{
float
:
left
;
width
:
100%
;
border-bottom
:
1px
solid
black
;
}
#usertabnav
{
font-size
:
90%
;
}
ul
#usertabnav
{
float
:
left
;
width
:
100%
;
border
:
1px
solid
rgba
(
200
,
200
,
200
,
0
);
background
:
rgba
(
200
,
200
,
200
,
0
);
border-radius
:
16px
16px
0
0
;
}
ul
#usertabnav
li
{
display
:
inline
;
list-style
:
none
;
}
ul
#usertabnav
li
a
{
display
:
block
;
line-height
:
1.7em
;
float
:
left
;
padding
:
2px
5px
2px
5px
;
color
:
rgb
(
125
,
125
,
125
);
text-decoration
:
none
;
font-size
:
120%
;
background-color
:
rgba
(
100
,
100
,
100
,
0.3
);
color
:
rgba
(
0
,
0
,
0
,
1
);
border-radius
:
12px
12px
0
0
;
border
:
1px
solid
rgba
(
0
,
0
,
0
,
0.1
);
border-bottom
:
none
;}
ul
#usertabnava
:hover
{
text-decoration
:
none
;
color
:
rgb
(
50
,
50
,
50
);}
ul
#usertabnav
li
.active
{
font-weight
:
bold
;
background-color
:
rgba
(
250
,
250
,
250
,
0.4
);
color
:
rgba
(
0
,
0
,
0
,
1
);
border-radius
:
12px
12px
0
0
;
border
:
1px
solid
black
;
border-bottom
:
none
}
#edit
{
clear
:
both
;
}
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
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 post a comment