Start by creating a new branch in I211_flask called “unit-2”

 

  • Start by creating a new branch in I211_flask called “unit-2”
    • It must be in I211_flask!
  • All event data should be stored in the file ‘events.csv’ 
    • The file should contain AT LEAST 4 headers: name, date, host, description
       
  • All templates should extend base.html
  • Route: /
    Template: index.html

    • Create a homepage for your application
    • This page must contain the following:
      • logo
      • title
      • description
      • a button that takes you to the /events/ route
  • Route: /events/
    Template: events.html

    • This page will list the date and name of all events, pulling the data in from ‘events.csv’
    • Events should be ordered by date with oldest on top
    • Each event name should be a link to the individual event page (route /events/<event_id>) by event ID
    • The page should contain a button link to create a new event (route /events/create)
  • Route: /events/<event_id>
    Template: event.html

    • This page will contain all of the data for the event:
      • Event name, date, host, description.
    • The page will also contain button links to:
      • Edit the event (route: /events/<event_id>/edit)
      • Delete the event (route: /events/<event_id>/delete)
  • Route: /events/create
    Template: event_form.html

    • This page will contain a form to collect all of the data for the event:
      • Event name, date, host, description.
      • The form will also contain reset and submit buttons
      • Upon submission, the event data will be added to the events.csv file and the page will redirect to the /events/ route.
  • Route: /events/<event_id>/edit
    Template: event_form.html

    • This page will contain the same form from /event/create to collect all of the data for the event:
      • Event name, date, host, description.
    • The form will also contain reset and submit buttons
    • The pre-existing event data should be loaded into the form fields
    • Upon submission, the relevant event data will be changed in the events.csv file and the page will redirect to the /event/<event_id> route.
  • Route: /events/<event_id>/delete
    Template: delete_form.html

    • Presents a delete confirmation page for the event specified by <event_id>:
      • Display “Confirm Delete?”
      • Show the description for the event
      • The “Go Back” button takes the user back to the /event/<event_id>/ page without deleting the event.
      • The “Delete” button will delete the event data from the events.csv file and redirect back to the /events/ route.

Share This Post

Email
WhatsApp
Facebook
Twitter
LinkedIn
Pinterest
Reddit

Order a Similar Paper and get 15% Discount on your First Order

Related Questions

Assignment 1 List your name, date, and course as the

  Assignment 1 List your name, date, and course as the header The assignment must be completed in no less than 300-word count ( word document or type inside the write submit box) If you use information from sources, you must you APA format and cite within the body of

Explain the difference between Charity Care and Bad Debt in

Explain the difference between Charity Care and Bad Debt in a healthcare environment. Explain how the patient financial services personnel assist in determining which category the uncollectible account should be placed. Discuss the financial implications of gross uncollectibles on the bottom line of the healthcare institution, and explain how these

W4D MUST ANSWER ALL QUESTIONS AND WILL BE CHECKED!!!! Topic 1: Vulnerable Populations As you discovered in this week’s lectures and textbook readings, numerous vulnerable populations exist in the comm Nursing Assignment Help

W4D MUST ANSWER ALL QUESTIONS AND WILL BE CHECKED!!!! Topic 1: Vulnerable Populations As you discovered in this week’s lectures and textbook readings, numerous vulnerable populations exist in the community. Identify three local organizations in your community that deliver healthcare services to vulnerable populations. Based on your research findings, answer

Describe the terms – population and sample, in the context

Describe the terms – population and sample, in the context of statistical analysis, plus, explain how each are related to each other.  Differentiate between the terms – independent variable and dependent variable, then describe how they are related to each other.  Define two types of sampling described in the textbook

In this problem, you will calculate the profits and complete

   In this problem, you will calculate the profits and complete the payoff matrix for two restaurants. Then you will determine what decision should be made based on the payoff matrix. Finally, you will calculate the expected profits for each restaurant under each decision using the probabilities of releasing the

Develop a Power Point presentation with each of the following

Develop a Power Point presentation with each of the following disorder of the female reproductive system Include Concept, clinical manifestations, appropriate assessment skills, and the most advanced treatment for each disorder. Include pictures to make attractive your presentation and use at least 6 references, 33 slides. SCARLET FEVER ROSEOLA RUBELLA

For this assignment, refer to the scenario located in “Problems

For this assignment, refer to the scenario located in “Problems – Series A” section 10-19A of Ch. 10, “Planning for Capital Investments” of Fundamental Managerial Accounting Concepts. This scenario puts you at task as a Senior Accountant for Donovan Enterprises to identify the preferred method and best investment opportunity for

Literary Analysis: Statement on the Assassination of Martin Luther

Throughout Unit 1 and Unit 2 you have read a variety of readings focusing on empathy and leadership. For this assignment you will demonstrate your mastery of those two concepts by analyzing one of the five speeches that you have read. Statement on the Assassination of Martin Luther King, Jr.

Respond to the following scenario: You are a social advocate

Respond to the following scenario: You are a social advocate for a group of individuals in your community who feel disconnected from the community because of their distinguishing characteristic(s) (e.g., language, nationality, religion, sexual orientation, beliefs) and have experienced discrimination. Members of this group want to use a room at

Watch one of the films from the list of Classic

  Watch one of the films from the list of Classic Film Noir movies. Watch one of the films from the list of Neo-Noir movies. Compare the two films, focusing on the elements that define Film Noir.  Answer the following questions: What thematic and visual tropes are used in the

Research about ” Critical Discourse Analysis of the Political Speech

Research about ” Critical Discourse Analysis of the Political Speech of the American president  Donald Trump “ I need the following things :  Introduction  literature review ” at least 5 studies ”  Statement of the problem  hypothesis purpose of the study  significance of the study  Hypothesis Research Q – 3

The concept of the Fruit of the Poisonous Tree Doctrine

 The concept of the Fruit of the Poisonous Tree Doctrine stems directly from the Exclusionary Rule. It is a method of explaining the concept of the Exclusionary Rule. It compares the Exclusionary Rule to a Tree that is poisonous and all of the fruit from that tree is also poison.

Purpose In this discussion, you will demonstrate your understanding of

Purpose In this discussion, you will demonstrate your understanding of the general relationship between demographic characteristics and income. Task Answer the following discussion prompts in 250-300 words (total): Explain the concept of intersectionality in your own words. Pick two of the following characteristics and describe how the overlap of those

You have been hired at Maria’s Kitchen, a restaurant in

You have been hired at Maria’s Kitchen, a restaurant in Riverside. Chef and owner Maria has been asking her wait staff to take orders on paper. She would like a new system where the wait staff can type in orders. The system should also print tickets for the kitchen staff

Utilizing Chapter 6 of the book attaced, develop a compensation

 Utilizing Chapter 6 of the book attaced, develop a compensation and benefits package that you would like to be offered by your organization. There should be different plans for each group member. Use your five slides for your preferred benefits package. Demonstrate how this package will impact whether or not