From fb52fac9cce0b89e5bb01871ce1a81d0520d07e8 Mon Sep 17 00:00:00 2001
From: mdipierro
Date: Mon, 27 Aug 2012 15:08:20 -0500
Subject: [PATCH] slightly slicker appadmin
---
VERSION | 2 +-
applications/admin/languages/default.py | 85 +++++++++++++++++++++++
applications/admin/views/appadmin.html | 25 ++++---
applications/examples/views/appadmin.html | 25 ++++---
applications/welcome/languages/it.py | 5 +-
applications/welcome/views/appadmin.html | 25 ++++---
6 files changed, 135 insertions(+), 32 deletions(-)
diff --git a/VERSION b/VERSION
index c886326f..0aed930e 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-Version 2.00.1 (2012-08-27 14:54:08) rc4
+Version 2.00.1 (2012-08-27 15:08:16) rc4
diff --git a/applications/admin/languages/default.py b/applications/admin/languages/default.py
index e764c539..31a8dc24 100644
--- a/applications/admin/languages/default.py
+++ b/applications/admin/languages/default.py
@@ -4,39 +4,124 @@
'!langname!': 'English (US)',
'%Y-%m-%d': '%m-%d-%Y',
'%Y-%m-%d %H:%M:%S': '%m-%d-%Y %H:%M:%S',
+'(requires internet access)': '(requires internet access)',
+'(something like "it-it")': '(something like "it-it")',
'About': 'About',
+'Additional code for your application': 'Additional code for your application',
'Admin language': 'Admin language',
'administrative interface': 'administrative interface',
'Administrator Password:': 'Administrator Password:',
+'and rename it:': 'and rename it:',
+'Application name:': 'Application name:',
+'are not used yet': 'are not used yet',
'Are you sure you want to delete this object?': 'Are you sure you want to delete this object?',
'arguments': 'arguments',
'back': '<{{=T("Available databases and tables")}}
{{if not databases:}}{{=T("No databases in this application")}}{{pass}}
+
{{for db in sorted(databases):}}
{{for table in databases[db].tables:}}
{{qry='%s.%s.id>0'%(db,table)}}
@@ -28,19 +29,23 @@
{{qry=''}}
{{pass}}
{{pass}}
-
- {{=A("%s.%s" % (db,table),_href=URL('select',args=[db],vars=dict(query=qry)))}}
-
- [ {{=A(str(T('insert new'))+' '+table,_href=URL('insert',args=[db,table]))}} ]
-
+
+ |
+ {{=A("%s.%s" % (db,table),_href=URL('select',args=[db],vars=dict(query=qry)))}}
+ |
+
+ {{=A(str(T('New Record')),_href=URL('insert',args=[db,table]),_class="btn")}}
+ |
+
{{pass}}
+
{{pass}}
{{elif request.function=='select':}}
{{=XML(str(T("database %s select"))%A(request.args[0],_href=URL('index'))) }}
- {{if table:}}
- [ {{=A(str(T('insert new %s'))%table,_href=URL('insert',args=[request.args[0],table]))}} ]
+ {{if table:}}
+ {{=A(str(T('New Record')),_href=URL('insert',args=[request.args[0],table]),_class="btn")}}
{{=T("Rows in table")}}
{{else:}}
{{=T("Rows selected")}}
@@ -51,8 +56,8 @@
{{=T('"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN')}}
{{=T("%s selected", nrows)}}
- {{if start>0:}}[ {{=A(T('previous 100 rows'),_href=URL('select',args=request.args[0],vars=dict(start=start-100)))}} ]{{pass}}
- {{if stop0:}}{{=A(T('previous 100 rows'),_href=URL('select',args=request.args[0],vars=dict(start=start-100)),_class="btn")}}{{pass}}
+ {{if stop
{{linkto=URL('update',args=request.args[0])}}
@@ -61,7 +66,7 @@
{{pass}}
{{=T("Import/Export")}}
- [ {{=T("export as csv file")}} ]
+ {{=T("export as csv file")}}
{{=formcsv or ''}}
{{elif request.function=='insert':}}
diff --git a/applications/examples/views/appadmin.html b/applications/examples/views/appadmin.html
index 1d967c2f..bdbfd307 100644
--- a/applications/examples/views/appadmin.html
+++ b/applications/examples/views/appadmin.html
@@ -12,6 +12,7 @@
{{if request.function=='index':}}
{{=T("Available databases and tables")}}
{{if not databases:}}{{=T("No databases in this application")}}{{pass}}
+
{{for db in sorted(databases):}}
{{for table in databases[db].tables:}}
{{qry='%s.%s.id>0'%(db,table)}}
@@ -28,19 +29,23 @@
{{qry=''}}
{{pass}}
{{pass}}
-
- {{=A("%s.%s" % (db,table),_href=URL('select',args=[db],vars=dict(query=qry)))}}
-
- [ {{=A(str(T('insert new'))+' '+table,_href=URL('insert',args=[db,table]))}} ]
-
+
+ |
+ {{=A("%s.%s" % (db,table),_href=URL('select',args=[db],vars=dict(query=qry)))}}
+ |
+
+ {{=A(str(T('New Record')),_href=URL('insert',args=[db,table]),_class="btn")}}
+ |
+
{{pass}}
+
{{pass}}
{{elif request.function=='select':}}
{{=XML(str(T("database %s select"))%A(request.args[0],_href=URL('index'))) }}
- {{if table:}}
- [ {{=A(str(T('insert new %s'))%table,_href=URL('insert',args=[request.args[0],table]))}} ]
+ {{if table:}}
+ {{=A(str(T('New Record')),_href=URL('insert',args=[request.args[0],table]),_class="btn")}}
{{=T("Rows in table")}}
{{else:}}
{{=T("Rows selected")}}
@@ -51,8 +56,8 @@
{{=T('"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN')}}
{{=T("%s selected", nrows)}}
- {{if start>0:}}[ {{=A(T('previous 100 rows'),_href=URL('select',args=request.args[0],vars=dict(start=start-100)))}} ]{{pass}}
- {{if stop0:}}{{=A(T('previous 100 rows'),_href=URL('select',args=request.args[0],vars=dict(start=start-100)),_class="btn")}}{{pass}}
+ {{if stop
{{linkto=URL('update',args=request.args[0])}}
@@ -61,7 +66,7 @@
{{pass}}
{{=T("Import/Export")}}
- [ {{=T("export as csv file")}} ]
+ {{=T("export as csv file")}}
{{=formcsv or ''}}
{{elif request.function=='insert':}}
diff --git a/applications/welcome/languages/it.py b/applications/welcome/languages/it.py
index 0d315706..753edd65 100644
--- a/applications/welcome/languages/it.py
+++ b/applications/welcome/languages/it.py
@@ -70,6 +70,7 @@
'Hello World in a flash!': 'Salve Mondo in un flash!',
'Home': 'Home',
'How did you get here?': 'How did you get here?',
+'import': 'import',
'Import/Export': 'Importa/Esporta',
'Index': 'Indice',
'insert new': 'inserisci nuovo',
@@ -119,8 +120,8 @@
'Recipes': 'Recipes',
'record': 'record',
'record does not exist': 'il record non esiste',
-'record id': 'record id',
'Record ID': 'Record ID',
+'record id': 'record id',
'Register': 'Register',
'register': 'registrazione',
'Registration identifier': 'Registration identifier',
@@ -133,6 +134,8 @@
'Services': 'Services',
'state': 'stato',
'Stylesheet': 'Foglio di stile (stylesheet)',
+'submit': 'submit',
+'Submit': 'Submit',
'Support': 'Support',
'Sure you want to delete this object?': 'Vuoi veramente cancellare questo oggetto?',
'table': 'tabella',
diff --git a/applications/welcome/views/appadmin.html b/applications/welcome/views/appadmin.html
index 1d967c2f..bdbfd307 100644
--- a/applications/welcome/views/appadmin.html
+++ b/applications/welcome/views/appadmin.html
@@ -12,6 +12,7 @@
{{if request.function=='index':}}
{{=T("Available databases and tables")}}
{{if not databases:}}{{=T("No databases in this application")}}{{pass}}
+
{{for db in sorted(databases):}}
{{for table in databases[db].tables:}}
{{qry='%s.%s.id>0'%(db,table)}}
@@ -28,19 +29,23 @@
{{qry=''}}
{{pass}}
{{pass}}
-
- {{=A("%s.%s" % (db,table),_href=URL('select',args=[db],vars=dict(query=qry)))}}
-
- [ {{=A(str(T('insert new'))+' '+table,_href=URL('insert',args=[db,table]))}} ]
-
+
+ |
+ {{=A("%s.%s" % (db,table),_href=URL('select',args=[db],vars=dict(query=qry)))}}
+ |
+
+ {{=A(str(T('New Record')),_href=URL('insert',args=[db,table]),_class="btn")}}
+ |
+
{{pass}}
+
{{pass}}
{{elif request.function=='select':}}
{{=XML(str(T("database %s select"))%A(request.args[0],_href=URL('index'))) }}
- {{if table:}}
- [ {{=A(str(T('insert new %s'))%table,_href=URL('insert',args=[request.args[0],table]))}} ]
+ {{if table:}}
+ {{=A(str(T('New Record')),_href=URL('insert',args=[request.args[0],table]),_class="btn")}}
{{=T("Rows in table")}}
{{else:}}
{{=T("Rows selected")}}
@@ -51,8 +56,8 @@
{{=T('"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN')}}
{{=T("%s selected", nrows)}}
- {{if start>0:}}[ {{=A(T('previous 100 rows'),_href=URL('select',args=request.args[0],vars=dict(start=start-100)))}} ]{{pass}}
- {{if stop0:}}{{=A(T('previous 100 rows'),_href=URL('select',args=request.args[0],vars=dict(start=start-100)),_class="btn")}}{{pass}}
+ {{if stop
{{linkto=URL('update',args=request.args[0])}}
@@ -61,7 +66,7 @@
{{pass}}
{{=T("Import/Export")}}
- [ {{=T("export as csv file")}} ]
+ {{=T("export as csv file")}}
{{=formcsv or ''}}
{{elif request.function=='insert':}}