-
Notifications
You must be signed in to change notification settings - Fork 0
Manage positions page #611 #627
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
base: department-portal-base
Are you sure you want to change the base?
Changes from all commits
2dc225d
6311491
b14eaa7
ee6e184
99e8122
fbdad0e
ca960c9
92e00ad
8b7bb1a
5449132
efa4465
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| $(document).ready(function () { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can't bootstrap handle tables? If possible, that's the better way. |
||
| $('#positionTable').DataTable({ | ||
| pageLength: 25, | ||
| columnDefs: [ | ||
| { className: 'dt-head-center', targets: '_all' }, | ||
| { orderable: false, targets: [4,4 ] } | ||
| ] | ||
| }); | ||
| }); | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,7 +3,12 @@ | |
| {% block scripts %} | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This whole file has old versions of stuff. Don't include. |
||
| {{super()}} | ||
| <script type="text/javascript" src="{{url_for('static', filename='js/departmentPortal.js') }}?u={{lastStaticUpdate}}"></script> | ||
| <<<<<<< HEAD | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| <link rel="stylesheet" type="text/css" | ||
| href="{{url_for('static', filename ='css/departmentPortal.css')}}?u={{lastStaticUpdate}}"> | ||
| ======= | ||
| <link rel="stylesheet" type="text/css" href="/static/css/departmentPortal.css?u={{lastStaticUpdate}}"/> | ||
| >>>>>>> 60ada1ecec53be4b8241ba3c3213984376bc73b6 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. even this need to be removed |
||
| {% endblock %} | ||
| {% block app_content %} | ||
| <h2 class="text-center">{% if department %} {{department.DEPT_NAME}} Portal {% else %} Choose a Department: {% endif %} </h2> | ||
|
|
@@ -25,8 +30,36 @@ <h2 class="text-center">{% if department %} {{department.DEPT_NAME}} Portal {% e | |
| </select> | ||
| </div> | ||
|
|
||
| <<<<<<< HEAD | ||
| {% if department %} | ||
| <div class="row g-3"> | ||
| <div class="card-group" style="display:inline-flex; gap: 2rem;" style="height: 1000px"> | ||
|
|
||
| <div class="card" style="width:50rem; border-radius: 2rem;"> | ||
| <div class="card-body"> | ||
| <h5 class="card-title"> | ||
| <svg xmlns="http://www.w3.org/2000/svg" width="16"height="16"fill="currentColor" class="bi bi-clock" viewBox="0 0 16 16"> | ||
| <path d="M8 3.5a.5.5 0 0 0-1 0V9a.5.5 0 0 0 .252.434l3.5 2a.5.5 0 0 0 .496-.868L8 8.71z"/> | ||
| <path d="M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16m7-8A7 7 0 1 1 1 8a7 7 0 0 1 14 0"/> | ||
| </svg> | ||
| Current Allocation | ||
| </h5> | ||
| <p class="card-text"><br> AY 26/27 15/20 POSITIONS <br><br> Break Hours 0 of 200 hrs</p> | ||
| <a href="#" class="btn btn-primary">Go somewhere</a> | ||
| </div> | ||
| </div> | ||
|
|
||
| <section class="card "style="width:50rem; border-radius: 2rem;" aria-labelledby="members-title"> | ||
| <div class="card-body"> | ||
| <div class="media"> | ||
| <div class="media-left"> | ||
| <span class="btn btn-default btn-lg img-circle disabled" aria-hidden="true"> | ||
| <i class="fa fa-users"></i> | ||
| </span> | ||
| </div> | ||
| ======= | ||
|
|
||
| {% if department %} | ||
| <div class="row g-3"> | ||
| <div class="col-12 col-lg-4 "> | ||
| <section class="card" aria-labelledby="allocationTitle"> | ||
| <div class="card-body"> | ||
|
|
@@ -75,12 +108,30 @@ <h3>Break Hours</h3> <h3>{{break_hours}}/{{allocation.breakHours or 0}} Hours</h | |
| </span> | ||
| </div> | ||
|
|
||
| >>>>>>> 60ada1ecec53be4b8241ba3c3213984376bc73b6 | ||
| <div class="media-body media-middle"> | ||
| <h1> | ||
| Members | ||
| </h1> | ||
| </div> | ||
| </div> | ||
| <<<<<<< HEAD | ||
| <h4>Labor Coordinator(s)</h4> | ||
| <p>Dr. Jones</p> | ||
|
|
||
| <h2>Supervisors</h2> | ||
| {% for s in supervisors %} | ||
| {% if 3 > loop.index0 %} | ||
| <p>{{ s }}</p> | ||
| {% elif 4 > loop.index0 %} | ||
| <p>and {{ supervisors | length}} more...</p> | ||
| {% endif %} | ||
| {% endfor %} | ||
| </div> | ||
|
|
||
| <div class="card-footer text-center"> | ||
| <a href="#" class="btn btn-primary">View Details | ||
| ======= | ||
| <h4> <b>{% if laborCoordinators|length <= 1 %} Labor Coordinator {% else %} Labor Coordinators{% endif %}</b></h4> | ||
| {% if laborCoordinators %} | ||
| {% for coordinator in laborCoordinators %} | ||
|
|
@@ -136,12 +187,94 @@ <h4> <b>{% if supervisors|length <= 1 %} Supervisor{% else %} Supervisors{% endi | |
| </div> | ||
|
|
||
| <div class="card-footer text-center"> | ||
| <a href="#" class="btn btn-primary">View Members | ||
| >>>>>>> 60ada1ecec53be4b8241ba3c3213984376bc73b6 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this too |
||
| <a href="/department/{{ department.ORG }}/{{ department.ACCOUNT }}/members" class="btn btn-primary">View Members | ||
| <span class="glyphicon glyphicon-chevron-right"></span> | ||
| </a> | ||
| </div> | ||
| </section> | ||
|
|
||
| <<<<<<< HEAD | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same here |
||
| <div class="card mb-3" style="width:50rem; border-radius: 2rem;"> | ||
| <div class="card-body"> | ||
| <div class="media"> | ||
| <div class="media-body media-middle"> | ||
| <h1>Positions</h1> | ||
| </div> | ||
| <div class="media-right"> | ||
| <span class="btn btn-default btn-lg img-circle disabled" aria-hidden="true"> | ||
| <i class="fa fa-suitcase"></i> | ||
| </span> | ||
| </div> | ||
|
|
||
| </div> | ||
| <ul style="line-height:2;"> | ||
| {% for p in positions %} | ||
| {% if 7 > loop.index0 %} | ||
| <li class="card-text">{{ p }}</li> | ||
| {% elif 8 == loop.index0 %} | ||
| </ul><p class="card-text">and {{ positions | length}} more...</p> | ||
| {% endif %} | ||
| {% endfor %} | ||
| </ul> | ||
|
|
||
| </div> | ||
| <div class="card-footer text-center"> | ||
| <a href="/department/{{ department.ORG }}/{{ department.ACCOUNT }}/positions" class="btn btn-primary">View Details <span class="glyphicon glyphicon-chevron-right"></span></a> | ||
| </div> | ||
| </div> | ||
| </div> | ||
|
|
||
| {% endif %} | ||
|
|
||
|
|
||
| <!-- <div class="col-sm-4"> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You can delete this part. |
||
| <section class="card members-card" aria-labelledby="members-title"> | ||
| <div class="card-body"> | ||
|
|
||
| <div class="media"> | ||
| <div class="media-left"> | ||
| <span class="members-card-icon" aria-hidden="true"> | ||
| <i class="fa fa-users"></i> | ||
| </span> | ||
| </div> | ||
|
|
||
| <div class="media-body media-middle"> | ||
| <h3 id="members-title" class="media-heading card-title"> | ||
| <strong>Members</strong> | ||
| </h3> | ||
| </div> | ||
| </div> | ||
|
|
||
| <h4 class="text-primary"><strong>Labor Coordinator</strong></h4> | ||
| <p class="card-text">Dr. Jones</p> | ||
|
|
||
| <h4 class="text-primary"><strong>Supervisors</strong></h4> | ||
| <p class="card-text"> | ||
| Dr. Heggen<br> | ||
| Dr. Nakazawa | ||
| </p> | ||
|
|
||
| <p class="text-center"> | ||
| <span class="members-card-cta"> | ||
| <a href="#" class="btn btn-primary btn-sm members-card-btn"> | ||
| View Details <span class="glyphicon glyphicon-chevron-right"></span> | ||
| </a> | ||
|
|
||
| </span> | ||
| </p> | ||
|
|
||
| </div> | ||
| </section> | ||
| </div> --> | ||
|
|
||
| {% endblock %}\ | ||
|
|
||
|
|
||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The branch currently has a merge conflicts and needs to be merged into the department-portal-base and then the conflicts resolved |
||
|
|
||
|
|
||
| ======= | ||
| </div> | ||
|
|
||
| <div class=" col-12 col-lg-4"> | ||
|
|
@@ -185,3 +318,4 @@ <h1>Positions</h1> | |
| {% endif %} | ||
|
|
||
| {% endblock %} | ||
| >>>>>>> 60ada1ecec53be4b8241ba3c3213984376bc73b6 | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only leave in print statements when absolutely necessary. This one is not necessary.