Feat: Blog new article.

This commit is contained in:
2025-08-18 15:57:22 +01:00
parent f434281f6a
commit e370e3a709
34 changed files with 2212 additions and 552 deletions

View File

@@ -157,6 +157,11 @@ class Parameters_Button_Icon(Get_Many_Parameters_Base):
get_inactive_image: bool
ids_image: str
names_image: str
get_all_user: bool
get_inactive_user: bool
ids_user: str
names_user: str
emails_user: str
get_all_button_icon: bool
get_inactive_button_icon: bool
ids_button_icon: str
@@ -168,7 +173,7 @@ class Parameters_Button_Icon(Get_Many_Parameters_Base):
require_any_non_id_search_filters_met: bool
@classmethod
def get_default(cls):
def get_default(cls, id_user_session):
return cls(
get_all_file_type = True
, get_inactive_file_type = False
@@ -178,6 +183,11 @@ class Parameters_Button_Icon(Get_Many_Parameters_Base):
, get_inactive_image = False
, ids_image = ''
, names_image = ''
, get_all_user = False
, get_inactive_user = False
, ids_user = str(id_user_session)
, names_user = ''
, emails_user = ''
, get_all_button_icon = True
, get_inactive_button_icon = False
, ids_button_icon = ''
@@ -200,6 +210,11 @@ class Parameters_Button_Icon(Get_Many_Parameters_Base):
, get_inactive_image = json.get('a_get_inactive_image', False)
, ids_image = json.get('a_ids_image', '')
, names_image = json.get('a_names_image', '')
, get_all_user = json.get('a_get_all_user', False)
, get_inactive_user = json.get('a_get_inactive_user', False)
, ids_user = json.get('a_ids_user', '')
, names_user = json.get('a_names_user', '')
, emails_user = json.get('a_emails_user', '')
, get_all_button_icon = json.get('a_get_all_button_icon', False)
, get_inactive_button_icon = json.get('a_get_inactive_button_icon', False)
, ids_button_icon = json.get('a_ids_button_icon', '')
@@ -212,11 +227,11 @@ class Parameters_Button_Icon(Get_Many_Parameters_Base):
)
@classmethod
def from_form_filters_button_icon(cls, form):
def from_form_filters_button_icon(cls, form, id_user_session):
av.val_instance(form, 'form', 'Parameters_Button_Icon.from_form_filters_button_icon', Filters_Button_Icon)
has_filter_search_text = not (form.search.data == '' or form.search.data is None)
active_only = av.input_bool(form.active_only.data, "active", "Parameters_Button_Icon.from_form_filters_button_icon")
filters = cls.get_default()
filters = cls.get_default(id_user_session)
filters.get_all_file_type = True
filters.get_inactive_file_type = not active_only
filters.ids_file_type = ''
@@ -242,6 +257,11 @@ class Parameters_Button_Icon(Get_Many_Parameters_Base):
, 'a_get_inactive_image': self.get_inactive_image
, 'a_ids_image': self.ids_image
, 'a_names_image': self.names_image
, 'a_get_all_user': self.get_all_user
, 'a_get_inactive_user': self.get_inactive_user
, 'a_ids_user': self.ids_user
, 'a_names_user': self.names_user
, 'a_emails_user': self.emails_user
, 'a_get_all_button_icon': self.get_all_button_icon
, 'a_get_inactive_button_icon': self.get_inactive_button_icon
, 'a_ids_button_icon': self.ids_button_icon