1
0
Fork 0

added mandatory field

This commit is contained in:
gschwab 2014-04-03 15:24:24 +02:00
parent c9485cb9bc
commit 3c37ce38cd
2 changed files with 16 additions and 6 deletions

View File

@ -31,7 +31,13 @@
"graphManagement/delete/:name": "graphDelete", "graphManagement/delete/:name": "graphDelete",
"userManagement": "userManagement", "userManagement": "userManagement",
"userProfile": "userProfile", "userProfile": "userProfile",
"testing": "testview" "testing": "testview",
"testModalView": "testmodalview"
},
testmodalview: function() {
this.testModalView = new window.testModalView();
this.testModalView.render();
}, },
testview: function () { testview: function () {
@ -480,13 +486,13 @@
}, },
userProfile: function () { userProfile: function () {
if (!this.userProfileView) { if (!this.userManagementView) {
this.userProfileView = new window.userProfileView({ this.userManagementView = new window.userManagementView({
collection: window.userCollection collection: window.userCollection
}); });
} }
this.userProfileView.render(); this.userManagementView.render(true);
this.naviView.selectMenuItem('user-menu'); this.naviView.selectMenuItem('tools-menu');
} }
}); });

View File

@ -3,9 +3,13 @@
<tbody> <tbody>
<% <%
_.each(content, function(row) { _.each(content, function(row) {
var mandatory = '';
if (row.mandatory) {
mandatory = '*';
}
%> %>
<tr> <tr>
<th class="collectionTh"><%=row.label%>:</th> <th class="collectionTh"><%=row.label%><%=mandatory%>:</th>
<th class="collectionTh"> <th class="collectionTh">
<% <%
switch(row.type) { switch(row.type) {