From c7ac4ac10ad1f79f397ee465766f7bdfb88757cb Mon Sep 17 00:00:00 2001 From: Phyks Date: Fri, 6 Sep 2013 22:08:13 +0200 Subject: [PATCH] Updated json theme --- TODO | 3 ++- tpl/json/edit_users.html | 39 +++------------------------- tpl/json/index.html | 1 + tpl/json/new_invoice.html | 53 +-------------------------------------- tpl/json/settings.html | 2 ++ 5 files changed, 10 insertions(+), 88 deletions(-) diff --git a/TODO b/TODO index 5a32992..7d74cd4 100755 --- a/TODO +++ b/TODO @@ -1,5 +1,6 @@ * Don't cache the username -* JSON output => do the template +* JSON output => finish the template +* API inc/Invoices.class.php : ======================== diff --git a/tpl/json/edit_users.html b/tpl/json/edit_users.html index cb9669c..9896e63 100644 --- a/tpl/json/edit_users.html +++ b/tpl/json/edit_users.html @@ -3,6 +3,7 @@ {/if} {if condition="$view == 'list_users'"} +TODO ***

List of users

You can also add a user.

@@ -25,38 +26,6 @@ {/loop}
-{elseif condition="$view == 'edit_user'"} -

{$user_id != -1 ? 'Edit' : 'Add'} a user

-
-

- -

-

- -

-

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

-

- Give admin rights to this user ?
-
- -

-

- - {if condition="$user_id != -1"}{/if} - -

-
- -{elseif condition="$view == 'password'"} -

Edit your password

-
-

-

Toggle visible

-

-

-{/if} +{else} + {if condition="LANG == 'en'}Nothing to show.{else}Il n'y a rien à afficher.{/if} +{/else} diff --git a/tpl/json/index.html b/tpl/json/index.html index cca8039..8f435f9 100755 --- a/tpl/json/index.html +++ b/tpl/json/index.html @@ -1,3 +1,4 @@ +TODO *** {if condition="$notice != ''"}

{$notice}

{/if} diff --git a/tpl/json/new_invoice.html b/tpl/json/new_invoice.html index febe8f0..c9f38a6 100755 --- a/tpl/json/new_invoice.html +++ b/tpl/json/new_invoice.html @@ -1,52 +1 @@ -{if condition="$error != ''"} -

{$error}

-{/if} - -

Add a bill

- -
-
- Expense -

- -

- -

- - {$currency} -

-

- - / - / - - -

-
-
- Users in ? - {loop="users"} -
and . - {/loop} -
-

- - {if condition="$id != 0"}{/if} - -

-
+{if condition="LANG == 'en'}Nothing to show.{else}Il n'y a rien à afficher.{/if} diff --git a/tpl/json/settings.html b/tpl/json/settings.html index 66af828..190cf0f 100644 --- a/tpl/json/settings.html +++ b/tpl/json/settings.html @@ -1,4 +1,5 @@ {if condition="!$show_settings"} +TODO ***

Edit homepage notice

{if condition="$error"}

{$error}

{/if}
@@ -14,6 +15,7 @@
{else} +TODO ***

Change settings of your Bouffe@Ulm installation

{if condition="$error"}

{$error}

{/if}