# HG changeset patch # User cavaliet # Date 1372693114 -7200 # Node ID 35aca8206b40cf8d795b0861c251915b9f88dbbd # Parent dd0e7cded39d7fda60e013af42a9ef43d805123a collection parameters with title, delete collection, ajax add item diff -r dd0e7cded39d -r 35aca8206b40 src/egonomy/locale/en/LC_MESSAGES/django.mo Binary file src/egonomy/locale/en/LC_MESSAGES/django.mo has changed diff -r dd0e7cded39d -r 35aca8206b40 src/egonomy/locale/en/LC_MESSAGES/django.po --- a/src/egonomy/locale/en/LC_MESSAGES/django.po Mon Jul 01 16:31:47 2013 +0200 +++ b/src/egonomy/locale/en/LC_MESSAGES/django.po Mon Jul 01 17:38:34 2013 +0200 @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2013-06-28 08:44-0500\n" +"POT-Creation-Date: 2013-07-01 10:32-0500\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -33,8 +33,13 @@ msgid "You are not allowed to delete this fragment." msgstr "" +#: views.py:490 +msgid "You are not allowed to delete this collection." +msgstr "" + #: templates/egonomy_all_collections.html:7 -msgid "All collection" +#: templates/egonomy_all_collections.html:47 +msgid "All collections" msgstr "" #: templates/egonomy_all_collections.html:20 @@ -43,6 +48,8 @@ msgstr "" #: templates/egonomy_all_collections.html:26 +#: templates/egonomy_view_collection.html:22 +#: templates/egonomy_view_collection.html:24 msgid "Title" msgstr "" @@ -52,10 +59,12 @@ msgstr "" #: templates/egonomy_all_collections.html:34 templates/egonomy_newbase.html:48 +#: templates/egonomy_view_collection.html:85 msgid "Cancel" msgstr "" #: templates/egonomy_all_collections.html:35 templates/egonomy_newbase.html:49 +#: templates/egonomy_view_collection.html:86 msgid "Submit" msgstr "" @@ -66,10 +75,6 @@ msgstr[0] "" msgstr[1] "" -#: templates/egonomy_all_collections.html:47 -msgid "All collections" -msgstr "" - #: templates/egonomy_all_fragments.html:7 #: templates/egonomy_all_fragments.html:29 #: templates/egonomy_all_fragments.html:34 templates/egonomy_home.html:33 @@ -185,21 +190,22 @@ msgid "No collection" msgstr "" -#: templates/egonomy_base.html:36 templates/egonomy_view_fragment.html:100 +#: templates/egonomy_base.html:36 templates/egonomy_view_collection.html:76 +#: templates/egonomy_view_fragment.html:100 #: templates/partial/collection_in_list.html:21 msgid "by" msgstr "" -#: templates/egonomy_base.html:38 templates/egonomy_newbase.html:67 -#: templates/egonomy_view_collection.html:138 +#: templates/egonomy_base.html:38 templates/egonomy_newbase.html:74 +#: templates/egonomy_view_collection.html:159 msgid "Search" msgstr "" -#: templates/egonomy_base.html:47 templates/egonomy_newbase.html:81 +#: templates/egonomy_base.html:47 templates/egonomy_newbase.html:88 msgid "Log out" msgstr "" -#: templates/egonomy_base.html:49 templates/egonomy_newbase.html:83 +#: templates/egonomy_base.html:49 templates/egonomy_newbase.html:90 msgid "Log in" msgstr "" @@ -285,23 +291,35 @@ msgid "Image comment" msgstr "" -#: templates/egonomy_newbase.html:79 +#: templates/egonomy_newbase.html:57 +msgid "The item was successfully added to the collection" +msgstr "" + +#: templates/egonomy_newbase.html:58 +msgid "See the collection" +msgstr "" + +#: templates/egonomy_newbase.html:61 +msgid "An error occurred while adding the item to the collection" +msgstr "" + +#: templates/egonomy_newbase.html:86 msgid "Hello" msgstr "" -#: templates/egonomy_newbase.html:88 +#: templates/egonomy_newbase.html:95 msgid "explore" msgstr "" -#: templates/egonomy_newbase.html:90 +#: templates/egonomy_newbase.html:97 msgid "collect" msgstr "" -#: templates/egonomy_newbase.html:98 +#: templates/egonomy_newbase.html:105 msgid "my collections" msgstr "" -#: templates/egonomy_newbase.html:100 +#: templates/egonomy_newbase.html:107 msgid "my fragments" msgstr "" @@ -309,19 +327,61 @@ msgid "View a collection" msgstr "" -#: templates/egonomy_view_collection.html:100 +#: templates/egonomy_view_collection.html:28 +msgid "Thumbnail" +msgstr "" + +#: templates/egonomy_view_collection.html:32 +msgid "List" +msgstr "" + +#: templates/egonomy_view_collection.html:33 +msgid "Mosaic" +msgstr "" + +#: templates/egonomy_view_collection.html:34 +msgid "Slideshow" +msgstr "" + +#: templates/egonomy_view_collection.html:35 +msgid "Geographical" +msgstr "" + +#: templates/egonomy_view_collection.html:41 +msgid "Availability" +msgstr "" + +#: templates/egonomy_view_collection.html:45 +msgid "Visible by me only" +msgstr "" + +#: templates/egonomy_view_collection.html:46 +msgid "Visible for everyone" +msgstr "" + +#: templates/egonomy_view_collection.html:114 msgid "Display" msgstr "" -#: templates/egonomy_view_collection.html:101 +#: templates/egonomy_view_collection.html:115 msgid "Hide" msgstr "" -#: templates/egonomy_view_collection.html:101 +#: templates/egonomy_view_collection.html:115 msgid "the comments" msgstr "" -#: templates/egonomy_view_collection.html:106 +#: templates/egonomy_view_collection.html:123 +msgid "" +"Do you really want to delete this collection ? Warning : this action est " +"irreversible." +msgstr "" + +#: templates/egonomy_view_collection.html:123 +msgid "Delete this collection" +msgstr "" + +#: templates/egonomy_view_collection.html:125 msgid "Collection parameters" msgstr "" diff -r dd0e7cded39d -r 35aca8206b40 src/egonomy/locale/fr/LC_MESSAGES/django.mo Binary file src/egonomy/locale/fr/LC_MESSAGES/django.mo has changed diff -r dd0e7cded39d -r 35aca8206b40 src/egonomy/locale/fr/LC_MESSAGES/django.po --- a/src/egonomy/locale/fr/LC_MESSAGES/django.po Mon Jul 01 16:31:47 2013 +0200 +++ b/src/egonomy/locale/fr/LC_MESSAGES/django.po Mon Jul 01 17:38:34 2013 +0200 @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2013-06-28 08:46-0500\n" +"POT-Creation-Date: 2013-07-01 10:32-0500\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -35,6 +35,10 @@ msgid "You are not allowed to delete this fragment." msgstr "Vous n'êtes pas autorisé à supprimer ce fragment." +#: views.py:490 +msgid "You are not allowed to delete this collection." +msgstr "Vous n'êtes pas autorisé à supprimer cette collection." + #: templates/egonomy_all_collections.html:7 #: templates/egonomy_all_collections.html:47 msgid "All collections" @@ -46,6 +50,8 @@ msgstr "Nouvelle collection" #: templates/egonomy_all_collections.html:26 +#: templates/egonomy_view_collection.html:22 +#: templates/egonomy_view_collection.html:24 msgid "Title" msgstr "Titre" @@ -56,11 +62,13 @@ #: templates/egonomy_all_collections.html:34 #: templates/egonomy_newbase.html:48 +#: templates/egonomy_view_collection.html:85 msgid "Cancel" msgstr "Annuler" #: templates/egonomy_all_collections.html:35 #: templates/egonomy_newbase.html:49 +#: templates/egonomy_view_collection.html:86 msgid "Submit" msgstr "Envoyer" @@ -189,24 +197,25 @@ msgstr "Pas de collection" #: templates/egonomy_base.html:36 +#: templates/egonomy_view_collection.html:76 #: templates/egonomy_view_fragment.html:100 #: templates/partial/collection_in_list.html:21 msgid "by" msgstr "par" #: templates/egonomy_base.html:38 -#: templates/egonomy_newbase.html:67 -#: templates/egonomy_view_collection.html:138 +#: templates/egonomy_newbase.html:74 +#: templates/egonomy_view_collection.html:159 msgid "Search" msgstr "Rechercher" #: templates/egonomy_base.html:47 -#: templates/egonomy_newbase.html:81 +#: templates/egonomy_newbase.html:88 msgid "Log out" msgstr "Se déconnecter" #: templates/egonomy_base.html:49 -#: templates/egonomy_newbase.html:83 +#: templates/egonomy_newbase.html:90 msgid "Log in" msgstr "Se connecter" @@ -292,23 +301,35 @@ msgid "Image comment" msgstr "Commentaire de l'image" -#: templates/egonomy_newbase.html:79 +#: templates/egonomy_newbase.html:57 +msgid "The item was successfully added to the collection" +msgstr "L'élément a été ajouté avec succès à la collection" + +#: templates/egonomy_newbase.html:58 +msgid "See the collection" +msgstr "Voir la collection" + +#: templates/egonomy_newbase.html:61 +msgid "An error occurred while adding the item to the collection" +msgstr "Une erreur est survenue pendant l'ajout de l'élément à la collection" + +#: templates/egonomy_newbase.html:86 msgid "Hello" msgstr "Bonjour" -#: templates/egonomy_newbase.html:88 +#: templates/egonomy_newbase.html:95 msgid "explore" msgstr "explorer" -#: templates/egonomy_newbase.html:90 +#: templates/egonomy_newbase.html:97 msgid "collect" msgstr "collectionner" -#: templates/egonomy_newbase.html:98 +#: templates/egonomy_newbase.html:105 msgid "my collections" msgstr "mes collections" -#: templates/egonomy_newbase.html:100 +#: templates/egonomy_newbase.html:107 msgid "my fragments" msgstr "mes fragments" @@ -316,19 +337,62 @@ msgid "View a collection" msgstr "Voir une collection" -#: templates/egonomy_view_collection.html:100 +#: templates/egonomy_view_collection.html:28 +msgid "Thumbnail" +msgstr "Vignette" + +#: templates/egonomy_view_collection.html:32 +msgid "List" +msgstr "Liste" + +#: templates/egonomy_view_collection.html:33 +msgid "Mosaic" +msgstr "Mosaïque" + +#: templates/egonomy_view_collection.html:34 +msgid "Slideshow" +msgstr "Diaporama" + +#: templates/egonomy_view_collection.html:35 +msgid "Geographical" +msgstr "Géographique" + +#: templates/egonomy_view_collection.html:41 +msgid "Availability" +msgstr "Disponibilité" + +#: templates/egonomy_view_collection.html:45 +msgid "Visible by me only" +msgstr "Visible par moi seulement" + +#: templates/egonomy_view_collection.html:46 +msgid "Visible for everyone" +msgstr "Visible pour tout le monde" + +#: templates/egonomy_view_collection.html:114 msgid "Display" msgstr "Afficher" -#: templates/egonomy_view_collection.html:101 +#: templates/egonomy_view_collection.html:115 msgid "Hide" msgstr "Masquer" -#: templates/egonomy_view_collection.html:101 +#: templates/egonomy_view_collection.html:115 msgid "the comments" msgstr "les commentaires" -#: templates/egonomy_view_collection.html:106 +#: templates/egonomy_view_collection.html:123 +msgid "" +"Do you really want to delete this collection ? Warning : this action est " +"irreversible." +msgstr "Voulez-vous vraiment supprimer cette collection ? Attention : cette action est " +"irréversible." + +#: templates/egonomy_view_collection.html:123 +msgid "Delete this collection" +msgstr "Supprimer cette collection" + +#: templates/egonomy_view_collection.html:125 msgid "Collection parameters" msgstr "Paramètres de la collection" diff -r dd0e7cded39d -r 35aca8206b40 src/egonomy/static/egonomy/js/main.js --- a/src/egonomy/static/egonomy/js/main.js Mon Jul 01 16:31:47 2013 +0200 +++ b/src/egonomy/static/egonomy/js/main.js Mon Jul 01 17:38:34 2013 +0200 @@ -64,17 +64,17 @@ url: formel.attr("action"), type: formel.attr("method"), data: formel.serialize(), - success: function() { + success: function(text) { $('.popin-wrap').fadeIn(function(){ $(".additem-success").show(); }); - console.log.apply(console,arguments); + //console.log("received : " + text); + $(".additem-success .collection-url").attr("href", text); }, error: function() { $('.popin-wrap').fadeIn(function(){ $(".additem-error").show(); }); - console.log.apply(console,arguments); } }); formel.parents(".popin").hide(); diff -r dd0e7cded39d -r 35aca8206b40 src/egonomy/templates/egonomy_all_collections.html --- a/src/egonomy/templates/egonomy_all_collections.html Mon Jul 01 16:31:47 2013 +0200 +++ b/src/egonomy/templates/egonomy_all_collections.html Mon Jul 01 17:38:34 2013 +0200 @@ -21,7 +21,7 @@
-
+

