66 < br />
77 < dt > Project Info</ dt >
88 < dd > Title: {{proj.title}}</ dd >
9- < dd > Start Date: {{proj.startDate}}</ dd >
9+ < dd > Start Date: {{proj.startDate.strftime('%m-%d-%Y') }}</ dd >
1010 < dd > Duration: {{proj.duration}} weeks</ dd >
1111 < dd > Number of Students: {{proj.numberStudents}}</ dd >
12- < dd > Community Partners:
13- {% if proj.hasCommunityPartner %}
14- Yes
15- {% else %}
16- No
17- {% endif %}
18- </ dd >
19- < dd > Community Service:
20- {% if proj.isServiceToCommunity %}
21- Yes
22- {% else %}
23- No
24- {% endif %}
25- </ dd >
26- < dd > Date Submitted: {{proj.createdDate.strftime('%Y-%m-%d @ %I:%m %p')}}</ dd >
12+ {% if proj.hasCommunityPartner %}
13+ < dd > Community Partners: Yes</ dd >
14+ {% endif %}
15+ {% if proj.isServiceToCommunity %}
16+ < dd > Community Service: Yes</ dd >
17+ {% endif %}
18+ < dd > Date Submitted: {{proj.createdDate.strftime('%m-%d-%Y')}}</ dd >
2719 < dd > Status: {{proj.status}}</ dd >
2820 < br />
2921 {% if collabs is not none %}
30- < dt > Collaborators</ dt >
22+ < dt > Faculty</ dt >
23+ < dd > {{primary_faculty.username.firstname}} {{primary_faculty.username.lastname}}</ dd >
3124 {% for collaborator in collabs %}
3225 < dd > {{collaborator.username.firstname}} {{collaborator.username.lastname}}</ dd >
3326 {% endfor %}
4437 < dd > < strong > Travel:</ strong > ${{proj.budgetID.otherTravel}}</ dd >
4538 < dd > Description: {{proj.budgetID.otherTravelDesc}}</ dd >
4639 {% set mileageCost = '%.2f' | format(proj.budgetID.miles*params.mileageRate) %}
47- < dd > < strong > Mileage:</ strong > {{ proj.budgetID.miles}} miles (${{ mileageCost }} @ {{params.mileageRate}} / mile)</ dd >
40+ < dd > < strong > Mileage:</ strong > ${{ mileageCost }} ({{ proj.budgetID.miles}} miles @ $ {{params.mileageRate}}/ mile)</ dd >
4841 < dd > Description: {{proj.budgetID.milesDesc}}</ dd >
4942 < dd > < strong > Other:</ strong > ${{proj.budgetID.other}}</ dd >
5043 < dd > Description: {{proj.budgetID.otherDesc}}</ dd >
6255
6356 </ br >
6457 < p style ="margin-top:1em ">
65- < button class ="btn btn-danger pull-left " onclick ="withdraw({{proj.pID}}) " style ="padding-top:10 "> Withdraw</ button >
58+ {% if username == currentUser %}
59+ < button class ="btn btn-danger pull-left " onclick ="withdraw({{proj.pID}}) " style ="padding-top:10 "> Withdraw</ button >
60+ {% endif %}
6661
6762 < a href ="{{previous_url}} ">
68- < button class ="btn btn-primary pull-right " class = "form-control " > Done</ button >
63+ < button class ="btn btn-primary pull-right " class = "form-control " > Done</ button >
6964 </ a >
7065 </ p >
7166 </ div >
7570
7671 < br />
7772 </ div >
78- </ div >
73+ </ div >
0 commit comments