diff --git a/Project/php/assets/img/user-avatar.png b/Project/php/assets/img/user-avatar.png new file mode 100755 index 0000000..37d5c16 Binary files /dev/null and b/Project/php/assets/img/user-avatar.png differ diff --git a/Project/php/templates/addVocabList.html b/Project/php/templates/addVocabList.html index 7e096be..c83366c 100755 --- a/Project/php/templates/addVocabList.html +++ b/Project/php/templates/addVocabList.html @@ -19,27 +19,25 @@ {% include 'navBar.twig' %}
-
-

Add words

+

Add words

{% if userID is defined %} -
- + +
{% for i in 0..20 %} - - + + {% endfor %} - +
- +
{% endif %} -
\ No newline at end of file diff --git a/Project/php/templates/groupContainer.twig b/Project/php/templates/groupContainer.twig index 80c7729..962336a 100755 --- a/Project/php/templates/groupContainer.twig +++ b/Project/php/templates/groupContainer.twig @@ -1,5 +1,5 @@
- +
@@ -12,7 +12,7 @@ {% if groups is defined %} {% for row in groups %} - + @@ -20,13 +20,13 @@
ID
{{ row.id }} {{ row.num }} {{ row.year }} {% if actions is defined %} {% if 'showGroupDetails' in actions %} - Show + Show {% endif %} {% if 'removeGroup' in actions %} - Remove + Remove {% endif %} {% if 'removeVocabFromGroup' in actions %} - Remove from group + Remove from group {% endif %} {% if 'addVocabToGroup' in actions %} Add to group diff --git a/Project/php/templates/manageVocabListView.html b/Project/php/templates/manageVocabListView.html index a2fcf5f..1371bb7 100755 --- a/Project/php/templates/manageVocabListView.html +++ b/Project/php/templates/manageVocabListView.html @@ -17,23 +17,24 @@ - {% include 'navBar.twig' %}
-
+

My lists

{% include 'vocabularyContainer.twig' with {'actions' : ['affAllVocab', 'delById', 'getContent' ], 'vocabularies' : vocabularies, 'vocabID' : vocabID, 'content' : content } %} -
-
+
+ +

Content

{% if content is defined %} - - - - - +
French wordEnglish word
+ + + + {% for trad in content %} @@ -42,24 +43,20 @@ {% endfor %}
French wordEnglish word
{{trad.word1}}
{% endif %} - -
+
+

Groups with vocab

{% if vocabID is defined %} {% include 'groupContainer.twig' with {'actions' : 'removeVocabFromGroup', groups : groupsVocab } %} {% endif %} - +
-
+

Groups without vocab

{% if groupsNoVocab is defined and vocabID is defined %} {% include 'groupContainer.twig' with {'actions' : 'addVocabToGroup', groups : groupsNoVocab } %} {% endif %} -
- - - - + diff --git a/Project/php/templates/modifyPasswordForm.twig b/Project/php/templates/modifyPasswordForm.twig index bfcb089..c2ed904 100755 --- a/Project/php/templates/modifyPasswordForm.twig +++ b/Project/php/templates/modifyPasswordForm.twig @@ -1,6 +1,6 @@
- - - - + + + +
\ No newline at end of file diff --git a/Project/php/templates/myAccountView.html b/Project/php/templates/myAccountView.html index d21e341..708f4cf 100755 --- a/Project/php/templates/myAccountView.html +++ b/Project/php/templates/myAccountView.html @@ -17,26 +17,20 @@ - {% include 'navBar.twig' %}
-
-

My account

+
+

My account

{% if user is defined %} - + @@ -51,11 +45,11 @@
Image : {{user.image}}
ID : {{user.id}}
Nickname : {{user.nickname}}
- - + +
Group : {{user.group}}
Extra Time : {{user.extraTime? 'yes' : 'no'}}
-
-
+
+

Modify password

{% include 'modifyPasswordForm.twig' %} - +
{% endif %} diff --git a/Project/php/templates/usersView.html b/Project/php/templates/usersView.html index c3f01e4..f22a317 100755 --- a/Project/php/templates/usersView.html +++ b/Project/php/templates/usersView.html @@ -11,9 +11,9 @@ {% include 'navBar.twig' %} {% if users is defined %}
-
- - +
+
+ diff --git a/Project/php/templates/vocabList.html b/Project/php/templates/vocabList.html index 56df273..de13dc2 100755 --- a/Project/php/templates/vocabList.html +++ b/Project/php/templates/vocabList.html @@ -28,8 +28,8 @@ {% include 'navBar.twig' %} {% if vocabularies is defined %}
-
-
+
+
{% for row in vocabularies %} {% endfor %}
@@ -41,7 +41,7 @@
-
+
{% endif %} diff --git a/Project/php/templates/vocabularyContainer.twig b/Project/php/templates/vocabularyContainer.twig index 551329b..1b926c2 100755 --- a/Project/php/templates/vocabularyContainer.twig +++ b/Project/php/templates/vocabularyContainer.twig @@ -1,35 +1,24 @@ - - - - - - - +
IDNameImageAuthor
+ + + + + {% if vocabularies is defined %} {% for row in vocabularies %} - {% if vocabID is defined and vocabID == row.id %} - - {% else %} - - {% endif %} + - - - {% if actions is defined%} + {% if actions is defined %}
IDNameActions
{{ row.id }} {{ row.name }}{{ row.image }}{{ row.author }} {% if 'getContent' in actions %} - - - + Get content {% endif %} {% if 'delById' in actions %} - - - + Remove {% endif %} {% endif %}