From 8f267a19c491f2cfcf3454b1e73e263fe96fa760 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Thu, 13 Sep 2012 14:06:58 -0500 Subject: [PATCH] fixed grid layout again --- VERSION | 2 +- applications/welcome/languages/it.py | 29 ++++++++++++++ applications/welcome/static/css/web2py.css | 25 ++++-------- applications/welcome/views/default/index.html | 2 + applications/welcome/views/layout.html | 5 ++- gluon/html.py | 10 +++-- gluon/rewrite.py | 18 ++++++--- gluon/sqlhtml.py | 40 ++++++++++++------- gluon/tools.py | 1 - 9 files changed, 87 insertions(+), 45 deletions(-) diff --git a/VERSION b/VERSION index 9528f6a7..8046f55a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.0.8 (2012-09-13 09:28:40) stable +Version 2.0.8 (2012-09-13 14:06:52) stable diff --git a/applications/welcome/languages/it.py b/applications/welcome/languages/it.py index ad59b34d..fcd9c933 100644 --- a/applications/welcome/languages/it.py +++ b/applications/welcome/languages/it.py @@ -1,23 +1,33 @@ # coding: utf8 { +'!=': '!=', '!langcode!': 'it', '!langname!': 'Italiano', '"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" è un\'espressione opzionale come "campo1=\'nuovo valore\'". Non si può fare "update" o "delete" dei risultati di un JOIN ', +'%(nrows)s records found': '%(nrows)s records found', '%d seconds ago': '%d seconds ago', '%s %%{row} deleted': '%s righe ("record") cancellate', '%s %%{row} updated': '%s righe ("record") modificate', '%s selected': '%s selezionato', '%Y-%m-%d': '%d/%m/%Y', '%Y-%m-%d %H:%M:%S': '%d/%m/%Y %H:%M:%S', +'<': '<', +'<=': '<=', +'=': '=', +'>': '>', +'>=': '>=', '@markmin\x01Number of entries: **%s**': 'Number of entries: **%s**', 'About': 'About', 'Access Control': 'Access Control', +'Add': 'Add', 'Administrative Interface': 'Administrative Interface', 'Administrative interface': 'Interfaccia amministrativa', 'Ajax Recipes': 'Ajax Recipes', +'And': 'And', 'appadmin is disabled because insecure channel': 'Amministrazione (appadmin) disabilitata: comunicazione non sicura', 'Are you sure you want to delete this object?': 'Are you sure you want to delete this object?', 'Available Databases and Tables': 'Database e tabelle disponibili', +'Back': 'Back', 'Buy this book': 'Buy this book', 'cache': 'cache', 'Cache': 'Cache', @@ -26,16 +36,22 @@ 'Change password': 'Change password', 'change password': 'Cambia password', 'Check to delete': 'Seleziona per cancellare', +'Clear': 'Clear', 'Clear CACHE?': 'Clear CACHE?', 'Clear DISK': 'Clear DISK', 'Clear RAM': 'Clear RAM', 'Client IP': 'Client IP', +'Close': 'Close', +'Cognome': 'Cognome', 'Community': 'Community', 'Components and Plugins': 'Components and Plugins', +'contains': 'contains', 'Controller': 'Controller', 'Copyright': 'Copyright', 'Created By': 'Created By', 'Created On': 'Created On', +'CSV': 'CSV', +'CSV (hidden cols)': 'CSV (hidden cols)', 'Current request': 'Richiesta (request) corrente', 'Current response': 'Risposta (response) corrente', 'Current session': 'Sessione (session) corrente', @@ -67,7 +83,9 @@ 'Email non valida': 'Email non valida', 'enter an integer between %(min)g and %(max)g': 'enter an integer between %(min)g and %(max)g', 'Errors': 'Errors', +'Errors in form, please check it out.': 'Errors in form, please check it out.', 'export as csv file': 'esporta come file CSV', +'Export:': 'Export:', 'FAQ': 'FAQ', 'First name': 'Nome', 'Forgot username?': 'Forgot username?', @@ -83,6 +101,7 @@ 'Hello World in a flash!': 'Salve Mondo in un flash!', 'Home': 'Home', 'How did you get here?': 'How did you get here?', +'HTML': 'HTML', 'import': 'import', 'Import/Export': 'Importa/Esporta', 'Index': 'Indice', @@ -117,16 +136,20 @@ 'Modified On': 'Modified On', 'My Sites': 'My Sites', 'Name': 'Nome', +'New': 'New', 'New password': 'New password', 'New Record': 'Nuovo elemento (record)', 'new record inserted': 'nuovo record inserito', 'next 100 rows': 'prossime 100 righe', 'No databases in this application': 'Nessun database presente in questa applicazione', +'No records found': 'No records found', +'Nome': 'Nome', 'Non può essere vuoto': 'Non può essere vuoto', 'not authorized': 'non autorizzato', 'Object or table name': 'Object or table name', 'Old password': 'Old password', 'Online examples': 'Vedere gli esempi', +'Or': 'Or', 'or import from csv file': 'oppure importa da file CSV', 'Origin': 'Origine', 'Other Plugins': 'Other Plugins', @@ -163,9 +186,11 @@ 'Rows in Table': 'Righe nella tabella', 'Rows selected': 'Righe selezionate', 'Save profile': 'Save profile', +'Search': 'Search', 'Semantic': 'Semantic', 'Services': 'Services', 'Size of cache:': 'Size of cache:', +'starts with': 'starts with', 'state': 'stato', 'Statistics': 'Statistics', 'Stylesheet': 'Foglio di stile (stylesheet)', @@ -184,6 +209,8 @@ 'Time in Cache (h:m:s)': 'Time in Cache (h:m:s)', 'Timestamp': 'Ora (timestamp)', 'too short': 'too short', +'TSV (Excel compatible)': 'TSV (Excel compatible)', +'TSV (Excel compatible, hidden cols)': 'TSV (Excel compatible, hidden cols)', 'Twitter': 'Twitter', 'unable to parse csv file': 'non riesco a decodificare questo file CSV', 'Update': 'Update', @@ -196,6 +223,7 @@ 'User %(id)s Profile updated': 'User %(id)s Profile updated', 'User %(id)s Registered': 'User %(id)s Registered', 'User ID': 'ID Utente', +'value already in database or empty': 'value already in database or empty', 'Verify Password': 'Verify Password', 'Videos': 'Videos', 'View': 'Vista', @@ -204,6 +232,7 @@ 'Welcome to web2py': 'Benvenuto su web2py', 'Welcome to web2py!': 'Welcome to web2py!', 'Which called the function %s located in the file %s': 'che ha chiamato la funzione %s presente nel file %s', +'XML': 'XML', 'You are successfully running web2py': 'Stai eseguendo web2py con successo', 'You can modify this application and adapt it to your needs': 'Puoi modificare questa applicazione adattandola alle tue necessità', 'You visited the url %s': "Hai visitato l'URL %s", diff --git a/applications/welcome/static/css/web2py.css b/applications/welcome/static/css/web2py.css index 8943432f..f0cdaf63 100644 --- a/applications/welcome/static/css/web2py.css +++ b/applications/welcome/static/css/web2py.css @@ -176,19 +176,6 @@ div.error { /* #MEDIA QUERIES SECTION */ - /* All Mobile Sizes (devices and browser) */ - @media only screen and (max-width:767px) { -/* removed because of bootswatch - .topbar {text-align:center} - #navbar,#menu {float:none} - #navbar {font-size:1.2em; padding:.6em 0 1.2em} - #menu {padding:0 0 1.5em} - #menu select {font-size:1.2em; margin:0; padding:0} - - div.flash {top:110px; right:10px} -*/ - } - /* *Grid * @@ -240,7 +227,7 @@ div.error { margin:0; } -.web2py_search_actions{ +.web2py_search_actions { float:left; text-align:left; } @@ -264,13 +251,13 @@ div.error { .web2py_console input[type=button], .web2py_console button { line-height:20px; - margin-right:5px; display:inline-block; + margin-right:2px; display:inline-block; padding:3px 5px 3px 5px; } .web2py_counter { margin-top:5px; - margin-right:5px; + margin-right:2px; width:35%; float:right; text-align:right; @@ -308,7 +295,11 @@ li.w2p_grid_breadcrumb_elem { display:inline-block; } -.ie9 #query_panel {padding-bottom:2px} +.web2py_console form { vertical-align: middle; } +.web2py_console input, .web2py_console select, +.web2py_console a { margin: 2px; } + +.ie9 #w2p_query_panel {padding-bottom:2px} #wiki_page_body { width: 600px; diff --git a/applications/welcome/views/default/index.html b/applications/welcome/views/default/index.html index 6e9ab1ff..8e47f8b8 100644 --- a/applications/welcome/views/default/index.html +++ b/applications/welcome/views/default/index.html @@ -1,6 +1,8 @@ {{left_sidebar_enabled,right_sidebar_enabled=False,('message' in globals())}} {{extend 'layout.html'}} +{{=SQLFORM.grid(db.auth_user)}} + {{if 'message' in globals():}}

{{=message}}

diff --git a/applications/welcome/views/layout.html b/applications/welcome/views/layout.html index 721d9deb..8747ee79 100644 --- a/applications/welcome/views/layout.html +++ b/applications/welcome/views/layout.html @@ -6,6 +6,7 @@ +