21 lines
974 B
HTML
21 lines
974 B
HTML
<article ng-controller="categoryCtrlr" ng-init="getCategories()">
|
|
<section class="item stretch border">
|
|
<h3>{{titles.heading}}</h3>
|
|
<p><em>{{titles.subtitle}}</em></p>
|
|
<table>
|
|
<tr>
|
|
<th>{{titles.list}}</th>
|
|
<th>{{titles.last}}</th>
|
|
</tr>
|
|
<tr ng-repeat="cat in categories">
|
|
<td><span class="link" ng-click="setCat(cat.catNo)">{{cat.catName}}</span> <br />
|
|
{{cat.catDescr}} </td>
|
|
<td ng-if="!(cat.lastTopic.topicNo == null)"><span class="link" ng-click="setTopic(cat.lastTopic.topicNo)">{{cat.lastTopic.topicSubject}}</span> {{cat.lastTopic.topicDate}}</td>
|
|
<td ng-if="cat.lastTopic.topicNo == null">{{errors.topic.text}}</td>
|
|
</tr>
|
|
<tr ng-if="errors.catagory.show">
|
|
<td colspan="2">{{errors.catagory.text}}</td>
|
|
</tr>
|
|
</table>
|
|
</section>
|
|
</article> |