Created
February 11, 2016 22:07
-
-
Save stevie-mayhew/0d2b830302848a79e479 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% loop $Subjects %> | |
<option value="$ID" <% if $ID == $Up.AssessmentSubjectID %> selected<% end_if %>>$Title</option> | |
<% end_loop %> | |
<%-- This has been included to change the scope of the elements so that we can access AssessmentSubjectID easily and we are tired. @todo better code --%> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% loop $Subjects %> | |
<% if $Assessments.Count != 0 %> | |
<% loop $Assessments %> | |
<select id="Assessment-{$ID}" | |
name="Assessment-{$ID}" | |
class="form-control paper-edit-subject-id"> | |
<% include AssessmentSubjectOptions Subjects=$Up.Up.Subjects, AssessmentSubjectID=$SubjectID %> | |
</select> | |
<% end_loop %> | |
<% end_if %> | |
<% end_loop %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment