Commit fcccbe7d36f927ac12ea80e7cceaaadb952e6bfa

Authored by hitier
1 parent 26778698

New configurable css class '.pdc-form'

app/main/templates/agent_edit.html
... ... @@ -12,7 +12,7 @@
12 12 <!-- Invisible span to define wich ul and a in the navbar are actived -->
13 13 <span id="nav_actived" style="display: none">cds,agent/create</span>
14 14  
15   - <form id="agent_form" class="col-6" action="{{ url_for('main.agent_edit') }}" method="post">
  15 + <form id="agent_form" class="pdc-form" action="{{ url_for('main.agent_edit') }}" method="post">
16 16 {% if agent %}
17 17 <input class="form-control" id="agent_id" name="agent_id" type="hidden" value="{{ agent['agent_id'] }}">
18 18 {% endif %}
... ...
app/templates/bs4-scripts.html
... ... @@ -4,4 +4,7 @@
4 4 $(function () {
5 5 $('[data-toggle="tooltip"]').tooltip()
6 6 })
  7 +
  8 + // Set the bootstrap layout for forms
  9 + $(".pdc-form").addClass("col-12 col-md-10 col-lg-8 col-xl-6")
7 10 </script>
... ...