@@ -53,7 +53,7 @@ {% if nb_pages > 1 %}{% build_pagination nb_pages cur_page_nb url_pagination "clickable" %}{% endif %}

    {% for col in results %} -
  • +
  • {% include "partial/collection_in_list.html" %}
  • {% endfor %} diff -r dd0e7cded39d -r 35aca8206b40 src/egonomy/templates/egonomy_newbase.html --- a/src/egonomy/templates/egonomy_newbase.html Mon Jul 01 16:31:47 2013 +0200 +++ b/src/egonomy/templates/egonomy_newbase.html Mon Jul 01 17:38:34 2013 +0200 @@ -33,7 +33,7 @@

    {% trans "The item was successfully added to the collection" %}

    +

    {% trans "See the collection" %}

    -

    {% trans "An error occurred while addin the item to the collection" %}

    +

    {% trans "An error occurred while adding the item to the collection" %}

    {% endif %} {% block popins %}{% endblock %} diff -r dd0e7cded39d -r 35aca8206b40 src/egonomy/templates/egonomy_view_collection.html --- a/src/egonomy/templates/egonomy_view_collection.html Mon Jul 01 16:31:47 2013 +0200 +++ b/src/egonomy/templates/egonomy_view_collection.html Mon Jul 01 17:38:34 2013 +0200 @@ -5,63 +5,75 @@ {% block title %}{% trans "View a collection" %}{% endblock %} {% block popins %} + {% if user.is_authenticated %} + {% ifequal user col.author %}

    PARAMÈTRES DE LA COLLECTION

    - +
    + - + + + + + - + - + - +
    Vignette : + +
    Visibilité :
    - +
    -
      +
      • -

        Collection n°1

        -

        par Hubert Trucchose

        +

        {{ col.title }}

        +

        {% trans "by" %} {{ col.author }}

        @@ -70,12 +82,14 @@
      - Annuler - -
      + {% trans "Cancel" %} + +
    {% csrf_token %}
+ {% endifequal %} + {% endif %} {% endblock %} {% block content %} @@ -95,15 +109,22 @@
{% if items %} @@ -151,7 +172,7 @@ {% endblock %} {% block js_page %} - +{% ifequal display "mosaic" %}{% endifequal %}