Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Linnea Samila
/
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 9cbd2ae3
authored
Dec 21, 2015
by
Sanna Paaso
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Käyttäjähaun tarkennetun haun ja käyttäjäkorin ui-komponentteja muotoiltu, niihi…
…n liittyen pari uutta käännöstä.
1 parent
cf503b46
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
98 additions
and
74 deletions
code/moya-web/WebContent/useradmin/list.xhtml
code/moya-web/src/main/resources/fi/codecrew/moya/resources/i18n.properties
code/moya-web/src/main/resources/fi/codecrew/moya/resources/i18n_en.properties
code/moya-web/src/main/resources/fi/codecrew/moya/resources/i18n_fi.properties
code/moya-web/WebContent/useradmin/list.xhtml
View file @
9cbd2ae
...
...
@@ -21,78 +21,99 @@
<h:form
id=
"pageform"
styleClass=
"useradmin_list"
>
<h:panelGrid
columns=
"2"
>
<h:panelGroup>
<a
id=
"show_advanced_search"
onclick=
"$('#advancedSearch').show(); $(this).hide();"
>
<h:outputText
value=
"#{i18n['userlist.showAdvancedSearch']}"
/></a>
<div
id=
"advancedSearch"
style=
"display: none;"
>
<h:selectBooleanCheckbox
id=
"placeassoc"
value=
"#{userSearchView.searchQuery.placeAssoc}"
/>
<h:outputLabel
for=
"placeassoc"
value=
"#{i18n['userlist.placeassoc']}"
/>
<p:panelGrid
style=
"width: 100%;"
>
<p:row>
<p:column>
<p:commandButton
onclick=
"$('#advancedSearch').toggle(); return false;"
value=
"#{i18n['userlist.showAdvancedSearch']}"
ajax=
"false"
/>
<div
id=
"advancedSearch"
style=
"display: none;"
>
<!--
<strong><p:outputLabel for="rolefilter" value="#{i18n['userlist.rolefilter']}" /></strong>
<br />
<br />
<h:outputLabel for="rolefilter" value="#{i18n['userlist.rolefilter']}" />
<h:selectManyCheckbox layout="pageDirection" styleClass="nowrap" id="rolefilter"
value="#{userSearchView.searchQuery.filterRoles}" converter="#{roleConverter}">
</h:inputText>
-->
<p:selectManyCheckbox
layout=
"pageDirection"
styleClass=
"nowrap"
id=
"rolefilter"
value=
"#{userSearchView.searchQuery.filterRoles}"
converter=
"#{roleConverter}"
>
<f:selectItems
value=
"#{roleDataView.roles}"
var=
"r"
itemLabel=
"#{r.name}"
/>
</p:selectManyCheckbox>
<h3>
<h:outputText
value=
"#{i18n['userlist.cardfilter']}"
/>
</h3>
<p:selectManyCheckbox
id=
"cardstatusfilter"
layout=
"pageDirection"
styleClass=
"nowrap"
value=
"#{userSearchView.searchQuery.hasCardState}"
converter=
"#{cardStateConverter}"
>
<f:selectItems
value=
"#{userSearchView.searchQuery.cardStates}"
var=
"r"
itemLabel=
"#{r}"
/>
</p:selectManyCheckbox>
<h3>
Muut
</h3>
<p:selectBooleanCheckbox
id=
"placeassoc"
value=
"#{userSearchView.searchQuery.placeAssoc}"
/>
<p:outputLabel
for=
"placeassoc"
value=
"#{i18n['userlist.placeassoc']}"
/>
<br
/>
<p:outputLabel
for=
"saldofilter"
value=
"#{i18n['userlist.saldofilter']}"
/>
<h:selectOneMenu
id=
"saldofilter"
value=
"#{userSearchView.searchQuery.accountSaldoCompare}"
>
<f:selectItems
value=
"#{userSearchView.searchQuery.accountCompareValues}"
/>
</h:selectOneMenu>
<p:inputText
value=
"#{userSearchView.searchQuery.accountSaldo}"
>
<f:convertNumber
minFractionDigits=
"0"
maxFractionDigits=
"2"
/>
</p:inputText>
<br
/>
<p:selectBooleanCheckbox
id=
"onlythisevent"
value=
"#{userSearchView.searchQuery.onlyThisEvent}"
/>
<p:outputLabel
for=
"onlythisevent"
value=
"#{i18n['userlist.onlythisevent']}"
/>
<br
/>
<p:selectBooleanCheckbox
id=
"userswithunusedcodes"
value=
"#{userSearchView.searchQuery.usersWithUnusedCodes}"
/>
<p:outputLabel
for=
"userswithunusedcodes"
value=
"#{i18n['userlist.usersWithUnusedCodes']}"
/>
</div>
<br
/>
<h:outputLabel
for=
"saldofilter"
value=
"#{i18n['userlist.saldofilter']}"
/>
<h:selectOneMenu
value=
"#{userSearchView.searchQuery.accountSaldoCompare}"
>
<f:selectItems
value=
"#{userSearchView.searchQuery.accountCompareValues}"
/>
</h:selectOneMenu>
<h:inputText
value=
"#{userSearchView.searchQuery.accountSaldo}"
>
<f:convertNumber
minFractionDigits=
"0"
maxFractionDigits=
"2"
/>
</h:inputText>
<br
/><br
/>
<!--
<br />
<h:outputLabel for="rolefilter" value="#{i18n['userlist.rolefilter']}" />
<h:selectManyCheckbox layout="pageDirection" styleClass="nowrap" id="rolefilter"
value="#{userSearchView.searchQuery.filterRoles}" converter="#{roleConverter}">
</h:inputText>
-->
<strong><h:outputLabel
for=
"rolefilter"
value=
"#{i18n['userlist.rolefilter']}"
/></strong><br
/>
<h:selectManyCheckbox
layout=
"pageDirection"
styleClass=
"nowrap"
id=
"rolefilter"
value=
"#{userSearchView.searchQuery.filterRoles}"
converter=
"#{roleConverter}"
>
<f:selectItems
value=
"#{roleDataView.roles}"
var=
"r"
itemLabel=
"#{r.name}"
/>
</h:selectManyCheckbox>
<h:outputLabel
for=
"cardstatusfilter"
value=
"#{i18n['userlist.cardfilter']}"
/>
<h:selectManyCheckbox
layout=
"pageDirection"
styleClass=
"nowrap"
id=
"cardfilter"
value=
"#{userSearchView.searchQuery.hasCardState}"
converter=
"#{cardStateConverter}"
>
<f:selectItems
value=
"#{userSearchView.searchQuery.cardStates}"
var=
"r"
itemLabel=
"#{r}"
/>
</h:selectManyCheckbox>
</div>
<br
/>
<h:selectBooleanCheckbox
id=
"onlythisevent"
value=
"#{userSearchView.searchQuery.onlyThisEvent}"
/>
<h:outputLabel
for=
"onlythisevent"
value=
"#{i18n['userlist.onlythisevent']}"
/>
<br
/>
<h:selectBooleanCheckbox
id=
"userswithunusedcodes"
value=
"#{userSearchView.searchQuery.usersWithUnusedCodes}"
/>
<h:outputLabel
for=
"userswithunusedcodes"
value=
"#{i18n['userlist.usersWithUnusedCodes']}"
/>
<br
/>
<h:inputText
value=
"#{userSearchView.search}"
/>
<h:commandButton
value=
"#{i18n['userlist.search']}"
action=
"#{userSearchView.newSearch()}"
/>
</h:panelGroup>
<h:panelGroup>
<a
id=
"show_user_cart"
style=
"display: #{((userCartView.isEmpty())?'block':'none')};"
onclick=
"$('#pageform\\:usercart').slideToggle(300);"
><h:outputText
value=
"#{i18n['usercart.showCart']}"
/></a>
<p:panelGrid
columns=
"1"
id=
"usercart"
styleClass=
"noborderTable"
style=
"display: #{((userCartView.isEmpty())?'none':'block')};"
>
<h:commandButton
actionListener=
"#{userSearchView.addToCart}"
value=
"#{i18n['usercart.addSearchedUsers']}"
/>
<h:panelGroup>
<h:outputText
value=
"#{i18n['usercart.cartsize']} #{userCartView.userCartSize}"
/>
<h:commandButton
action=
"#{userCartView.clearCart()}"
value=
"#{i18n['usercart.clear']}"
/>
</h:panelGroup>
<h:commandButton
action=
"#{userCartView.traverse}"
value=
"#{i18n['usercart.traverse']}"
/>
<h:commandButton
value=
"#{i18n['usercart.downloadCsv']}"
>
<p:fileDownload
value=
"#{userCartView.downloadCsv}"
/>
</h:commandButton>
<h:commandButton
value=
"#{i18n['usercart.downloadExport']}"
>
<p:fileDownload
value=
"#{userCartView.userExport}"
/>
</h:commandButton>
<h:commandButton
action=
"#{userCartView.showOverview()}"
value=
"#{i18n['usercart.showoverview']}"
/>
<h:commandButton
rendered=
"#{creditTransferView.transferPermissions}"
action=
"#{userCartView.transferCredits}"
value=
"#{i18n['usercart.transferCredits']}"
/>
</p:panelGrid>
</h:panelGroup>
</h:panelGrid>
</p:column>
<p:column>
<!-- <a id="show_user_cart" style="display: #{((userCartView.isEmpty())?'block':'none')};" onclick="$('#pageform\\:usercart').slideToggle(300);"><h:outputText value="#{i18n['usercart.showCart']}" /></a> -->
<p:commandButton
onclick=
"$('#pageform\\:usercart').toggle(); return false;"
value=
"#{i18n['usercart.showCart']}"
ajax=
"false"
/>
<p:panelGrid
columns=
"1"
id=
"usercart"
styleClass=
"noborderTable"
style=
"display: #{((userCartView.isEmpty())?'none':'block')};"
>
<p:commandButton
actionListener=
"#{userSearchView.addToCart}"
value=
"#{i18n['usercart.addSearchedUsers']}"
ajax=
"false"
/>
<h:panelGroup>
<h:outputText
value=
"#{i18n['usercart.cartsize']} #{userCartView.userCartSize}"
/>
<p:commandButton
action=
"#{userCartView.clearCart()}"
value=
"#{i18n['usercart.clear']}"
ajax=
"false"
/>
</h:panelGroup>
<p:commandButton
action=
"#{userCartView.traverse}"
value=
"#{i18n['usercart.traverse']}"
ajax=
"false"
/>
<p:commandButton
value=
"#{i18n['usercart.downloadCsv']}"
ajax=
"false"
>
<p:fileDownload
value=
"#{userCartView.downloadCsv}"
/>
</p:commandButton>
<p:commandButton
value=
"#{i18n['usercart.downloadExport']}"
ajax=
"false"
>
<p:fileDownload
value=
"#{userCartView.userExport}"
/>
</p:commandButton>
<p:commandButton
action=
"#{userCartView.showOverview()}"
value=
"#{i18n['usercart.showoverview']}"
ajax=
"false"
/>
<p:commandButton
rendered=
"#{creditTransferView.transferPermissions}"
action=
"#{userCartView.transferCredits}"
value=
"#{i18n['usercart.transferCredits']}"
ajax=
"false"
/>
</p:panelGrid>
</p:column>
</p:row>
<p:row>
<p:column
colspan=
"2"
>
<p:inputText
value=
"#{userSearchView.search}"
/>
<p:commandButton
value=
"#{i18n['userlist.search']}"
action=
"#{userSearchView.newSearch()}"
ajax=
"false"
/>
</p:column>
</p:row>
</p:panelGrid>
</h:form>
<p>
<users:list
rendered=
"#{!userSearchView.searchQuery.onlyThisEvent}"
/>
...
...
code/moya-web/src/main/resources/fi/codecrew/moya/resources/i18n.properties
View file @
9cbd2ae
...
...
@@ -1446,6 +1446,7 @@ usercart.traverse = Check
userimage.webcam
=
Take picture with webcam
userlist.cardfilter
=
Card status
userlist.header
=
Search users
userlist.onlythisevent
=
Limit to users of this event
userlist.placeassoc
=
Assigned to place
...
...
@@ -1499,7 +1500,7 @@ voting.allcompos.curEntries = No. of entries
voting.allcompos.descri
=
Description
voting.allcompos.description
=
List of all compos and their information.
voting.allcompos.endTime
=
End time
voting.allcompos.header
=
All c
ompos
voting.allcompos.header
=
C
ompos
voting.allcompos.hidden
=
Hidden
voting.allcompos.holdVoting
=
Hold voting
voting.allcompos.maxParts
=
Max participants
...
...
code/moya-web/src/main/resources/fi/codecrew/moya/resources/i18n_en.properties
View file @
9cbd2ae
...
...
@@ -1718,6 +1718,7 @@ usercart.traverse = Check
userimage.webcam
=
Take picture with webcam
userlist.cardfilter
=
Card status
userlist.header
=
Search users
userlist.onlythisevent
=
Limit to users of this event
userlist.placeassoc
=
Assigned to place
...
...
@@ -1771,7 +1772,7 @@ voting.allcompos.curEntries = No. of entries
voting.allcompos.descri
=
Description
voting.allcompos.description
=
List of all compos and their information.
voting.allcompos.endTime
=
End time
voting.allcompos.header
=
All c
ompos
voting.allcompos.header
=
C
ompos
voting.allcompos.hidden
=
Hidden
voting.allcompos.holdVoting
=
Hold voting
voting.allcompos.maxParts
=
Max participants
...
...
code/moya-web/src/main/resources/fi/codecrew/moya/resources/i18n_fi.properties
View file @
9cbd2ae
...
...
@@ -1705,6 +1705,7 @@ usercart.traverse = K\u00E4y l\u00E4pi
userimage.webcam
=
Ota kuva webkameralla
userlist.cardfilter
=
Kortin tila
userlist.header
=
Etsi k
\u
00E4ytt
\u
00E4ji
\u
00E4
userlist.onlythisevent
=
Vain t
\u
00E4m
\u
00E4n tapahtuman k
\u
00E4ytt
\u
00E4j
\u
00E4t
userlist.placeassoc
=
Liitetty paikkaan
...
...
@@ -1758,7 +1759,7 @@ voting.allcompos.curEntries = Entryja
voting.allcompos.descri
=
Kuvaus
voting.allcompos.description
=
Compojen informaatiot.
voting.allcompos.endTime
=
Lopetusaika
voting.allcompos.header
=
Kaikki c
ompot
voting.allcompos.header
=
C
ompot
voting.allcompos.hidden
=
Piilotettu
voting.allcompos.holdVoting
=
Hold voting
voting.allcompos.maxParts
=
Max osallistujam
\u
00E4
\u
00E4r
\u
00E4
...
...
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