Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Branch 2 #104

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .coverage
Binary file not shown.
32 changes: 16 additions & 16 deletions docs/task_manager.forms.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,19 +57,19 @@

<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>description</strong> = &lt;UnboundField(StringField, ('Description',), {'v...ators.InputRequired object at 0x7f6a7b268490&gt;]})&gt;</dl>
<dl><dt><strong>description</strong> = &lt;UnboundField(StringField, ('Description',), {'v...ators.InputRequired object at 0x7f64d8182370&gt;]})&gt;</dl>

<dl><dt><strong>end_date</strong> = &lt;UnboundField(DateTimeLocalField, ('End Date',),...ators.InputRequired object at 0x7f6a7b2686a0&gt;]})&gt;</dl>
<dl><dt><strong>end_date</strong> = &lt;UnboundField(DateTimeLocalField, ('End Date',),...ators.InputRequired object at 0x7f64d8182580&gt;]})&gt;</dl>

<dl><dt><strong>priority</strong> = &lt;UnboundField(RadioField, ('Priority',), {'choic... '5'], 'default': '1', 'coerce': &lt;class 'int'&gt;})&gt;</dl>

<dl><dt><strong>start_date</strong> = &lt;UnboundField(DateTimeLocalField, ('Start Date',...ators.InputRequired object at 0x7f6a7b268610&gt;]})&gt;</dl>
<dl><dt><strong>start_date</strong> = &lt;UnboundField(DateTimeLocalField, ('Start Date',...ators.InputRequired object at 0x7f64d81824f0&gt;]})&gt;</dl>

