Something went wrong. Try again.
Code Review Workflow for IT Programming at BCTC West
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667{% comment %} This field widget is used when creating or editting a Rubric{% endcomment %}
<input class="rubric_create_input" type="hidden" name="{{ widget.name }}" id="{{ widget.attrs.id }}" value="{{ widget.value|default_if_none:"[]" }}" {% include "widgets/attrs.html" %}/><div class="overflow-auto"> <table class="table table-bordered rubric-editing mb-0"> <thead> <tr> <th scope="col" class="cell">Criteria</th> <th scope="col" class="cell" colspan="500">Score</th> </tr> </thead> <tbody>{# This will be filled in through JS #}</tbody> <tfoot> <tr> <td colspan="500"> <button type="button" class="add-row-button btn btn-outline-secondary w-100">Add Row</button> </td> </tr> </tfoot> </table></div>
{# This div is used in JS as a template for creating rows and cells in the table #}<div class="d-none" id="templates"> <table> <tr id="row-template"> <th scope="row" class="cell p-1"> <div class="cell-wrapper w-100 text-center"> <button type="button" class="delete-button w-75 delete-row btn btn-outline-secondary btn-sm"> Delete </button> <div class="cell_part"> <input placeholder="Name" class="cell-input row-name form-control" type="text"/> </div> <div class="cell_part"> <textarea placeholder="Description" class="cell-input row-description form-control" type="text"></textarea> </div> </div> </th> <td class="cell align-middle text-center"> <button type="button" class="nowrap add-cell-button btn btn-outline-secondary text-nowrap">Add Cell </button> </td> </tr> <tr class="d-none"> <td id="cell-template"> <div class="cell-wrapper text-center"> <button type="button" class="w-75 delete-button delete-cell btn btn-outline-secondary btn-sm"> Delete </button> <div class="cell_part"> <input placeholder="Score" class="cell-input cell-score form-control" type="number"/> </div> <div class="cell_part"> <textarea placeholder="Description" class="m-0 cell-input cell-description form-control" type="text"></textarea> </div> </div> </td> </tr> </table></div>