appy.gen: improvements in user management.
This commit is contained in:
parent
9394490d33
commit
9c5f92337b
10 changed files with 85 additions and 23 deletions
|
@ -40,7 +40,7 @@ img {border: 0}
|
|||
border-style: solid; border-width: 1px; border-color: grey; }
|
||||
.top { height: 75px; margin-left: 3em; vertical-align: top;}
|
||||
.lang { margin-right: 3px; }
|
||||
.userStrip { background-color: #89A6B1; height: 30px;
|
||||
.userStrip { background-color: #89A6B1; height: 40px;
|
||||
border-top: 3px solid #405A64; border-bottom: 2px solid #5F7983; }
|
||||
.login { margin-top: 2px; margin-bottom: 2px; color: white;}
|
||||
.buttons { margin-left: 4px;}
|
||||
|
|
BIN
gen/ui/banner.jpg
Normal file
BIN
gen/ui/banner.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.4 KiB |
7
gen/ui/home.pt
Normal file
7
gen/ui/home.pt
Normal file
|
@ -0,0 +1,7 @@
|
|||
<tal:main define="tool python: context.config">
|
||||
<html metal:use-macro="context/ui/template/macros/main">
|
||||
<div metal:fill-slot="content">
|
||||
<span tal:replace="structure python: tool.translate('front_page_text')"/>
|
||||
</div>
|
||||
</html>
|
||||
</tal:main>
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
<head>
|
||||
<title tal:content="tool/getAppName"></title>
|
||||
<tal:link repeat="name python: app.ui.objectIds('File')">
|
||||
<tal:link repeat="name tool/getCssJs">
|
||||
<link tal:condition="python: name.endswith('.css')"
|
||||
rel="stylesheet" type="text/css" tal:attributes="href string:$appUrl/ui/$name"/>
|
||||
<script tal:condition="python: name.endswith('.js')"
|
||||
|
@ -31,12 +31,10 @@
|
|||
<tr valign="top">
|
||||
<td></td>
|
||||
<tal:comment replace="nothing">Language selector (links or listbox)</tal:comment>
|
||||
<td align="right"
|
||||
tal:define="languages tool/getLanguages;
|
||||
defaultLanguage python: languages[0];
|
||||
suffix python: req.get('ACTUAL_URL').split('/')[-1];
|
||||
asLinks python: len(languages) <= 5"
|
||||
tal:condition="python: len(languages) >= 2 and (suffix not in ('edit', 'query', 'search'))">
|
||||
<td align="right" tal:condition="tool/showLanguageSelector">
|
||||
<tal:lgs define="languages tool/getLanguages;
|
||||
defaultLanguage python: languages[0];
|
||||
asLinks python: len(languages) <= 5">
|
||||
<table tal:condition="asLinks">
|
||||
<tr>
|
||||
<td tal:repeat="lang languages">
|
||||
|
@ -54,6 +52,7 @@
|
|||
tal:attributes="selected python:defaultLanguage == lang; value lang">
|
||||
</option>
|
||||
</select>
|
||||
</tal:lgs>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue