[UPDT] SETTINGS: Save button position uniformity in settings modal
This commit is contained in:
@@ -23,12 +23,11 @@
|
||||
<div class="oh-inner-sidebar-content__body">
|
||||
<div class="oh-input-group">{{form}}</div>
|
||||
</div>
|
||||
<button
|
||||
type="submit"
|
||||
class="oh-btn oh-btn--secondary mt-2 mr-0 oh-btn--w-100-resp"
|
||||
>
|
||||
{% trans "Save Changes" %}
|
||||
</button>
|
||||
<div class="d-flex flex-row-reverse mt-3">
|
||||
<button type="submit" class="oh-btn oh-btn--secondary mt-2 mr-0 pl-4 pr-5 oh-btn--w-100-resp">
|
||||
{% trans "Save" %}
|
||||
</button>
|
||||
</div>
|
||||
<div class="oh-inner-sidebar-content__footer"></div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@@ -15,42 +15,41 @@
|
||||
</div>
|
||||
<div class="oh-modal__dialog-body" id="">
|
||||
{% if form.errors %}
|
||||
<!-- form errors -->
|
||||
<div class="oh-wrapper">
|
||||
<div class="oh-alert-container">
|
||||
{% for error in form.non_field_errors %}
|
||||
<div class="oh-alert oh-alert--animated oh-alert--danger">
|
||||
{{ error }}
|
||||
<!-- form errors -->
|
||||
<div class="oh-wrapper">
|
||||
<div class="oh-alert-container">
|
||||
{% for error in form.non_field_errors %}
|
||||
<div class="oh-alert oh-alert--animated oh-alert--danger">
|
||||
{{ error }}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
<form
|
||||
{% if grace_id %}
|
||||
{% comment %} {% if is_default %} {% endcomment %}
|
||||
hx-post="{% url 'update-grace-time' grace_id %}"
|
||||
{% comment %} {% else %}
|
||||
hx-post="{% url 'update-grace-time' grace_id %}"
|
||||
{% endif %} {% endcomment %}
|
||||
{% else %}
|
||||
{% if is_default %}
|
||||
hx-post="{% url 'create-grace-time' %}?default=True"
|
||||
{% else %}
|
||||
hx-post="{% url 'create-grace-time' %}?default=False"
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
hx-target="#graceTimeModalTarget"
|
||||
method="post"
|
||||
hx-encoding="multipart/form-data">
|
||||
{% csrf_token %}
|
||||
{{form.as_p}}
|
||||
<button
|
||||
type="submit"
|
||||
class="oh-btn oh-btn--secondary mt-2 mr-0 oh-btn--w-100-resp"
|
||||
>
|
||||
{% trans "Save" %}
|
||||
</button>
|
||||
</form>
|
||||
<form
|
||||
{% if grace_id %}
|
||||
{% comment %} {% if is_default %} {% endcomment %}
|
||||
hx-post="{% url 'update-grace-time' grace_id %}"
|
||||
{% comment %} {% else %}
|
||||
hx-post="{% url 'update-grace-time' grace_id %}"
|
||||
{% endif %} {% endcomment %}
|
||||
{% else %}
|
||||
{% if is_default %}
|
||||
hx-post="{% url 'create-grace-time' %}?default=True"
|
||||
{% else %}
|
||||
hx-post="{% url 'create-grace-time' %}?default=False"
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
hx-target="#graceTimeModalTarget"
|
||||
method="post"
|
||||
hx-encoding="multipart/form-data">
|
||||
{% csrf_token %}
|
||||
{{form.as_p}}
|
||||
<div class="d-flex flex-row-reverse mt-3">
|
||||
<button type="submit" class="oh-btn oh-btn--secondary mt-2 mr-0 pl-4 pr-5 oh-btn--w-100-resp">
|
||||
{% trans "Save" %}
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
<div class="oh-input-group mb-2">{{form.name.errors}} {{form.name}}</div>
|
||||
{{form.permissions.errors}}
|
||||
<div id="permTable">{% include "base/auth/permission_table.html" %}</div>
|
||||
<button
|
||||
type="submit"
|
||||
class="oh-btn oh-btn--secondary mt-2 mr-0 oh-btn--w-100-resp"
|
||||
>
|
||||
{% trans "Save Changes" %}
|
||||
</button>
|
||||
|
||||
<div class="d-flex flex-row-reverse">
|
||||
<button type="submit" class="oh-btn oh-btn--secondary mt-2 mr-0 pl-4 pr-5 oh-btn--w-100-resp">
|
||||
{% trans "Save" %}
|
||||
</button>
|
||||
</div>
|
||||
|
||||
@@ -3,11 +3,10 @@
|
||||
{{form.employee.errors}}
|
||||
{{form.employee}}
|
||||
<input type="hidden" name="group" value="{{group_id}}" id="{{group_id}}">
|
||||
<button
|
||||
type="submit"
|
||||
class="oh-btn oh-btn--secondary mt-2 mr-0 oh-btn--w-100-resp"
|
||||
>
|
||||
{% trans "Save Changes" %}
|
||||
</button>
|
||||
<div class="d-flex flex-row-reverse">
|
||||
<button type="submit" class="oh-btn oh-btn--secondary mt-2 mr-0 pl-4 pr-5 oh-btn--w-100-resp">
|
||||
{% trans "Save" %}
|
||||
</button>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
@@ -8,9 +8,8 @@
|
||||
{{form.permission.errors}}
|
||||
<div id="permTable">{% include "base/auth/permission_table.html" %}</div>
|
||||
|
||||
<button
|
||||
type="submit"
|
||||
class="oh-btn oh-btn--secondary mt-2 mr-0 oh-btn--w-100-resp"
|
||||
>
|
||||
{% trans "Save Changes" %}
|
||||
</button>
|
||||
<div class="d-flex flex-row-reverse mt-3">
|
||||
<button type="submit" class="oh-btn oh-btn--secondary mt-2 mr-0 pl-4 pr-5 oh-btn--w-100-resp">
|
||||
{% trans "Save" %}
|
||||
</button>
|
||||
</div>
|
||||
|
||||
@@ -54,12 +54,11 @@
|
||||
{{form.icon}} {{form.icon.errors}}
|
||||
</div>
|
||||
</div>
|
||||
<button
|
||||
type="submit"
|
||||
class="oh-btn oh-btn--secondary mt-2 mr-0 oh-btn--w-100-resp"
|
||||
>
|
||||
{% trans "Save Changes" %}
|
||||
</button>
|
||||
<div class="d-flex flex-row-reverse mt-3">
|
||||
<button type="submit" class="oh-btn oh-btn--secondary mt-2 mr-0 pl-4 pr-5 oh-btn--w-100-resp">
|
||||
{% trans "Save" %}
|
||||
</button>
|
||||
</div>
|
||||
<div class="oh-inner-sidebar-content__footer"></div>
|
||||
</form>
|
||||
|
||||
|
||||
@@ -22,10 +22,9 @@
|
||||
hx-encoding="multipart/form-data">
|
||||
{% csrf_token %}
|
||||
{{form.as_p}}
|
||||
<button
|
||||
type="submit"
|
||||
class="oh-btn oh-btn--secondary mt-2 mr-0 oh-btn--w-100-resp"
|
||||
>
|
||||
<div class="d-flex flex-row-reverse mt-3">
|
||||
<button type="submit" class="oh-btn oh-btn--secondary mt-2 mr-0 pl-4 pr-5 oh-btn--w-100-resp">
|
||||
{% trans "Save" %}
|
||||
</button>
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
@@ -47,9 +47,11 @@
|
||||
{{form.end_time}}
|
||||
</div>
|
||||
</div>
|
||||
<button type='submit' class="oh-btn oh-btn--secondary mt-2 mr-0 oh-btn--w-100-resp">
|
||||
{% trans "Save Changes" %}
|
||||
</button>
|
||||
<div class="d-flex flex-row-reverse mt-3">
|
||||
<button type="submit" class="oh-btn oh-btn--secondary mt-2 mr-0 pl-4 pr-5 oh-btn--w-100-resp">
|
||||
{% trans "Save" %}
|
||||
</button>
|
||||
</div>
|
||||
<div class="oh-inner-sidebar-content__footer">
|
||||
</div>
|
||||
</form>
|
||||
@@ -22,10 +22,9 @@
|
||||
hx-encoding="multipart/form-data">
|
||||
{% csrf_token %}
|
||||
{{form.as_p}}
|
||||
<button
|
||||
type="submit"
|
||||
class="oh-btn oh-btn--secondary mt-2 mr-0 oh-btn--w-100-resp"
|
||||
>
|
||||
{% trans "Save" %}
|
||||
</button>
|
||||
<div class="d-flex flex-row-reverse mt-3">
|
||||
<button type="submit" class="oh-btn oh-btn--secondary mt-2 mr-0 pl-4 pr-5 oh-btn--w-100-resp">
|
||||
{% trans "Save" %}
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
@@ -11,11 +11,10 @@
|
||||
{% csrf_token %}
|
||||
{{form.non_field_errors}}
|
||||
{{form.as_p}}
|
||||
<button
|
||||
type="submit"
|
||||
class="oh-btn oh-btn--secondary mt-2 mr-0 oh-btn--w-100-resp"
|
||||
>
|
||||
{% trans "Save" %}
|
||||
</button>
|
||||
<div class="d-flex flex-row-reverse">
|
||||
<button type="submit" class="oh-btn oh-btn--secondary mt-2 mr-0 pl-4 pr-5 oh-btn--w-100-resp">
|
||||
{% trans "Save" %}
|
||||
</button>
|
||||
</div>
|
||||
<div class="oh-inner-sidebar-content__footer"></div>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user