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",
|
||||
"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');
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue