forked from nus-cs2103-AY1819S1/addressbook-level4
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #195 from souless94/ttv1.3
This commit resolves issue #192,188,186,184,179,182,
- Loading branch information
Showing
13 changed files
with
82 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -128,7 +128,7 @@ Examples: | |
Edits the phone number and email address of the 1st person to be `91234567` and `[email protected]` respectively. | ||
* `edit 2 n/Betsy Crower t/` + | ||
Edits the name of the 2nd person to be `Betsy Crower` and clears all existing tags. | ||
* `edit 1 sl/C:\Users\admin\Downloads\cs2103\tiredAndSadness` + | ||
* `edit 1 fl/C:\Users\admin\Downloads\cs2103\tiredAndSadness` + | ||
Edits the stored location of the 1st person to be `C:/Users/admin/Downloads/cs2103/tiredAndSadness/` respectively. | ||
|
||
=== Finding a person : `find` (ZhiWei) | ||
|
@@ -274,30 +274,47 @@ Or right click on timetable and select the reload page option. | |
Format: `add_timetable INDEX [fl/FILE_LOCATION]` | ||
|
||
**** | ||
* add details of a timetable csv file to the person specified by `INDEX` from the stored folder of the person specified by `INDEX` if no file location is present. | ||
* Adds details of a timetable csv file to the person specified by the `INDEX` from file location if file location is present. | ||
* Add the timetable at the specified `INDEX`. | ||
* Existing values will be updated to the input values. | ||
* timings are start time of the event. Eg. if timetable shows 0800, it means the event is from 0800 to 0900. | ||
* The index refers to the index number shown in the displayed person list. | ||
* The index *must be a positive integer* 1, 2, 3, ... | ||
* Will not be able to add if timetable is not present in the stored location of person specified by `INDEX` | ||
**** | ||
|
||
Examples: | ||
Example (user does not provide a file path): | ||
|
||
* `add_timetable 1` | ||
* add_timetable will add timetable from the given csv file from the person specified by the `INDEX` from file location if file location is present. If not, NUSHangs will throw an error message if the file cannot be found from the given (typed) file path | ||
* Will not be able to add if timetable is not present in the stored location of person specified by `INDEX` | ||
|
||
Example (user provides a file path): | ||
|
||
* `add_timetable 1 fl/C:\Users\timetable\timetable.csv` | ||
|
||
* FOR WINDOWS: | ||
** `add_timetable fl/C:\Users\timetable\timetable.csv` (absolute pathing) or | ||
** `add_timetable fl/timetable.csv` (relative pathing - if you save the .csv file in the same directory as the .jar file). | ||
* FOR MAC: | ||
** `add_timetable 1 fl//FILEPATH` (absolute pathing - note the double slashes) or | ||
** `add_timetable 1 fl/timetable.csv` (relative pathing). | ||
* add_timetable will add timetable from the given csv file. | ||
* the first row and first column should be left alone | ||
* can only edit in given rows and columns of the timetable. | ||
* any invalid timetable will be ignored. | ||
* example of correctly formatted timetable is given below | ||
|
||
image::add_timetable_fl.png[width="700"] | ||
|
||
=== Editing a timetable: `edit_timetable` | ||
Edits a timetable timeslot of the timetable from the person specified by the `INDEX`. + | ||
Format: `add_timetable INDEX day/DAY timing/TIMING [m/DETAILS] ` | ||
Format: `edit_timetable INDEX day/DAY timing/TIMING [m/DETAILS]` | ||
|
||
**** | ||
* timings are in 24h format from 0800 to 2300. | ||
* timings are start time of the event. Eg. if timetable shows 0800, it means the event is from 0800 to 0900. | ||
* Existing values will be overwritten by the input details. | ||
* days are days of a week in *full name(case insensitive)* from Monday to Friday. | ||
* edit the timetable at the specified `INDEX`. | ||
* can only edit 1 hour timeslot at a time. | ||
* The index refers to the index number shown in the displayed person list. | ||
* The index *must be a positive integer* 1, 2, 3, ... | ||
**** | ||
|
@@ -318,6 +335,7 @@ Format: `download_timetable INDEX ` | |
* The index refers to the index number shown in the displayed person list. | ||
* The index *must be a positive integer* 1, 2, 3, ... | ||
* Will not download if there is a file with same filename as the filename of the timetable from the person specified by the `INDEX`. | ||
* Will not download if there is no such folder to download the timetable csv file given by the file location from the person specified by the `INDEX`. | ||
**** | ||
|
||
Examples: | ||
|
@@ -585,13 +603,13 @@ e.g. `list 1` | |
* *redo* | ||
* *history*: Lists all the commands that you have entered in reverse chronological order. | ||
* *add_timetable*: `add_timetable INDEX [fl/FILE_LOCATION]` + | ||
e.g. `add_timetable 1` | ||
e.g. `add_timetable 1 fl/C:\Users\timetable\timetable.csv` | ||
* *edit_timetable*: `edit_timetable INDEX day/DAY timing/TIMING [m/DETAILS]` + | ||
e.g. `edit_timetable 1 day/wednesday timing/1800 m/do cs2103` | ||
* *download_timetable* : `download_timetable INDEX` + | ||
e.g. `download_timetable 1 l/C://Users/abc/mysecretstash` | ||
* *delete_timetable* : `delete INDEX p/password` + | ||
e.g. `delete_timetable 3 p/password` | ||
e.g. `download_timetable 1` | ||
* *delete_timetable* : `delete_timetable INDEX` + | ||
e.g. `delete_timetable 3` | ||
* *add_group*: `add_group n/GROUPNAME [d/GROUPDESCRIPTION]`` + | ||
e.g. `add_group n/happyfriends d/a group of happy friends` | ||
* *edit_group* : `edit_group OLDGROUPNAME [n/NEWGROUPNAME] [d/NEWGROUPDESCRIPTION]` + | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters