Skip to content

Commit

Permalink
Updated: Enteprise permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
jabbett committed Sep 4, 2024
1 parent df6c386 commit 241a161
Show file tree
Hide file tree
Showing 6 changed files with 143 additions and 54 deletions.
17 changes: 8 additions & 9 deletions src/prototypes/enterprise-management/school_staff.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ <h1 class="sharpen-heading-2xl">
<a href="staff_show.html">Cardigan, Dante</a>
</td>
<td>
Instructional
Instructional Staff
</td>
<td>
Mr. Cardigan - Room 4
Expand All @@ -113,10 +113,9 @@ <h1 class="sharpen-heading-2xl">
<td><i class="sharpen-icon">supervisor_account</i></td>
<td>
<a href="staff_show.html">Doverspike, Brady</a>
<div class="sharpen-text-xs">School Admin</div>
</td>
<td>
Non-Instructional
Non-Instructional Staff
</td>
<td>
<div>Ms. Kinnaird - Room 202</div>
Expand All @@ -137,7 +136,7 @@ <h1 class="sharpen-heading-2xl">
<td>
<a href="staff_show.html">Kinnaird, Pratap</a>
</td>
<td>Instructional</td>
<td>Instructional Staff</td>
<td>
Ms. Kinnaird - Room 202
</td>
Expand All @@ -157,7 +156,7 @@ <h1 class="sharpen-heading-2xl">
<a href="staff_show.html">Matveeva, Dixie</a>
</td>
<td>
Instructional
Administrator
</td>
<td>
Ms. Matveeva - Room 9
Expand All @@ -177,7 +176,7 @@ <h1 class="sharpen-heading-2xl">
<td>
<a href="staff_show.html">Meaney, Eliav</a>
</td>
<td>Instructional</td>
<td>Instructional Staff</td>
<td>
Mr. Meany - Room 127
</td>
Expand All @@ -195,7 +194,7 @@ <h1 class="sharpen-heading-2xl">
<td><i class="sharpen-icon">supervisor_account</i></td>
<td>
<a href="staff_show.html">Notaro, Emrys</a>
<td>Instructional</td>
<td>Instructional Staff</td>
<td>
Mrs. Notaro - Room 242
</td>
Expand All @@ -216,7 +215,7 @@ <h1 class="sharpen-heading-2xl">
</div>
</td>
<td>
Instructional
Manager
</td>
<td>
Mrs. Stafford - Room 243
Expand All @@ -236,7 +235,7 @@ <h1 class="sharpen-heading-2xl">
<td>
<a href="staff_show.html">Tillens, Leo</a>
</td>
<td>Non-Instructional</td>
<td>Non-Instructional Staff</td>
<td>
<div>Mr. Cardigan - Room 4</div>
<div>Resource Room</div>
Expand Down
70 changes: 45 additions & 25 deletions src/prototypes/enterprise-management/staff.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,16 @@ <h1 class="sharpen-heading-2xl">
</div>
</div>

<sharpen-alert type="info" icon="info">These staff are your district's Sharpen users. Staff assigned to schools can only see data within their school. Non-instructional staff can only see data for the students they tutor.</sharpen-alert>
<sharpen-alert type="info" icon="info">These staff are your district's Sharpen users. Staff with only a school role can only see data within their school. Non-instructional staff can only see data for the students they tutor.</sharpen-alert>

