diff -r 03967b6ada7c -r 4c7b33bf2795 src/widgets/CreateAnnotation.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/widgets/CreateAnnotation.js Thu Apr 26 19:18:57 2012 +0200 @@ -0,0 +1,129 @@ +IriSP.Widgets.CreateAnnotation = function(player, config) { + IriSP.Widgets.Widget.call(this, player, config); + this.lastAnnotation = false; +}; + +IriSP.Widgets.CreateAnnotation.prototype = new IriSP.Widgets.Widget(); + +IriSP.Widgets.CreateAnnotation.prototype.defaults = { + single_time_mode : false, + +} + +IriSP.Widgets.CreateAnnotation.prototype.messages = { + "en": { + "from_time" : "from", + "to_time" : "to", + "submit": "Submit", + "add_keywords": "Add keywords", + "add_polemic_keywords": "Add polemic keywords", + "your_name": "Your name", + "type_description": "Type the full description of your annotation here.", + "wait_while_processing": "Please wait while your request is being processed...", + "error_while_contacting": "An error happened while contacting the server. Your annotation has not been saved.", + "empty_annotation": "Your annotation is empty. Please write something before submitting.", + "annotation_saved": "Thank you, your annotation has been saved.", + "share_annotation": "Would you like to share it on social networks ?", + "share_on": "Share on", + "more_tags": "More tags", + "cancel": "Cancel" + }, + "fr": { + "from_time" : "from", + "to_time" : "à", + "submit": "Envoyer", + "add_keywords": "Ajouter des mots-clés", + "add_polemic_keywords": "Ajouter des mots-clés polémiques", + "your_name": "Votre nom", + "type_description": "Rédigez le contenu de votre annotation ici.", + "wait_while_processing": "Veuillez patienter pendant le traitement de votre requête...", + "error_while_contacting": "Une erreur s'est produite en contactant le serveur. Votre annotation n'a pas été enregistrée", + "empty_annotation": "Votre annotation est vide. Merci de rédiger un texte avant de l'envoyer.", + "annotation_saved": "Merci, votre annotation a été enregistrée.", + "share_annotation": "Souhaitez-vous la partager sur les réseaux sociaux ?", + "share_on": "Partager sur", + "more_tags": "Plus de mots-clés", + "cancel": "Cancel" + } +} + +IriSP.Widgets.CreateAnnotation.prototype.template = + '
' + + '
' + + + + '
' + + '
' + +/* + + '
' + + '
' + + '
' + + '
' + + ' {{^cinecast_version}}
' + + ' {{/cinecast_version}}' + + '
' + + '
' + + ' {{#show_from_field}}' + + ' ' + + ' {{/show_from_field}}' + + ' ' + + '
' + + ' {{^user_avatar}} ' + + ' {{/user_avatar}}' + + ' {{#user_avatar}} ' + + ' {{/user_avatar}}' + + '
' + + '
' + + '
' + + ' ' + + ' {{#tags.length}}' + + '
' + + ' ' + + ' ' + + '
' + + ' {{#random_tags}}' + + ' ' + + ' {{/random_tags}}' + + ' {{/tags.length}}' + + ' {{#polemic_mode}}' + + ' {{#polemics.length}}' + + '
' + + ' ' + + ' ' + + '
' + + ' {{/polemics.length}}' + + ' {{/polemic_mode}}' + + '
' + + ' ' + + ' ' + + ' ' + + '
' +*/ +