Learner profile page.

TNL-1502
This commit is contained in:
muzaffaryousaf
2015-03-26 20:57:20 +05:00
committed by Andy Armstrong
parent 229a37b983
commit 4f97cd7a04
31 changed files with 2178 additions and 78 deletions

View File

@@ -1,16 +1,26 @@
<label class="u-field-title" for="u-field-select-<%- id %>">
<%- gettext(title) %>
</label>
<% if (title) { %>
<label class="u-field-title" for="u-field-select-<%- id %>">
<%- gettext(title) %>
</label>
<% } %>
<% if (iconName) { %>
<i class="u-field-icon icon fa <%- iconName %> fa-fw" area-hidden="true" ></i>
<% } %>
<span class="u-field-value">
<select name="select" id="u-field-select-<%- id %>" aria-describedby="u-field-message-<%- id %>">
<% if (!required) { %>
<option value=""></option>
<% } %>
<% _.each(selectOptions, function(selectOption) { %>
<option value="<%- selectOption[0] %>"><%- selectOption[1] %></option>
<% }); %>
</select>
<% if (mode === 'edit') { %>
<select name="select" id="u-field-select-<%- id %>" aria-describedby="u-field-message-<%- id %>">
<% if (!required) { %>
<option value=""></option>
<% } %>
<% _.each(selectOptions, function(selectOption) { %>
<option value="<%- selectOption[0] %>"><%- selectOption[1] %></option>
<% }); %>
</select>
<% } %>
</span>
<span class="u-field-message" id="u-field-message-<%- id %>">
<%- gettext(message) %>
</span>