+ if (source.table == "Loaned") {
+ var dialog = new Gtk.Dialog ();
+ dialog.set_title (_("Add to loaned movies"));
+
+ var contact = new Hildon.Entry (SizeType.FINGER_HEIGHT);
+ contact.set_placeholder ("Contact");
+ var date = new Hildon.DateButton (SizeType.FINGER_HEIGHT, ButtonArrangement.VERTICAL);
+ date.set_title (_("Loaned on"));
+ date.set_alignment (0.0f, 0.5f, 1.0f, 1.0f);
+
+ content = (Gtk.VBox) dialog.get_content_area ();
+ content.pack_start (contact, true, false, 0);
+ content.pack_start (date, true, false, 0);
+
+ dialog.add_button (_("Done"), Gtk.ResponseType.OK);
+ dialog.show_all ();
+ res = dialog.run ();
+ dialog.destroy ();
+ if (res == Gtk.ResponseType.OK) {
+ source.add_movie (movie);
+
+ var banner = (Banner) Banner.show_information_with_markup (window, null, _("'%s' added to list of loaned movies").printf (movie.title, source.get_name ()));
+ banner.set_timeout (1500);
+ }
+ } else {
+ source.add_movie (movie);
+
+ var banner = (Banner) Banner.show_information_with_markup (window, null, _("'%s' added to list '%s'").printf (movie.title, source.get_name ()));
+ banner.set_timeout (1500);
+ }