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",
"userManagement": "userManagement",
"userProfile": "userProfile",
"testing": "testview"
"testing": "testview",
"testModalView": "testmodalview"
},
testmodalview: function() {
this.testModalView = new window.testModalView();
this.testModalView.render();
},
testview: function () {
@ -480,13 +486,13 @@
},
userProfile: function () {
if (!this.userProfileView) {
this.userProfileView = new window.userProfileView({
if (!this.userManagementView) {
this.userManagementView = new window.userManagementView({
collection: window.userCollection
});
}
this.userProfileView.render();
this.naviView.selectMenuItem('user-menu');
this.userManagementView.render(true);
this.naviView.selectMenuItem('tools-menu');
}
});

View File

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