mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-07-11 23:32:56 +02:00
feat: guess what, more changes
This commit is contained in:
@@ -5,7 +5,8 @@
|
||||
{% block title %}{% translate 'Bulk Editing' %}{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<p>{% trans 'Editing' %} {{ transactions|length }} {% trans 'transactions' %}</p>
|
||||
<p>{% trans 'Editing' %} {{ transactions|length }} {% trans 'transactions' %}
|
||||
<hr class="hr my-3" />
|
||||
<div class="editing-transactions">
|
||||
{% for transaction in transactions %}
|
||||
<input type="hidden" name="transactions" value="{{ transaction.id }}"/>
|
||||
|
||||
@@ -85,7 +85,7 @@
|
||||
title="{% translate 'Order by' %}">
|
||||
<i class="fa-solid fa-sort fa-fw"></i>
|
||||
</button>
|
||||
<ul class="dropdown-menu dropdown-menu-end menu w-max relative">
|
||||
<ul class="dropdown-menu dropdown-menu-end menu">
|
||||
<li>
|
||||
<button class="{% if order == 'default' %}menu-active{% endif %}" type="button"
|
||||
_="on click remove .menu-active from <li > button/> in the closest <ul/>
|
||||
@@ -118,7 +118,7 @@
|
||||
</div>
|
||||
|
||||
{# Filter transactions form #}
|
||||
<div class="bs collapse overflow-visible" id="collapse-filter" hx-preserve>
|
||||
<div class="bs collapse z-1" id="collapse-filter" hx-preserve>
|
||||
<div class="card card-body bg-base-200 mt-2">
|
||||
<div class="text-right">
|
||||
<button class="btn btn-outline btn-error btn-sm w-fit"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{% load i18n %}
|
||||
{% load crispy_forms_field %}
|
||||
|
||||
<div class="form-group mb-3">
|
||||
<div class="mb-3">
|
||||
<div class="join w-full " role="group" aria-label="{{ field.label }}">
|
||||
<input type="radio" class="join-item btn btn-warning btn-outline w-1/2" name="{{ field.name }}" id="{{ field.id_for_label }}_false"
|
||||
value="false" aria-label="{% trans 'Projected' %}" {% if not field.value %}checked{% endif %}>
|
||||
|
||||
@@ -1,19 +1,19 @@
|
||||
{% load i18n %}
|
||||
{% load crispy_forms_field %}
|
||||
|
||||
<div class="form-group mb-3">
|
||||
<div class="mb-3">
|
||||
<div class="join w-full" role="group" aria-label="{{ field.label }}">
|
||||
<input type="radio"
|
||||
class="join-item btn btn-neutral {% if field.errors %}input-error{% endif %}"
|
||||
class="join-item btn btn-neutral btn-outline w-1/3 {% if field.errors %}input-error{% endif %}"
|
||||
name="{{ field.html_name }}"
|
||||
id="{{ field.html_name }}_none_tr"
|
||||
value=""
|
||||
aria-label="{% trans 'Unchanged' %}"
|
||||
{% if field.value is None %}checked{% endif %}>
|
||||
{% if not field.value %}checked{% endif %}>
|
||||
|
||||
{% for choice in field.field.choices %}
|
||||
<input type="radio"
|
||||
class="join-item btn {% if forloop.first %}btn-success{% elif forloop.last %}btn-error{% else %}btn-primary{% endif %} {% if field.errors %}input-error{% endif %}"
|
||||
class="join-item btn btn-outline w-1/3 {% if forloop.first %}btn-success{% elif forloop.last %}btn-error{% else %}btn-primary{% endif %} {% if field.errors %}input-error{% endif %}"
|
||||
name="{{ field.html_name }}"
|
||||
id="{{ field.html_name }}_{{ forloop.counter }}_tr"
|
||||
value="{{ choice.0 }}"
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
{% load i18n %}
|
||||
{% load crispy_forms_field %}
|
||||
|
||||
<div class="form-group mb-3">
|
||||
<div class="mb-3">
|
||||
<div class="join w-full" role="group" aria-label="{{ field.label }}">
|
||||
<input type="radio" class="join-item btn btn-neutral" name="{{ field.name }}" id="{{ field.id_for_label }}_null"
|
||||
value="" aria-label="{% trans 'Unchanged' %}" {% if field.value is None %}checked{% endif %}>
|
||||
<input type="radio" class="join-item btn btn-neutral btn-outline w-1/3" name="{{ field.name }}" id="{{ field.id_for_label }}_null"
|
||||
value="" aria-label="{% trans 'Unchanged' %}" {% if not field.value %}checked{% endif %}>
|
||||
|
||||
<input type="radio" class="join-item btn btn-primary" name="{{ field.name }}" id="{{ field.id_for_label }}_false"
|
||||
<input type="radio" class="join-item btn btn-primary btn-outline w-1/3" name="{{ field.name }}" id="{{ field.id_for_label }}_false"
|
||||
value="false" aria-label="{% trans 'Projected' %}" {% if field.value is False %}checked{% endif %}">
|
||||
|
||||
<input type="radio" class="join-item btn btn-success" name="{{ field.name }}" id="{{ field.id_for_label }}_true"
|
||||
<input type="radio" class="join-item btn btn-success btn-outline w-1/3" name="{{ field.name }}" id="{{ field.id_for_label }}_true"
|
||||
value="true" aria-label="{% trans 'Paid' %}" {% if field.value is True %}checked{% endif %}>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user