1
0
Fork 0
mirror of https://github.com/kakwa/ldapcherry synced 2025-07-04 20:37:48 +02:00

add dynamic resizing to align input-group-addon

* add class to identify the 2 form columns
* add a js that calculate max width and resize all input-group-addon
spans
* load the js in the base template
This commit is contained in:
kakwa 2017-04-05 23:24:19 +02:00
parent eb36830845
commit a33a46e8b8
3 changed files with 26 additions and 2 deletions

View file

@ -71,4 +71,5 @@
</div>
</div>
</body>
<script type="text/javascript" src="/static/js/alignforms.js"></script>
</html>

View file

@ -74,10 +74,10 @@ for a in sorted(attributes.keys(), key=lambda attr: attributes[attr]['weight']):
% endfor
</%def>
<div class="row">
<div class="col-md-6 column">
<div class="col-md-6 column lcform-col-1">
${form_col(lc1)}
</div>
<div class="col-md-6 column">
<div class="col-md-6 column lcform-col-2">
${form_col(lc2)}
</div>
</div>