User:YuviPanda/AssessmentBar/Toolbar.template.html

"> <%= project.name %>:  <% _.each(project.importanceOptions, function(imp) { %>           " <% if(imp == data.importance) { %>selected <% } %>><%= imp %>             <% }) %>  <% _.each(project.classOptions, function(cls) { %>           " <% if(cls == data.class) { %>selected <% } %>><%= cls %>             <% }) %>

<% if(subProjects && subProjects.length) { %> <% _.each(subProjects, function(importance, subProject) { %>               ">                    ×                        <%= subProject %>:                                            <% _.each(project.importanceOptions, function(imp) { %> " <% if(imp == importance) { %>selected <% } %>><%= imp %> <% }) %>           <% }) %>

New Subproject <% } %>

<% _.each(actionItems, function(value, action) { %>       '>            ' <% if(value) { %>checked <% } %> />            ' class='assbar-item-check-label'>                <%= action %>    <% }) %>

Save</a> <a href="https://en.wikipedia.org/wiki/Special:RandomInCategory/<%= project.nextCat %>" class="assbar-item" id='assbar-next'>Next Article &raquo;</a>

<% _.each(subProjects, function(importance, subProject) { %>       <div class='assbar-item' data-project="<%= subProject %>">                <%= subProject %>:             <select id='assbar-importance' class='assbar-importance'>                <% _.each(project.importanceOptions, function(imp) { %> <option value="<%= imp %>" <% if(imp == importance) { %>selected <% } %>><%= imp %> <% }) %>   <% }) %>

<input type="textbox" id="assbar-new-subproject-name" placeholder="Enter project name" />

<select id='assbar-new-subproject-importance'> <% _.each(project.importanceOptions, function(imp) { %>       <option value="<%= imp %>" <% if(imp == "unassessed") { %>selected <% } %>><%= imp %>         <% }) %>