<table class="sharpen-table sharpen-table--icon-start sharpen-table--learners sharpen-table--enclosed sharpen-table-controls-end sharpen-table-hover">
<thead>
<tr>
<th></th>
<th>Name</th>
<th>School</th>
<th>District Role</th>
<th>School Role</th>
<th>Sharpen Tutees</th>
<th>Assigned Sharpen Tutees</th>
<th></th>
</tr>
</thead>
Expand All @@ -86,9 +86,10 @@ <h1 class="sharpen-heading-2xl">
<td><i class="sharpen-icon">supervisor_account</i></td>
<td>
<a href="staff_show.html">Cardigan, Dante</a>
<div class="sharpen-text-xs">District Admin</div>
</td>
<td>&mdash;</td>
<td>
Administrator
</td>
<td>&mdash;</td>
<td>0</td>
<td>
Expand All @@ -104,9 +105,10 @@ <h1 class="sharpen-heading-2xl">
<td><i class="sharpen-icon">supervisor_account</i></td>
<td>
<a href="staff_show.html">Doverspike, Brady</a>
<div class="sharpen-text-xs">District Admin</div>
</td>
<td>&mdash;</td>
<td>
Manager
</td>
<td>&mdash;</td>
<td>0</td>
<td>
Expand All @@ -123,8 +125,11 @@ <h1 class="sharpen-heading-2xl">
<td>
<a href="staff_show.html">Kinnaird, Pratap</a>
</td>
<td>Runkle School</td>
<td>Instructional</td>
<td>&mdash;</td>
<td>
<div class="sharpen-text-xs">Runkle School</div>
Instructional Staff
</td>
<td>2</td>
<td>
<button class="sharpen-button sharpen-button--xsmall sharpen-button--secondary">
Expand All @@ -139,10 +144,12 @@ <h1 class="sharpen-heading-2xl">
<td><i class="sharpen-icon">supervisor_account</i></td>
<td>
<a href="staff_show.html">Matveeva, Dixie</a>
<div class="sharpen-text-xs">School Admin</div>
</td>
<td>Lincoln School</td>
<td>Instructional</td>
<td>Viewer</td>
<td>
<div class="sharpen-text-xs">Lincoln School</div>
Administrator
</td>
<td>0</td>
<td>
<button class="sharpen-button sharpen-button--xsmall sharpen-button--secondary">
Expand All @@ -158,8 +165,11 @@ <h1 class="sharpen-heading-2xl">
<td>
<a href="staff_show.html">Meaney, Eliav</a>
</td>
<td>Ridley School</td>
<td>Non-Instructional</td>
<td>&mdash;</td>
<td>
<div class="sharpen-text-xs">Ridley School</div>
Non-Instructional Staff
</td>
<td>17</td>
<td>
<button class="sharpen-button sharpen-button--xsmall sharpen-button--secondary">
Expand All @@ -175,8 +185,11 @@ <h1 class="sharpen-heading-2xl">
<td>
<a href="staff_show.html">Notaro, Emrys</a>
</td>
<td>Driscoll School</td>
<td>Instructional</td>
<td>&mdash;</td>
<td>
<div class="sharpen-text-xs">Driscoll School</div>
Instructional Staff
</td>
<td>1</td>
<td>
<button class="sharpen-button sharpen-button--xsmall sharpen-button--secondary">
Expand All @@ -191,10 +204,8 @@ <h1 class="sharpen-heading-2xl">
<td><i class="sharpen-icon">supervisor_account</i></td>
<td>
<a href="staff_show.html">Stafford, Ainsley</a>
<div class="sharpen-text-xs">District Admin</div>
</div>
</td>
<td>&mdash;</td>
<td>Administrator</td>
<td>&mdash;</td>
<td>0</td>
<td>
Expand All @@ -211,8 +222,11 @@ <h1 class="sharpen-heading-2xl">
<td>
<a href="staff_show.html">Tillens, Leo</a>
</td>
<td>Pierce School</td>
<td>Non-Instructional</td>
<td>&mdash;</td>
<td>
<div class="sharpen-text-xs">Runkle School</div>
Non-Instructional Staff
</td>
<td>3</td>
<td>
<button class="sharpen-button sharpen-button--xsmall sharpen-button--secondary">
Expand All @@ -228,8 +242,11 @@ <h1 class="sharpen-heading-2xl">
<td>
<a href="staff_show.html">Wieczorek, Balthasar</a>
</td>
<td>Lawrence School</td>
<td>Instructional</td>
<td>&mdash;</td>
<td>
<div class="sharpen-text-xs">Lawrence School</div>
Manager
</td>
<td>0</td>
<td>
<button class="sharpen-button sharpen-button--xsmall sharpen-button--secondary">
Expand All @@ -245,8 +262,11 @@ <h1 class="sharpen-heading-2xl">
<td>
<a href="staff_show.html">Zeng, Cosima</a>
</td>
<td>Runkle School</td>
<td>Non-Instructional</td>
<td>&mdash;</td>
<td>
<div class="sharpen-text-xs">Runkle School</div>
Non-Instructional Staff
</td>
<td>6</td>
<td>
<button class="sharpen-button sharpen-button--xsmall sharpen-button--secondary">
Expand Down
9 changes: 7 additions & 2 deletions src/prototypes/enterprise-management/staff_history.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,16 @@ <h1 class="sharpen-heading-2xl sharpen-mb-md">
<dt>Name</dt>
<dd class="sharpen-text-lg">Leo Tillens</dd>

<dt>District Role</dt>
<dd>&mdash;</dd>

<dt>School</dt>
<dd><a href="school_show.html">Pierce School</a></dd>
<dd>
<a href="school_show.html">Pierce School</a>
</dd>

<dt>School Role</dt>
<dd>Non-Instructional</dd>
<dd>Non-Instructional Staff</dd>

<dt>Classrooms</dt>
<dd>
Expand Down
83 changes: 69 additions & 14 deletions src/prototypes/enterprise-management/staff_new.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,36 +61,91 @@ <h1 class="sharpen-heading-2xl">
</div>

