Skip to content

Commit

Permalink
Renamed 'reason' into 'category'
Browse files Browse the repository at this point in the history
  • Loading branch information
phorward committed Sep 18, 2024
1 parent f050da8 commit 9049652
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 14 deletions.
2 changes: 1 addition & 1 deletion deploy/html/todo_add_success.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% extends "template.html" %}

{% block content %}
<h1>Deine ToDO wurde erfolgreich angelegt <sl-icon name="emoji-smile-fill"></sl-icon></h1>
<h1>Ihr Problem wurde erfolgreich aufgenommen <sl-icon name="emoji-smile-fill"></sl-icon></h1>

{% endblock %}
2 changes: 0 additions & 2 deletions deploy/modules/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ def index(self, *args, **kwargs):
template = self.render.getEnv().get_template("index.html")
return template.render()

#return conf.main_app.todo.add()

@exposed
def scriptor(self):
raise errors.Redirect("/scriptor/index.html")
19 changes: 12 additions & 7 deletions deploy/skeletons/todo.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,19 @@ class TodoSkel(skeleton.Skeleton):
required=True,
)

reason = SelectBone(descr="Thema", values={
"billing":"Abrechnung",
"question":"Anfrage",
"service":"Service"
},defaultValue="question")
category = SelectBone(
descr="Kategorie",
defaultValue="question",
required=True,
values={
"question": "Anfrage",
"billing": "Abrechnung",
"service": "Service",
},
)

subject = StringBone(
descr="Anliegen",
descr="Thema",
required=True,
)

Expand All @@ -47,7 +52,7 @@ class TodoSkel(skeleton.Skeleton):
"open": "Offen",
"pending": "In Bearbeitung",
"closed": "Geschlossen",
}
},
)

user = UserBone(
Expand Down
2 changes: 1 addition & 1 deletion sources/app/src/components/ToDoList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ provide("listHandler",todoListHandler)
const state = reactive({
loadingEntry: false,
filter: {},
visibleBones:["creationdate","firstname", "lastname","status","reason","subject", "message"]
visibleBones:["creationdate","firstname", "lastname","status","category","subject", "message"]
})
provide("listState", state)
Expand Down
2 changes: 1 addition & 1 deletion sources/app/src/components/table/ToDoListCell.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</sl-select>
</template>

<template v-else-if="boneName === 'reason'">
<template v-else-if="boneName === 'category'">
{{ listHandler.structure[boneName]['values'][skel[boneName]] }}
</template>

Expand Down
4 changes: 2 additions & 2 deletions sources/site/vue/components/TodoAddFormLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
</slot>
</div>

<slot boneName="reason"
:widget="getBoneWidget(formState.structure['reason']['type'])"
<slot boneName="category"
:widget="getBoneWidget(formState.structure['category']['type'])"
label="top"
>
</slot>
Expand Down

0 comments on commit 9049652

Please sign in to comment.