Skip to content

Commit

Permalink
Rework userFolderProps html code to use bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
jhinghaus committed May 17, 2018
1 parent 52de7c4 commit 785b015
Showing 1 changed file with 24 additions and 35 deletions.
59 changes: 24 additions & 35 deletions src/OFS/dtml/userFolderProps.dtml
@@ -1,40 +1,29 @@
<dtml-var manage_page_header>
<dtml-var manage_tabs>

<form action="manage_setUserFolderProperties" method="post">

<table cellspacing="0" cellpadding="2" border="0">

<tr>
<td align="left" valign="center" class="form-label">
Encrypt user passwords
</td>
<td align="left" valign="center" class="form-element">
<dtml-let checked="encrypt_passwords and 'checked' or ' '">
<input type="checkbox" name="encrypt_passwords" &dtml-checked;>
&nbsp; &nbsp;
<input type="submit" name="update_passwords" value="Update existing passwords">
</dtml-let>
</td>
</tr>
<tr>
<td align="left" valign="center" class="form-label">
Role assignment presents search dialog when more users than N (-1 is always, 0 is never).
</td>
<td align="left" valign="center" class="form-element">
<input type=text name="maxlistusers" value="&dtml.missing-maxlistusers;" size=3>
</td>
</tr>

</table>

<p>
<div class="form-element">
<input class="form-element" type="submit" name="submit" value="Save changes" />
</div>
</p>

</form>
<main>

<form action="manage_setUserFolderProperties" method="post" class="zmi-folder zmi-properties">
<div class="form-check">
<dtml-let checked="encrypt_passwords and 'checked' or ' '">
<input type="checkbox" class="form-check-input" name="encrypt_passwords" id="encrypt_passwords" &dtml-checked; />
<label for="encrypt_passwords" class="form-check-label">Encrypt user passwords</label>
</dtml-let>
</div>
<div class="form-check">
<input type="checkbox" class="form-check-input" name="update_passwords" id="update_passwords"/>
<label for="update_passwords" class="form-check-label">Update existing passwords</label>
</div>
<div class="form-group">
<label for="maxlistusers">Role assignment presents search dialog when more users than</label>
<input type=text class="form-control" name="maxlistusers" id="maxlistusers" value="&dtml.missing-maxlistusers;" size=3 />
<small id="maxlistusersHelpInline" class="text-muted">-1 is always, 0 is never</small>
</div>
<div class="zmi-controls">
<input class="btn btn-primary" type="submit" name="submit" value="Save changes" />
</div>
</form>

</main>

<dtml-var manage_page_footer>

0 comments on commit 785b015

Please sign in to comment.