Skip to content
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
16 changes: 14 additions & 2 deletions static/js/redux/ui/modals/user_acquisition_modal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class UserAcquisitionModal extends React.Component {
</button>


{/* <button
{ <button
className="btn abnb-btn secondary eight-px-top" onClick={() => {
// this.props.createiCalfromTimetable();
}} disabled
Expand All @@ -127,7 +127,19 @@ class UserAcquisitionModal extends React.Component {
<i className="fa fa-envelope-o" />
</span>
<span>Email Coming Soon</span>
</button> */}
</button> }

<button
className="btn abnb-btn secondary" onClick={() => {
const link = document.createElement('a');
link.href = `semester.ly/press`;
document.body.appendChild(link);
link.click();
}}
>
<span> Jeremy's Mock Button</span>
</button>

</div>
</Modal>
);
Expand Down
5 changes: 4 additions & 1 deletion static/js/redux/ui/modals/user_settings_modal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,10 @@ class UserSettingsModal extends React.Component {
</div>)
; */
const preferences = !this.props.userInfo.FacebookSignedUp ? null : (
<div>
<div>
<div className="preference cf">
<h3>This is your favorite number: {this.props.userInfo.favorite_num}</h3>
</div>
<div className="preference cf">
<label className="switch switch-slide" htmlFor="social-courses-input">
<input
Expand Down
18 changes: 18 additions & 0 deletions student/migrations/0034_student_favorite_num.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 2.2.18 on 2021-09-17 04:39

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('student', '0033_auto_20210724_1528'),
]

operations = [
migrations.AddField(
model_name='student',
name='favorite_num',
field=models.IntegerField(blank=True, null=True),
),
]
1 change: 1 addition & 0 deletions student/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ class year, major, friends, etc. An object is only created for the
first_name = models.CharField(max_length=255, default='', null=True)
last_name = models.CharField(max_length=255, default='', null=True)
disabilities = models.NullBooleanField(null=True, default=False)
favorite_num = models.IntegerField(blank=True, null=True)

def __str__(self):
return "{0}".format(self.jhed)
Expand Down
1 change: 1 addition & 0 deletions student/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,5 @@ class Meta:
'LoginToken',
'LoginHash',
'timeAcceptedTos',
'favorite_num'
)