Created
October 23, 2014 04:22
-
-
Save senorgeno/9de66bf93110218f9c14 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
<div class="row"> | |
<dl class="dl-horizontal"> | |
<dt>Primary :</dt> | |
<dd> | |
<%= fixDiscipline(data.Application.Disciplines[0].Title, data.Application.Disciplines[0].SkillLevel) %> | |
</dd> | |
<dt>Secondary :</dt> | |
<dd><%= fixDiscipline(data.Application.Disciplines[1].Title, data.Application.Disciplines[1].SkillLevel) %></dd> | |
<dt>Additional :</dt> | |
<dd><% _.each(data.Application.Disciplines, function (Discipline, index) { %> | |
<% if (index > 1) { %> | |
<%= fixDiscipline(Discipline.Title, Discipline.SkillLevel) %><% if ( Discipline != _.last(data.Application.Disciplines) ) { %>,<% } %> | |
<% } %> | |
<% }); %> | |
<% if(data.Application.OtherPhotography) { %><% if (data.Application.Disciplines.length > 0) { %>, <% } %><%= data.Application.OtherPhotography %><% } %></dd> | |
</dl> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment