Use columns for authentication and submit

This commit is contained in:
Ludovic Stephan 2017-04-01 00:32:09 -03:00
parent 530aafad19
commit 063446efb5
2 changed files with 13 additions and 9 deletions

View file

@ -32,6 +32,7 @@ textarea {
.table { .table {
margin-bottom:0; margin-bottom:0;
border-bottom:1px solid #ddd;
} }
.table { .table {
@ -230,6 +231,9 @@ textarea {
height:28px; height:28px;
margin:3px 0px; margin:3px 0px;
} }
.content-center .auth-form {
margin:15px;
}
/* /*
* Pages formulaires seuls * Pages formulaires seuls

View file

@ -61,17 +61,17 @@
<td class='finished'><input type='checkbox' class='form_control'></td> <td class='finished'><input type='checkbox' class='form_control'></td>
</tr> </tr>
{% endfor %} {% endfor %}
{{ formset.management_form }}
{% if not perms.kfet.add_inventory %}
<td colspan='3'><label for='pwd'>Mot de passe :&nbsp;</label><input type="password" name="KFETPASSWORD"></td>
<td colspan='5'><input type="submit" value="Enregistrer" class="btn btn-primary btn-lg btn-block"></td>
{% else %}
<td colspan='8'><input type="submit" value="Enregistrer" class="btn btn-primary btn-lg btn-block"></td>
{% endif %}
{% csrf_token %}
</form>
</tbody> </tbody>
</table> </table>
{{ formset.management_form }}
{% if not perms.kfet.add_inventory %}
<div class='auth-form form-horizontal'>
{% include "kfet/form_authentication_snippet.html" %}
</div>
{% endif %}
<input type="submit" value="Enregistrer" class="btn btn-primary btn-lg btn-block">
{% csrf_token %}
</form>
</div> </div>
</div> </div>