Skip to content

Latest commit

 

History

History
84 lines (53 loc) · 2.05 KB

README.md

File metadata and controls

84 lines (53 loc) · 2.05 KB

Tour Lead CRUD Test

Overview

This test is for a simple Django CRUD views to add, edit and display tour leaders.

UI mockup is in crud-test.html.

Just implement as much functionality as you can in a time-box of 2 hours focusing fist on quality rather than quantity.

There're a lot of requirements so you're not expected to complete all of them, implement what you can and do it well, And don't leave half implemented code and functionality, remove anything that's not completely finished in the final result.

At least the first function (Add Lead) has to be implemented perfectly from every perspective (function, logic, code quality, tests, UX).

Functionality to implement (in order of priority)

1. Add Tour Lead view

Fields:

  • Name
    • Required
  • Gender
    • Required
    • Widget: Horizontal radio buttons
  • Languages
    • Required: at least one language should be added
    • Widget: Dropdown
  • Card number
    • Length: 8-15
    • Only numbers and capital letters: X, T, W are allowed
  • Expiry date
    • Required if Card number is not empty
    • Has to be at least 6 months into the future
    • Widget: Datepicker
  • Professional
    • Required
    • Widget: horizontal radio buttons

2. Tour Leads List view

3. Edit Tour Lead view

Same as add

4. Tour Lead Detail view

5. Delete Tour Lead

6. Pagination

7. Batch Delete

Project setup

  1. Install dependencies:
pip install -r requirements.txt
  1. Run django server:
python manage.py runserver
  1. Open http://localhost:8000/leads/ in a browser

Good Luck!