Feat: New blog article page.

This commit is contained in:
2025-08-16 16:01:06 +01:00
parent b1d34d951a
commit 39ec0cb7e8
58 changed files with 3504 additions and 2310 deletions

View File

@@ -49,8 +49,10 @@ class Model_View_Dog_Command_Button_Link(Model_View_Dog_Base):
self._title = 'Command Button Link'
self.form_filters = form_filters_old
datastore = DataStore_Dog()
user_session = datastore.get_user_session()
parameters_filter_command = Parameters_Command.get_default()
parameters_filter_command = Parameters_Command.get_default(user_session.id_user)
self.filter_command_categories, self.filter_commands, errors = datastore.get_many_command(parameters_filter_command)
if len(self.filter_command_categories) > 0:
self.form_filters.id_command_category.choices += [(str(command_category.id_command_category), command_category.name) for command_category in self.filter_command_categories]
@@ -61,7 +63,7 @@ class Model_View_Dog_Command_Button_Link(Model_View_Dog_Base):
Helper_App.console_log(f'sorted filter commands: {sorted_filter_commands}')
self.form_filters.id_command.choices += [(str(command.id_command), command.name) for command in sorted_filter_commands] # .sort(key = lambda command: command[1])
parameters_filter_button_shape = Parameters_Button_Shape.get_default()
parameters_filter_button_shape = Parameters_Button_Shape.get_default(user_session.id_user)
self.filter_button_shapes, errors = datastore.get_many_button_shape(parameters_filter_button_shape)
if len(self.filter_button_shapes) > 0:
self.form_filters.id_button_shape.choices += [(str(button_shape.id_button_shape), button_shape.name) for button_shape in self.filter_button_shapes]
@@ -76,7 +78,7 @@ class Model_View_Dog_Command_Button_Link(Model_View_Dog_Base):
if len(self.filter_button_icons) > 0:
self.form_filters.id_button_icon.choices += [(str(button_icon.id_button_icon), button_icon.name) for button_icon in self.filter_button_icons]
parameters_filter_location = Parameters_Location.get_default()
parameters_filter_location = Parameters_Location.get_default(user_session.id_user)
self.filter_locations, errors = datastore.get_many_location(parameters_filter_location)
if len(self.filter_locations) > 0:
self.form_filters.id_location.choices += [(str(location.id_location), location.name) for location in self.filter_locations]