<div class="sharpen-form-group">
<label class="sharpen-form-label" for="select1">Assign to school</label>
<select class="sharpen-form-control" id="select1">
<option>None / District Staff</option>
<option>Baker School</option>
<option>Driscoll School</option>
<option>Hayes School</option>
</select>
<label class="sharpen-form-label">District Role</label>
<div class="sharpen-form-check">
<input type="radio" checked class="sharpen-form-check-input" name="district_role" id="district_role_none" />
<label class="sharpen-form-label" for="district_role_none">
None
<div class="sharpen-text-xs">Cannot view cross-district data.</div>
</label>
</div>
<div class="sharpen-form-check">
<input type="radio" class="sharpen-form-check-input" name="district_role" id="district_role_staff" />
<label class="sharpen-form-label" for="district_role_staff">
District Staff
<div class="sharpen-text-xs">Can view all cross-district data.</div>
</label>
</div>
<div class="sharpen-form-check">
<input type="radio" class="sharpen-form-check-input" name="district_role" id="district_role_manager" />
<label class="sharpen-form-label" for="district_role_manager">
District Manager
<div class="sharpen-text-xs">Can view and manage all cross-district data.</div>
</label>
</div>
<div class="sharpen-form-check">
<input type="radio" class="sharpen-form-check-input" name="district_role" id="district_role_admin" />
<label class="sharpen-form-label" for="district_role_admin">
District Administrator
<div class="sharpen-text-xs">Can view and manage all cross-district data, and grant access to others.</div>
</label>
</div>
</div>

<div class="row">
<div class="col-md-6">
<div class="sharpen-form-group">
<label class="sharpen-form-label" for="select1">School role</label>
<select class="sharpen-form-control" disabled id="select1">
<option>Instructional</option>
<option>Non-Instructional</option>
<label class="sharpen-form-label" for="select1">Assign to school</label>
<select class="sharpen-form-control" id="select1">
<option>None</option>
<option>Baker School</option>
<option>Driscoll School</option>
<option>Hayes School</option>
</select>
<div class="sharpen-form-text">Non-instructional staff may access only their assigned students.</div>
</div>
</div>
<div class="col-md-6">
<div class="sharpen-form-group">
<label class="sharpen-form-label" for="select1">Assign to classroom</label>
<label class="sharpen-form-label" for="select1">Assign to classroom (Optional)</label>
<select class="sharpen-form-control" disabled id="select1">
<option>None / Later</option>
<option>None</option>
</select>
</div>
</div>
</div>

<div class="sharpen-form-group">
<label class="sharpen-form-label">School Role</label>
<div class="sharpen-form-check">
<input type="radio" disabled checked class="sharpen-form-check-input" name="school_role" id="school_role_noninstructional" />
<label class="sharpen-form-label" for="school_role_noninstructional">
Non-Instructional Staff
<div class="sharpen-text-xs">Can view only assigned students.</div>
</label>
</div>
<div class="sharpen-form-check">
<input type="radio" disabled class="sharpen-form-check-input" name="school_role" id="school_role_instructional" />
<label class="sharpen-form-label" for="school_role_instructional">
Instructional Staff
<div class="sharpen-text-xs">Can view all school data.</div>
</label>
</div>
<div class="sharpen-form-check">
<input type="radio" disabled class="sharpen-form-check-input" name="school_role" id="school_role_manager" />
<label class="sharpen-form-label" for="school_role_manager">
School Manager
<div class="sharpen-text-xs">Can view and manage all school data.</div>
</label>
</div>
<div class="sharpen-form-check">
<input type="radio" disabled class="sharpen-form-check-input" name="school_role" id="school_role_admin" />
<label class="sharpen-form-label" for="district_role_admin">
School Administrator
<div class="sharpen-text-xs">Can view and manage all school data, and grant school access to others.</div>
</label>
</div>
</div>

<!-- <div class="sharpen-form-group">
<div class="sharpen-form-check">
<input type="checkbox" class="sharpen-form-check-input" name="check_district" id="check_district" />
Expand Down
9 changes: 7 additions & 2 deletions src/prototypes/enterprise-management/staff_show.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,16 @@ <h1 class="sharpen-heading-2xl sharpen-mb-md">
<dt>Name</dt>
<dd class="sharpen-text-lg">Leo Tillens</dd>

<dt>District Role</dt>
<dd>&mdash;</dd>

<dt>School</dt>
<dd><a href="school_show.html">Pierce School</a></dd>
<dd>
<a href="school_show.html">Pierce School</a>
</dd>

<dt>School Role</dt>
<dd>Non-Instructional</dd>
<dd>Non-Instructional Staff</dd>

<dt>Classrooms</dt>
<dd>
Expand Down
9 changes: 7 additions & 2 deletions src/prototypes/enterprise-management/staff_transitions.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,16 @@ <h1 class="sharpen-heading-2xl sharpen-mb-md">
<dt>Name</dt>
<dd class="sharpen-text-lg">Leo Tillens</dd>

<dt>District Role</dt>
<dd>&mdash;</dd>

<dt>School</dt>
<dd><a href="school_show.html">Pierce School</a></dd>
<dd>
<a href="school_show.html">Pierce School</a>
</dd>

<dt>School Role</dt>
<dd>Non-Instructional</dd>
<dd>Non-Instructional Staff</dd>

<dt>Classrooms</dt>
<dd>
Expand Down

0 comments on commit 241a161

Please sign in to comment.