diff --git a/TODO b/TODO index 8ff3bfb..14a5cb8 100755 --- a/TODO +++ b/TODO @@ -18,6 +18,7 @@ TODO : * Add / Edit a bill * JSON output * Arrow to toggle visible password +* Change tpl easily To test : ========= diff --git a/index.php b/index.php index 1397179..af4d643 100644 --- a/index.php +++ b/index.php @@ -10,6 +10,7 @@ require_once('inc/CSRF.inc.php'); raintpl::$tpl_dir = 'tpl/'; raintpl::$cache_dir = 'tmp/'; + raintpl::configure('base_url', htmlspecialchars(BASE_URL)); // Define raintpl instance $tpl = new raintpl(); @@ -20,6 +21,9 @@ $tpl->assign('base_url', htmlspecialchars(BASE_URL)); $tpl->assign('currency', htmlspecialchars(CURRENCY)); $tpl->assign('email_webmaster', htmlspecialchars(EMAIL_WEBMASTER)); + + // TODO : Avoid a bug in rainTPL with img near input + $tpl->configure('path_replace_list', array('a', 'img', 'link', 'script')); // Set sessions parameters ini_set('session.use_cookies', 1); diff --git a/install.php b/install.php index 7826415..6207175 100644 --- a/install.php +++ b/install.php @@ -139,7 +139,7 @@

-

Toggle visible

+

Toggle visible


Note : You must create this database first. @@ -165,7 +165,7 @@ Administrator

/>

/>

-

Toggle visible

+

Toggle visible

type="submit" value="Install">

diff --git a/tpl/connection.html b/tpl/connection.html index f206ce4..f1e722a 100644 --- a/tpl/connection.html +++ b/tpl/connection.html @@ -4,7 +4,7 @@

-

+

Toggle visible

Forgotten password ?

diff --git a/tpl/css/style.css b/tpl/css/style.css index 6212b21..33ade18 100644 --- a/tpl/css/style.css +++ b/tpl/css/style.css @@ -15,6 +15,17 @@ fieldset { margin-bottom: 1em; } +form a { + position: relative; +} + +form img { + height: 1.5em; + vertical-align: middle; + position: absolute; + left: .5em; +} + table { margin: auto; text-align: center; diff --git a/tpl/edit_users.html b/tpl/edit_users.html index 0093843..1e85862 100644 --- a/tpl/edit_users.html +++ b/tpl/edit_users.html @@ -37,7 +37,7 @@

- + Toggle visible {if condition="$user_id != -1"}
Note : Leave blank this field if you don't want to edit password. {/if} @@ -58,7 +58,7 @@

Edit your password

-

+

Toggle visible

{/if} diff --git a/tpl/img/toggleVisible.png b/tpl/img/toggleVisible.png new file mode 100644 index 0000000..4fad9d2 Binary files /dev/null and b/tpl/img/toggleVisible.png differ diff --git a/tpl/settings.html b/tpl/settings.html index 471f42c..a5b25ee 100644 --- a/tpl/settings.html +++ b/tpl/settings.html @@ -26,7 +26,7 @@

- Toggle visible
+ Toggle visible
Note : Leave the above field blank if you don't want to change your password.