Skip to content

Commit

Permalink
Merge pull request #115 from jrjohnson/92-noneditoverview
Browse files Browse the repository at this point in the history
Structures course overview non-editable the same as editable
  • Loading branch information
saschaben committed Feb 12, 2015
2 parents fdcf809 + 3f92ee9 commit eb3dfa3
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app/styles/components/_global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@ h4 {
}
.inline-label-data-block {
display: inline-block;
}
}
38 changes: 30 additions & 8 deletions app/templates/components/course-overview.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
<div>{{editable-date model=course property='endDate'}}</div>
</div>
<br />
<br />
<label>{{t "general.directors"}}:
<span>
<ul class='removable-list'>
Expand All @@ -40,15 +41,36 @@
searchResults=directorSearchResults
}}
{{else}}
{{moment course.startDate}} - {{moment course.endDate}}
{{course.externalId}} {{course.level}}
<div class="inline-label-data-block">
<label>{{t "general.start"}}:</label>
<div>{{moment course.startDate 'MM/DD/YYYY'}}</div>
</div>
<div class="inline-label-data-block">
<label>{{t "courses.externalId"}}:</label>
<div>{{course.externalId}}</div>
</div>
<div class="inline-label-data-block">
<label>{{t "courses.level"}}:</label>
<div>{{course.level}}</div>
</div>
<div class="inline-label-data-block">
<label>{{t "general.end"}}:</label>
<div>{{moment course.endDate 'MM/DD/YYYY'}}</div>
</div>
<br />
{{t "general.directors"}}:
<span>
{{#each user in sortedDirectors}}
{{user.fullName}},
{{/each}}
</span>
<br />

<div class="inline-label-data-block">
<label>{{t "general.directors"}}:</label>
<div>
<span>
{{#each user in sortedDirectors}}
{{user.fullName}},
{{/each}}
</span>
</div>
</div>


{{/if}}
</div>
Expand Down

0 comments on commit eb3dfa3

Please sign in to comment.