1
0

fix: standardize save buttons to use app-action-success class

Replace inconsistent `primary` class with `app-action-success` on all
standalone save buttons so they match the green titlebar convention.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-22 16:48:57 +01:00
parent 89a64f6c82
commit 72311ddb97
5 changed files with 7 additions and 7 deletions

View File

@@ -353,7 +353,7 @@ $openOverrideCard = $detailsOpenAll;
<small class="muted"><?php e(t('One option per line. Optional format: key|Label.')); ?></small> <small class="muted"><?php e(t('One option per line. Optional format: key|Label.')); ?></small>
</label> </label>
</div> </div>
<button type="submit" class="primary" form="tenant-custom-field-create-form" <?php e($disabledAttr); ?>> <button type="submit" class="app-action-success" form="tenant-custom-field-create-form" <?php e($disabledAttr); ?>>
<?php e(t('Add custom field')); ?> <?php e(t('Add custom field')); ?>
</button> </button>
</div> </div>
@@ -468,7 +468,7 @@ $openOverrideCard = $detailsOpenAll;
</div> </div>
<hr> <hr>
<div class="grid"> <div class="grid">
<button type="submit" class="primary" form="<?php e($updateFormId); ?>" <?php e($disabledAttr); ?>> <button type="submit" class="app-action-success" form="<?php e($updateFormId); ?>" <?php e($disabledAttr); ?>>
<?php e(t('Save')); ?> <?php e(t('Save')); ?>
</button> </button>
<button type="submit" class="danger" form="<?php e($deleteFormId); ?>" <?php e($disabledAttr); ?>> <button type="submit" class="danger" form="<?php e($deleteFormId); ?>" <?php e($disabledAttr); ?>>

View File

@@ -113,7 +113,7 @@ $hasFavicon = $avatarUuid !== '' && $tenantFaviconService->hasFavicon($avatarUui
<input type="file" name="avatar" accept="image/*"> <input type="file" name="avatar" accept="image/*">
</label> </label>
<div class="grid"> <div class="grid">
<button type="submit" class="primary"> <button type="submit" class="app-action-success">
<?php e(t('Save')); ?> <?php e(t('Save')); ?>
</button> </button>
<?php if ($hasAvatar): ?> <?php if ($hasAvatar): ?>
@@ -152,7 +152,7 @@ $hasFavicon = $avatarUuid !== '' && $tenantFaviconService->hasFavicon($avatarUui
<input type="file" name="favicon" accept="image/png"> <input type="file" name="favicon" accept="image/png">
</label> </label>
<div class="grid"> <div class="grid">
<button type="submit" class="primary"> <button type="submit" class="app-action-success">
<?php e(t('Save')); ?> <?php e(t('Save')); ?>
</button> </button>
<?php if ($hasFavicon): ?> <?php if ($hasFavicon): ?>

View File

@@ -265,7 +265,7 @@ if ($lastLoginAt !== '') {
<input type="file" name="avatar" accept="image/*"> <input type="file" name="avatar" accept="image/*">
</label> </label>
<div class="grid"> <div class="grid">
<button type="submit" class="primary"> <button type="submit" class="app-action-success">
<?php e(t('Save')); ?> <?php e(t('Save')); ?>
</button> </button>
<?php if ($hasAvatar): ?> <?php if ($hasAvatar): ?>

View File

@@ -64,7 +64,7 @@
<i class="bi bi-pencil-square" data-editor-icon aria-hidden="true"></i> <i class="bi bi-pencil-square" data-editor-icon aria-hidden="true"></i>
<?php endif; ?> <?php endif; ?>
</button> </button>
<button type="submit" form="page-editor" class="primary" data-editor-save> <button type="submit" form="page-editor" class="app-action-success" data-editor-save>
<?php e(t('Save')); ?> <?php e(t('Save')); ?>
</button> </button>
</div> </div>

View File

@@ -64,7 +64,7 @@
<i class="bi bi-pencil-square" data-editor-icon aria-hidden="true"></i> <i class="bi bi-pencil-square" data-editor-icon aria-hidden="true"></i>
<?php endif; ?> <?php endif; ?>
</button> </button>
<button type="submit" form="page-editor" class="primary" data-editor-save> <button type="submit" form="page-editor" class="app-action-success" data-editor-save>
<?php e(t('Save')); ?> <?php e(t('Save')); ?>
</button> </button>
</div> </div>