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 Content ROI is one of the most common financial

ROI is one of the most common financial measuring tools. Being able to calculate the ROI or expected ROI allows us to make the best decisions about where to invest our funds for the most return on our investment over time. Part 1 Using the numbers in Course Scenario: Phoenix

Review the Learning Resources for this week and other resources

Review the Learning Resources for this week and other resources you have found in the Library or online, then respond to the following bullet points in a 2- to 3-page: What is the goal of a descriptive statistic? Provide an example of a descriptive statistic HR may use (besides turnover). 

Reflect again on the scenario presented in this module’s introduction.

Reflect again on the scenario presented in this module’s introduction. How might Sabrina’s feelings be similar to your own when you first started to review Connor Street’s evaluation data? What additional information might have been helpful to have as you tried to use the data to determine program quality? Effective

In this assignment, you will continue your research into different

 In this assignment, you will continue your research into different programming paradigms through the evaluation of Structured, Procedural, Functional, and Object_Oriented paradigms. You will be analyzing sequence, selection, and loop, the relational comparison operators, precedence when combining AND and OR operators, and the case structure.  Instructions: Part 1: Research –

When you began your MS Program, you enrolled in either

  When you began your MS Program, you enrolled in either the MS in Social and Community Services or the MS in Leadership and Organizational Management. Identify which of these two is your degree program. In your initial post, identify if you are choosing to conduct a Research Proposal or

Week 3 individual assignment country analysis

Assignment Overview: You have already identified industry opportunity (buyer size and growth trends) and industry threats for your client. Now you will turn to country level analyses to find countries with positive opportunity for your client, and trends and threats that your client would need to mitigate if it entered

Explain the causes of the global financial and economic crisis that

 What effect did it have on the global economy? How did the global economy recover? What kind of fiscal and monetary policies were implemented? What are the challenges that remain for the global economy? Your well-written paper should meet the following requirements: · 4-6 pages in length · Support your

The on-premise application has the following characteristics: • 10 million

  The on-premise application has the following characteristics: • 10 million active users and growing • Running on a mix of RHEL 6.x and Ubuntu 14.x based systems, with little to no patch management • Basic three-tier LAMP stack, with network-attached storage for images • Highly available with 99.95% SLA

Service Encounter Journal and Paper

Premium Paper Help is a professional writing service that provides original papers. Our products include academic papers of varying complexity and other personalized services, along with research materials for assistance purposes only. All the materials from our website should be used with proper references.

Produce an evidence-based business report (3-5 pages) that makes fiscal

  Produce an evidence-based business report (3-5 pages) that makes fiscal and monetary recommendations to combat the hypothetical recession impacting the economy in the provided scenario. Introduction In this assessment, you will produce a business report that makes well-supported fiscal and monetary recommendations to combat a hypothetical recession impacting the

Biopsychosocialspiritual assessment – Premium Paper Help

Premium Paper Help is a professional writing service that provides original papers. Our products include academic papers of varying complexity and other personalized services, along with research materials for assistance purposes only. All the materials from our website should be used with proper references.

Analyze these controversial issues based on your review of this

  Analyze these controversial issues based on your review of this week’s required Learning Resources. In your Assignment, do the following: Present an argument for your stance with respect to the first controversial issue regarding substance-related disorders: Is it possible for individuals with substance-related disorders, such as those who abuse

Answer the following questions CH3 1) How might different ethical

Answer the following questions  CH3 1) How might different ethical philosophies influence how mangers make decisions when it comes to the offshoring of jobs? 3) In recent years, rules have tightened such that those who work for the U.S. Government in trade negotiations are now restricted from working with lobbyist

Your assignment is to select three of the cases, policies,

  Your assignment is to select three of the cases, policies, or laws listed below and write a summary of a minimum 1 page of each. After writing the summary, you will have a second section for each of a minimum 2 pages of the impact the selected case, policy,

Your final paper will demonstrate your mastery of Management in

  Your final paper will demonstrate your mastery of Management in a Global Environment and challenge you to apply learned concepts in real-world applications.  This Reflection Paper is a research-based paper on a selected topic of your choosing.  Any topic covered in class may be used.  You may also combine