##// END OF EJS Templates
added admin flag to users editing
marcink -
r329:aafd9a98 default
parent child Browse files
Show More
@@ -230,6 +230,7 b' def UserForm(edit=False):'
230 username = All(UnicodeString(strip=True, min=3, not_empty=True), ValidUsername)
230 username = All(UnicodeString(strip=True, min=3, not_empty=True), ValidUsername)
231 if edit:
231 if edit:
232 new_password = All(UnicodeString(strip=True, min=3, not_empty=False), ValidPassword)
232 new_password = All(UnicodeString(strip=True, min=3, not_empty=False), ValidPassword)
233 admin = StringBoolean(if_missing=False)
233 else:
234 else:
234 password = All(UnicodeString(strip=True, min=3, not_empty=False), ValidPassword)
235 password = All(UnicodeString(strip=True, min=3, not_empty=False), ValidPassword)
235 active = StringBoolean(if_missing=False)
236 active = StringBoolean(if_missing=False)
@@ -49,6 +49,11 b''
49 <td>${self.get_form_error('active')}</td>
49 <td>${self.get_form_error('active')}</td>
50 </tr>
50 </tr>
51 <tr>
51 <tr>
52 <td>${_('Admin')}</td>
53 <td>${h.checkbox('admin',value=True)}</td>
54 <td>${self.get_form_error('admin')}</td>
55 </tr>
56 <tr>
52 <td></td>
57 <td></td>
53 <td>${h.submit('save','save')}</td>
58 <td>${h.submit('save','save')}</td>
54 </tr>
59 </tr>
General Comments 0
You need to be logged in to leave comments. Login now