mirror of https://gitee.com/bigwinds/arangodb
added mandatory field
This commit is contained in:
parent
c9485cb9bc
commit
3c37ce38cd
|
@ -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');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue