Fixed user create handling in embedded mode (closes grocy/grocy-desktop#51)

This commit is contained in:
Bernd Bestel 2024-01-15 17:10:36 +01:00
parent 33d5ec44d2
commit 4659f51551
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300
2 changed files with 3 additions and 1 deletions

View File

@ -106,6 +106,7 @@
@endif>
<div class="invalid-feedback">{{ $__t('Passwords do not match') }}</div>
</div>
@endif
@else
<input type="hidden"
name="password"
@ -116,7 +117,6 @@
id="password_confirm"
value="x">
@endif
@endif
@include('components.userfieldsform', array(
'userfields' => $userfields,

View File

@ -25,10 +25,12 @@
</div>
<div class="related-links collapse d-md-flex order-2 width-xs-sm-100 m-1 mt-md-0 mb-md-0 float-right"
id="related-links">
@if(!defined('GROCY_EXTERNALLY_MANAGED_AUTHENTICATION'))
<a class="btn btn-primary responsive-button"
href="{{ $U('/user/new') }}">
{{ $__t('Add') }}
</a>
@endif
<a class="btn btn-outline-secondary m-1 mt-md-0 mb-md-0 float-right"
href="{{ $U('/userfields?entity=users') }}">
{{ $__t('Configure userfields') }}