Remove deprecated button and add development warning
Removed the "Create daily report" button as it is no longer needed. Added a warning message indicating the feature is under development in the daily report form and disabled the save button to prevent incomplete functionality usage.
This commit is contained in:
-12
@@ -106,18 +106,6 @@ const product_ids = ref([
|
||||
subtitle="Få et overblik over dagens omsætning, forbrug og bookinger"
|
||||
>
|
||||
<NotFoundFallBackPageWrapper :exists="SessionUser.functions.getDepartmentIdFromUrl() && SessionUser.canAccessDepartment(SessionUser.functions.getDepartmentIdFromUrl())" error="Please select a department, that you have access to. If you believe this is an error, please contact support.">
|
||||
<!-- Create daily report button -->
|
||||
<div class="columns is-flex-wrap-wrap">
|
||||
<div class="column is-12 has-text-right">
|
||||
<button class="button is-primary"
|
||||
@click="SessionUser.objects.department_daily_reports.functions.showCreateObjectFormDepartment(department_id)">
|
||||
<span class="icon">
|
||||
<i class="fas fa-plus"></i>
|
||||
</span>
|
||||
<span>Opret ny dagsopgørelse</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<!-- At the top of the page, we want to have a button that allows the user to create a new daily report -->
|
||||
<div class="columns is-multiline">
|
||||
<!-- Display the daily report product sales -->
|
||||
|
||||
+8
-1
@@ -22,6 +22,13 @@ const onFormSubmit = async (event) => {
|
||||
<div class="columns is-multiline">
|
||||
<div class="column is-12">
|
||||
<h1 class="title">Dagens rapport</h1>
|
||||
<!-- Warning under development -->
|
||||
<div class="message is-info">
|
||||
<div class="message-body">
|
||||
<h2>Under udvikling</h2>
|
||||
<p>Denne funktion er under udvikling og vil snart være tilgængelig.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="column is-6">
|
||||
<div class="field">
|
||||
@@ -42,7 +49,7 @@ const onFormSubmit = async (event) => {
|
||||
</div>
|
||||
<div class="field">
|
||||
<div class="control">
|
||||
<button class="button is-dark is-fullwidth">Gem</button>
|
||||
<button class="button is-dark is-fullwidth" disabled>Gem</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user