<dl><dt><strong>title</strong> = &lt;UnboundField(StringField, ('Title',), {'validat...s.validators.Length object at 0x7f6a7b2683a0&gt;]})&gt;</dl>
<dl><dt><strong>title</strong> = &lt;UnboundField(StringField, ('Title',), {'validat...s.validators.Length object at 0x7f64d8182280&gt;]})&gt;</dl>

<hr>
Methods inherited from <a href="flask_wtf.form.html#FlaskForm">flask_wtf.form.FlaskForm</a>:<br>
<dl><dt><a name="CreateTaskForm-__init__"><strong>__init__</strong></a>(self, formdata=&lt;object object at 0x7f6a7b4132d0&gt;, **kwargs)</dt><dd><tt>:param&nbsp;formdata:<br>
<dl><dt><a name="CreateTaskForm-__init__"><strong>__init__</strong></a>(self, formdata=&lt;object object at 0x7f64d8347380&gt;, **kwargs)</dt><dd><tt>:param&nbsp;formdata:<br>
&nbsp;&nbsp;&nbsp;&nbsp;Used&nbsp;to&nbsp;pass&nbsp;data&nbsp;coming&nbsp;from&nbsp;the&nbsp;enduser,&nbsp;usually&nbsp;`request.POST`&nbsp;or<br>
&nbsp;&nbsp;&nbsp;&nbsp;equivalent.&nbsp;formdata&nbsp;should&nbsp;be&nbsp;some&nbsp;sort&nbsp;of&nbsp;request-data&nbsp;wrapper&nbsp;which<br>
&nbsp;&nbsp;&nbsp;&nbsp;can&nbsp;get&nbsp;multiple&nbsp;parameters&nbsp;from&nbsp;the&nbsp;form&nbsp;input,&nbsp;and&nbsp;values&nbsp;are&nbsp;unicode<br>
Expand Down Expand Up @@ -212,17 +212,17 @@
</dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>password</strong> = &lt;UnboundField(PasswordField, ('Password',), {'va...s.validators.Length object at 0x7f6a7b2689d0&gt;]})&gt;</dl>
<dl><dt><strong>password</strong> = &lt;UnboundField(PasswordField, ('Password',), {'va...s.validators.Length object at 0x7f64d81828b0&gt;]})&gt;</dl>

<dl><dt><strong>remember_me</strong> = &lt;UnboundField(BooleanField, ('Remember Me',), {})&gt;</dl>

<dl><dt><strong>submit</strong> = &lt;UnboundField(SubmitField, ('Sign In',), {})&gt;</dl>

<dl><dt><strong>username</strong> = &lt;UnboundField(StringField, ('Username',), {'vali...s.validators.Length object at 0x7f6a7b2687f0&gt;]})&gt;</dl>
<dl><dt><strong>username</strong> = &lt;UnboundField(StringField, ('Username',), {'vali...s.validators.Length object at 0x7f64d81826d0&gt;]})&gt;</dl>

<hr>
Methods inherited from <a href="flask_wtf.form.html#FlaskForm">flask_wtf.form.FlaskForm</a>:<br>
<dl><dt><a name="LoginForm-__init__"><strong>__init__</strong></a>(self, formdata=&lt;object object at 0x7f6a7b4132d0&gt;, **kwargs)</dt><dd><tt>:param&nbsp;formdata:<br>
<dl><dt><a name="LoginForm-__init__"><strong>__init__</strong></a>(self, formdata=&lt;object object at 0x7f64d8347380&gt;, **kwargs)</dt><dd><tt>:param&nbsp;formdata:<br>
&nbsp;&nbsp;&nbsp;&nbsp;Used&nbsp;to&nbsp;pass&nbsp;data&nbsp;coming&nbsp;from&nbsp;the&nbsp;enduser,&nbsp;usually&nbsp;`request.POST`&nbsp;or<br>
&nbsp;&nbsp;&nbsp;&nbsp;equivalent.&nbsp;formdata&nbsp;should&nbsp;be&nbsp;some&nbsp;sort&nbsp;of&nbsp;request-data&nbsp;wrapper&nbsp;which<br>
&nbsp;&nbsp;&nbsp;&nbsp;can&nbsp;get&nbsp;multiple&nbsp;parameters&nbsp;from&nbsp;the&nbsp;form&nbsp;input,&nbsp;and&nbsp;values&nbsp;are&nbsp;unicode<br>
Expand Down Expand Up @@ -371,19 +371,19 @@

<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>email</strong> = &lt;UnboundField(StringField, ('Email',), {'validat...s.validators.Length object at 0x7f6a7b268e20&gt;]})&gt;</dl>
<dl><dt><strong>email</strong> = &lt;UnboundField(StringField, ('Email',), {'validat...s.validators.Length object at 0x7f64d8182d00&gt;]})&gt;</dl>

<dl><dt><strong>password</strong> = &lt;UnboundField(PasswordField, ('Password',), {'va...dators.DataRequired object at 0x7f6a7b268f10&gt;]})&gt;</dl>
<dl><dt><strong>password</strong> = &lt;UnboundField(PasswordField, ('Password',), {'va...dators.DataRequired object at 0x7f64d8182df0&gt;]})&gt;</dl>

<dl><dt><strong>password2</strong> = &lt;UnboundField(PasswordField, ('Re-Enter Password....validators.EqualTo object at 0x7f6a7b2750a0&gt;]})&gt;</dl>
<dl><dt><strong>password2</strong> = &lt;UnboundField(PasswordField, ('Re-Enter Password....validators.EqualTo object at 0x7f64d8182f40&gt;]})&gt;</dl>

<dl><dt><strong>submit</strong> = &lt;UnboundField(SubmitField, ('Register',), {})&gt;</dl>

<dl><dt><strong>username</strong> = &lt;UnboundField(StringField, ('Username',), {'vali...s.validators.Length object at 0x7f6a7b268be0&gt;]})&gt;</dl>
<dl><dt><strong>username</strong> = &lt;UnboundField(StringField, ('Username',), {'vali...s.validators.Length object at 0x7f64d8182ac0&gt;]})&gt;</dl>

<hr>
Methods inherited from <a href="flask_wtf.form.html#FlaskForm">flask_wtf.form.FlaskForm</a>:<br>
<dl><dt><a name="RegistrationForm-__init__"><strong>__init__</strong></a>(self, formdata=&lt;object object at 0x7f6a7b4132d0&gt;, **kwargs)</dt><dd><tt>:param&nbsp;formdata:<br>
<dl><dt><a name="RegistrationForm-__init__"><strong>__init__</strong></a>(self, formdata=&lt;object object at 0x7f64d8347380&gt;, **kwargs)</dt><dd><tt>:param&nbsp;formdata:<br>
&nbsp;&nbsp;&nbsp;&nbsp;Used&nbsp;to&nbsp;pass&nbsp;data&nbsp;coming&nbsp;from&nbsp;the&nbsp;enduser,&nbsp;usually&nbsp;`request.POST`&nbsp;or<br>
&nbsp;&nbsp;&nbsp;&nbsp;equivalent.&nbsp;formdata&nbsp;should&nbsp;be&nbsp;some&nbsp;sort&nbsp;of&nbsp;request-data&nbsp;wrapper&nbsp;which<br>
&nbsp;&nbsp;&nbsp;&nbsp;can&nbsp;get&nbsp;multiple&nbsp;parameters&nbsp;from&nbsp;the&nbsp;form&nbsp;input,&nbsp;and&nbsp;values&nbsp;are&nbsp;unicode<br>
Expand Down Expand Up @@ -555,13 +555,13 @@

<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>email</strong> = &lt;UnboundField(StringField, ('Email',), {'validat...s.validators.Length object at 0x7f6a7b2cbfa0&gt;]})&gt;</dl>
<dl><dt><strong>email</strong> = &lt;UnboundField(StringField, ('Email',), {'validat...s.validators.Length object at 0x7f64d81e2ee0&gt;]})&gt;</dl>

<dl><dt><strong>password</strong> = &lt;UnboundField(PasswordField, ('Password',), {'va...dators.DataRequired object at 0x7f6a7b268190&gt;]})&gt;</dl>
<dl><dt><strong>password</strong> = &lt;UnboundField(PasswordField, ('Password',), {'va...dators.DataRequired object at 0x7f64d8182070&gt;]})&gt;</dl>

<dl><dt><strong>submit</strong> = &lt;UnboundField(SubmitField, ('Update',), {})&gt;</dl>

<dl><dt><strong>username</strong> = &lt;UnboundField(StringField, ('Username',), {'vali...s.validators.Length object at 0x7f6a7bd0d700&gt;]})&gt;</dl>
<dl><dt><strong>username</strong> = &lt;UnboundField(StringField, ('Username',), {'vali...s.validators.Length object at 0x7f64d8c245e0&gt;]})&gt;</dl>

<hr>
Methods inherited from <a href="flask_wtf.form.html#FlaskForm">flask_wtf.form.FlaskForm</a>:<br>
Expand Down
2 changes: 1 addition & 1 deletion docs/task_manager.routes.tasks.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
</dl>
<hr>
Methods inherited from <a href="flask_marshmallow.schema.html#Schema">flask_marshmallow.schema.Schema</a>:<br>
<dl><dt><a name="TaskSchema-jsonify"><strong>jsonify</strong></a>(self, obj, many=&lt;object object at 0x7f6a7d31d260&gt;, *args, **kwargs)</dt><dd><tt>Return&nbsp;a&nbsp;JSON&nbsp;response&nbsp;containing&nbsp;the&nbsp;serialized&nbsp;data.<br>
<dl><dt><a name="TaskSchema-jsonify"><strong>jsonify</strong></a>(self, obj, many=&lt;object object at 0x7f64da233260&gt;, *args, **kwargs)</dt><dd><tt>Return&nbsp;a&nbsp;JSON&nbsp;response&nbsp;containing&nbsp;the&nbsp;serialized&nbsp;data.<br>
&nbsp;<br>
&nbsp;<br>
:param&nbsp;obj:&nbsp;Object&nbsp;to&nbsp;serialize.<br>
Expand Down
2 changes: 1 addition & 1 deletion docs/task_manager.tests.test_auth.html
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@

<dl><dt><a name="TestAuth-skipTest"><strong>skipTest</strong></a>(self, reason)</dt><dd><tt>Skip&nbsp;this&nbsp;test.</tt></dd></dl>

<dl><dt><a name="TestAuth-subTest"><strong>subTest</strong></a>(self, msg=&lt;object object at 0x7f6a7e08c350&gt;, **params)</dt><dd><tt>Return&nbsp;a&nbsp;context&nbsp;manager&nbsp;that&nbsp;will&nbsp;return&nbsp;the&nbsp;enclosed&nbsp;block<br>
<dl><dt><a name="TestAuth-subTest"><strong>subTest</strong></a>(self, msg=&lt;object object at 0x7f64dafa2350&gt;, **params)</dt><dd><tt>Return&nbsp;a&nbsp;context&nbsp;manager&nbsp;that&nbsp;will&nbsp;return&nbsp;the&nbsp;enclosed&nbsp;block<br>
of&nbsp;code&nbsp;in&nbsp;a&nbsp;subtest&nbsp;identified&nbsp;by&nbsp;the&nbsp;optional&nbsp;message&nbsp;and<br>
keyword&nbsp;parameters.&nbsp;&nbsp;A&nbsp;failure&nbsp;in&nbsp;the&nbsp;subtest&nbsp;marks&nbsp;the&nbsp;test<br>
case&nbsp;as&nbsp;failed&nbsp;but&nbsp;resumes&nbsp;execution&nbsp;at&nbsp;the&nbsp;end&nbsp;of&nbsp;the&nbsp;enclosed<br>
Expand Down
2 changes: 1 addition & 1 deletion docs/task_manager.tests.test_task.html
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@

<dl><dt><a name="TestTask-skipTest"><strong>skipTest</strong></a>(self, reason)</dt><dd><tt>Skip&nbsp;this&nbsp;test.</tt></dd></dl>

<dl><dt><a name="TestTask-subTest"><strong>subTest</strong></a>(self, msg=&lt;object object at 0x7f6a7e08c350&gt;, **params)</dt><dd><tt>Return&nbsp;a&nbsp;context&nbsp;manager&nbsp;that&nbsp;will&nbsp;return&nbsp;the&nbsp;enclosed&nbsp;block<br>
<dl><dt><a name="TestTask-subTest"><strong>subTest</strong></a>(self, msg=&lt;object object at 0x7f64dafa2350&gt;, **params)</dt><dd><tt>Return&nbsp;a&nbsp;context&nbsp;manager&nbsp;that&nbsp;will&nbsp;return&nbsp;the&nbsp;enclosed&nbsp;block<br>
of&nbsp;code&nbsp;in&nbsp;a&nbsp;subtest&nbsp;identified&nbsp;by&nbsp;the&nbsp;optional&nbsp;message&nbsp;and<br>
keyword&nbsp;parameters.&nbsp;&nbsp;A&nbsp;failure&nbsp;in&nbsp;the&nbsp;subtest&nbsp;marks&nbsp;the&nbsp;test<br>
case&nbsp;as&nbsp;failed&nbsp;but&nbsp;resumes&nbsp;execution&nbsp;at&nbsp;the&nbsp;end&nbsp;of&nbsp;the&nbsp;enclosed<br>
Expand Down
2 changes: 1 addition & 1 deletion docs/task_manager.tests.test_user.html
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@

<dl><dt><a name="TestUser-skipTest"><strong>skipTest</strong></a>(self, reason)</dt><dd><tt>Skip&nbsp;this&nbsp;test.</tt></dd></dl>

<dl><dt><a name="TestUser-subTest"><strong>subTest</strong></a>(self, msg=&lt;object object at 0x7f6a7e08c350&gt;, **params)</dt><dd><tt>Return&nbsp;a&nbsp;context&nbsp;manager&nbsp;that&nbsp;will&nbsp;return&nbsp;the&nbsp;enclosed&nbsp;block<br>
<dl><dt><a name="TestUser-subTest"><strong>subTest</strong></a>(self, msg=&lt;object object at 0x7f64dafa2350&gt;, **params)</dt><dd><tt>Return&nbsp;a&nbsp;context&nbsp;manager&nbsp;that&nbsp;will&nbsp;return&nbsp;the&nbsp;enclosed&nbsp;block<br>
of&nbsp;code&nbsp;in&nbsp;a&nbsp;subtest&nbsp;identified&nbsp;by&nbsp;the&nbsp;optional&nbsp;message&nbsp;and<br>
keyword&nbsp;parameters.&nbsp;&nbsp;A&nbsp;failure&nbsp;in&nbsp;the&nbsp;subtest&nbsp;marks&nbsp;the&nbsp;test<br>
case&nbsp;as&nbsp;failed&nbsp;but&nbsp;resumes&nbsp;execution&nbsp;at&nbsp;the&nbsp;end&nbsp;of&nbsp;the&nbsp;enclosed<br>
Expand Down
2 changes: 1 addition & 1 deletion task_manager/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def validate_email(self, email):

class CreateTaskForm(FlaskForm):
title = StringField('Title', validators=[InputRequired(),
Length(min=4, max=25)])
Length(min=4, max=240)])
#priority = RadioField('Priority', choices=['1', '2', '3', '4', '5'],
# default='1', validators=[InputRequired()],
# coerce=int)
Expand Down
4 changes: 2 additions & 2 deletions task_manager/templates/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ <h5 style="text-align: center" >
$(".noTask").html(text);
}
else {
var tableBody = '<table width="90%" cellpadding="2" align="center" style="font-size:12px;border-collapse:collapse;" border="1"><tr style="font-weight:bold;background:grey;"><td style="color:white;padding:15px;">Select</td><td style="color:white;padding:15px;">Task Name</td><td style="color:white;padding:15px;">Priority</td><td style="color:white;padding:15px;">Description</td><td style="color:white;padding:15px;">Start Time</td><td style="color:white;padding:15px;">End Time</td><td style="color:white;padding:15px;">Actions</td></tr>';
var tableBody = '<table width="90%" cellpadding="2" align="center" style="font-size:12px;border-collapse:collapse;" border="1"><tr style="font-weight:bold;background:grey;"><td style="color:white;padding:15px;">Select</td><td style="color:white;padding:15px;">Task Name</td><td style="color:white;padding:15px;">Description</td><td style="color:white;padding:15px;">Priority</td><td style="color:white;padding:15px;">Start Time</td><td style="color:white;padding:15px;">End Time</td><td style="color:white;padding:15px;">Actions</td></tr>';

data.task.forEach(function (d) {
if(!d.priority){d.priority = "";}
Expand All @@ -54,7 +54,7 @@ <h5 style="text-align: center" >

d.start_time = d.start_time.replace("T"," ");
d.end_time = d.end_time.replace("T"," ");
tableBody += '<tr align="center"><td> <input type="checkbox" class = "deleting" value="' + d.id + '"></td><td>' + d.title + '</td><td>' + d.priority + '</td><td>' + d.description + '</td><td>' + d.start_time + '</td><td>' + d.end_time + '</td><td>' + '<a href="/task/delete/'+d.id +' ">Delete</a> <br><a href="/task/update/'+d.id +' ">Update</a>' + '</td></tr>';
tableBody += '<tr align="center"><td> <input type="checkbox" class = "deleting" value="' + d.id + '"></td><td>' + d.title + '</td><td>' + d.description + '</td><td>' + d.priority + '</td><td>' + d.start_time + '</td><td>' + d.end_time + '</td><td>' + '<a href="/task/delete/'+d.id +' ">Delete</a> <br><a href="/task/update/'+d.id +' ">Update</a>' + '</td></tr>';
});
tableBody += '<table>';

Expand Down