diff --git a/src/pfwbged/collection/locales/fr/LC_MESSAGES/pfwbged.collection.po b/src/pfwbged/collection/locales/fr/LC_MESSAGES/pfwbged.collection.po index 0e8ad3b..ef94697 100644 --- a/src/pfwbged/collection/locales/fr/LC_MESSAGES/pfwbged.collection.po +++ b/src/pfwbged/collection/locales/fr/LC_MESSAGES/pfwbged.collection.po @@ -22,6 +22,14 @@ msgstr "Ajouter" msgid "Add Collection Portlet" msgstr "Ajouter un portlet de collection" +#: ../templates/view_form.pt:23 +msgid "Cancel" +msgstr "Annuler" + +#: ../templates/view_form.pt:26 +msgid "Confirm" +msgstr "Confirmer" + #: ../searchview.py:372 msgid "Creation Date" msgstr "Date de création" diff --git a/src/pfwbged/collection/locales/pfwbged.collection.pot b/src/pfwbged/collection/locales/pfwbged.collection.pot index 8faa415..9db63fc 100644 --- a/src/pfwbged/collection/locales/pfwbged.collection.pot +++ b/src/pfwbged/collection/locales/pfwbged.collection.pot @@ -25,6 +25,14 @@ msgstr "" msgid "Add Collection Portlet" msgstr "" +#: ../templates/view_form.pt:23 +msgid "Cancel" +msgstr "" + +#: ../templates/view_form.pt:26 +msgid "Confirm" +msgstr "" + #: ../searchview.py:372 msgid "Creation Date" msgstr "" diff --git a/src/pfwbged/collection/pfwbcollection.css b/src/pfwbged/collection/pfwbcollection.css index 290f02d..4cd2f0f 100644 --- a/src/pfwbged/collection/pfwbcollection.css +++ b/src/pfwbged/collection/pfwbcollection.css @@ -128,3 +128,15 @@ a.batch-link.current { #form-widgets-sort_reversed-0 { display: none; } + +#iframe-controls { + text-align: center; +} + +#iframe-controls input[type=submit] { + height: 2em; + font-size: 1.2em; + padding-left: 0.5em; + padding-right: 0.5em; + margin: 1em 0.5em 0em 0.5em; +} diff --git a/src/pfwbged/collection/pfwbcollection.js b/src/pfwbged/collection/pfwbcollection.js index 3ff09ed..cc7a0c9 100644 --- a/src/pfwbged/collection/pfwbcollection.js +++ b/src/pfwbged/collection/pfwbcollection.js @@ -521,4 +521,13 @@ function select_metatype(elem) $(this).find('select:disabled').enable(); }); + $('#confirm-overlay').click(function() { + $('div.close', window.parent.document).click(); + }); + $('#cancel-overlay').click(function() { + $('#searchresults input:checkbox').removeAttr('checked'); + $('#searchresults tr').removeClass('selected'); + $('div.close', window.parent.document).click(); + }); + }(jQuery)); diff --git a/src/pfwbged/collection/templates/view_form.pt b/src/pfwbged/collection/templates/view_form.pt index 8ed4e5a..22c0682 100644 --- a/src/pfwbged/collection/templates/view_form.pt +++ b/src/pfwbged/collection/templates/view_form.pt @@ -17,5 +17,16 @@
+
+ + +
+ diff --git a/src/pfwbged/collection/widget.py b/src/pfwbged/collection/widget.py index 4810c0b..7c95d62 100644 --- a/src/pfwbged/collection/widget.py +++ b/src/pfwbged/collection/widget.py @@ -50,6 +50,6 @@ class PFWBRelatedDocsWidget(RelatedDocsWidget): $(this).after(" "); }); - """ % dict(search_url=api.portal.get().absolute_url() + '/pfwbsearch?iframe', + """ % dict(search_url=api.portal.get().absolute_url() + '/pfwbsearch?iframe=1', id=self.name.replace('.', '-'), anchor_text=translate(_(u'Add'), context=self.request))