We want to open a popup that allows the user to update an article. We already have the ‘ArticleEdit’ Form which has all the inputs we’ll need, so we’ll also use this Form for updating articles. (Re-using our hard work is great!)

To do this, we first need to import the ‘ArticleEdit’ inside our ‘ArticleView’ Form:

from ..ArticleEdit import ArticleEdit

Next, customise the alert to display the ‘ArticleEdit’ Form:

  def edit_article_button_click(self, **event_args):
    # Open an alert displaying the 'ArticleEdit' Form
      title="Update Article",