Change all Cancel/Back buttons from btn-ghost to btn-info

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
shuki
2026-03-04 17:59:18 +02:00
parent 6511715b2b
commit 35eac96f25
6 changed files with 12 additions and 12 deletions

File diff suppressed because one or more lines are too long

View File

@@ -1,2 +1,2 @@
<!-- Tailwind/DaisyUI class safelist for gniza WHM plugin -->
<div class="alert alert-error alert-info alert-success alert-warning badge badge-error badge-sm badge-success badge-warning bg-base-100 bg-base-200 bg-neutral bg-primary/10 border border-base-300 border-base-content/5 breadcrumbs btn btn-error btn-ghost btn-primary btn-secondary btn-sm btn-xs card card-body card-title checkbox checkbox-sm cursor-pointer flex flex-1 flex-col flex-wrap font-bold font-medium font-mono font-semibold gap-1 gap-2 gap-3 hidden inline input input-bordered input-sm items-center items-start mx-auto join join-item link list-disc loading loading-spinner loading-xs max-h-48 max-w-2xl max-w-xs mb-1 mb-2.5 mb-3 mb-4 mb-5 mb-6 ml-2 modal modal-action modal-backdrop modal-box mt-2 mt-3 mt-4 mt-5 my-2 my-4 overflow-x-auto overflow-y-auto p-3 p-4 pt-1 pt-2 pl-5 px-4 py-1 py-3 py-4 radio radio-sm rounded-box rounded-lg select select-bordered select-sm shadow-sm steps tab tab-content table hover tabs tabs-box tabs-lg tab-active text-center text-error text-lg textarea textarea-bordered textarea-sm text-base-content/60 text-neutral-content text-sm text-xl text-xs toggle toggle-sm toggle-success w-11/12 w-44 w-full whitespace-pre-wrap font-sans text-[1.6rem] text-warning badge-info badge-neutral btn-active leading-relaxed inline-flex items-stretch w-fit bg-[#fafafa] px-5 max-h-[360px] m-0 no-underline bg-white p-2.5"></div>
<div class="alert alert-error alert-info alert-success alert-warning badge badge-error badge-sm badge-success badge-warning bg-base-100 bg-base-200 bg-neutral bg-primary/10 border border-base-300 border-base-content/5 breadcrumbs btn btn-error btn-ghost btn-info btn-primary btn-secondary btn-sm btn-xs card card-body card-title checkbox checkbox-sm cursor-pointer flex flex-1 flex-col flex-wrap font-bold font-medium font-mono font-semibold gap-1 gap-2 gap-3 hidden inline input input-bordered input-sm items-center items-start mx-auto join join-item link list-disc loading loading-spinner loading-xs max-h-48 max-w-2xl max-w-xs mb-1 mb-2.5 mb-3 mb-4 mb-5 mb-6 ml-2 modal modal-action modal-backdrop modal-box mt-2 mt-3 mt-4 mt-5 my-2 my-4 overflow-x-auto overflow-y-auto p-3 p-4 pt-1 pt-2 pl-5 px-4 py-1 py-3 py-4 radio radio-sm rounded-box rounded-lg select select-bordered select-sm shadow-sm steps tab tab-content table hover tabs tabs-box tabs-lg tab-active text-center text-error text-lg textarea textarea-bordered textarea-sm text-base-content/60 text-neutral-content text-sm text-xl text-xs toggle toggle-sm toggle-success w-11/12 w-44 w-full whitespace-pre-wrap font-sans text-[1.6rem] text-warning badge-info badge-neutral btn-active leading-relaxed inline-flex items-stretch w-fit bg-[#fafafa] px-5 max-h-[360px] m-0 no-underline bg-white p-2.5 animate-pulse badge-outline"></div>

View File

@@ -637,7 +637,7 @@ sub render_remote_form {
my $btn_label = $is_edit ? 'Save Changes' : 'Create Remote';
print qq{ <button type="submit" class="btn btn-primary btn-sm">$btn_label</button>\n};
print qq{ <button type="button" class="btn btn-secondary btn-sm" id="test-conn-btn" onclick="gnizaTestConnection()">Test Connection</button>\n};
print qq{ <button type="button" class="btn btn-ghost btn-sm" onclick="location.href='remotes.cgi'">Cancel</button>\n};
print qq{ <button type="button" class="btn btn-info btn-sm" onclick="location.href='remotes.cgi'">Cancel</button>\n};
print qq{</div>\n};
print qq{<div id="gniza-alert-area" class="mt-4"></div>\n};

View File

@@ -200,7 +200,7 @@ sub handle_step2 {
unless ($ok) {
my $msg = GnizaWHM::UI::esc($stderr || 'Failed to list snapshots');
print qq{<div class="alert alert-error mb-4">$msg</div>\n};
print qq{<button type="button" class="btn btn-ghost btn-sm" onclick="location.href='restore.cgi'">Back</button>\n};
print qq{<button type="button" class="btn btn-info btn-sm" onclick="location.href='restore.cgi'">Back</button>\n};
print GnizaWHM::UI::page_footer();
Whostmgr::HTMLInterface::footer();
return;
@@ -375,7 +375,7 @@ sub handle_step2 {
print qq{ </div>\n};
print qq{ <div class="modal-action">\n};
print qq{ <button type="button" id="fb-select-btn" class="btn btn-primary btn-sm" disabled onclick="gnizaSelectPath()">Select</button>\n};
print qq{ <button type="button" class="btn btn-ghost btn-sm" onclick="document.getElementById('fb-modal').close()">Cancel</button>\n};
print qq{ <button type="button" class="btn btn-info btn-sm" onclick="document.getElementById('fb-modal').close()">Cancel</button>\n};
print qq{ </div>\n};
print qq{</div>\n};
print qq{<div class="modal-backdrop" onclick="document.getElementById('fb-modal').close()"><button type="button">close</button></div>\n};
@@ -386,10 +386,10 @@ sub handle_step2 {
if (@snapshots) {
print qq{<div class="flex gap-2">\n};
print qq{ <button type="submit" class="btn btn-primary btn-sm">Review &amp; Confirm</button>\n};
print qq{ <button type="button" class="btn btn-ghost btn-sm" onclick="location.href='restore.cgi'">Back</button>\n};
print qq{ <button type="button" class="btn btn-info btn-sm" onclick="location.href='restore.cgi'">Back</button>\n};
print qq{</div>\n};
} else {
print qq{<button type="button" class="btn btn-ghost btn-sm" onclick="location.href='restore.cgi'">Back</button>\n};
print qq{<button type="button" class="btn btn-info btn-sm" onclick="location.href='restore.cgi'">Back</button>\n};
}
print qq{</form>\n};
@@ -848,7 +848,7 @@ sub handle_step3 {
print qq{<div class="flex gap-2">\n};
print qq{ <button type="submit" class="btn btn-error btn-sm" onclick="return confirm('Are you sure you want to restore? This may overwrite existing data.')">Execute Restore</button>\n};
print qq{ <button type="button" class="btn btn-ghost btn-sm" onclick="location.href='restore.cgi'">Cancel</button>\n};
print qq{ <button type="button" class="btn btn-info btn-sm" onclick="location.href='restore.cgi'">Cancel</button>\n};
print qq{</div>\n};
print qq{</form>\n};
@@ -1010,7 +1010,7 @@ sub handle_step4 {
print qq{</div>\n</div>\n};
}
print qq{<button type="button" class="btn btn-ghost btn-sm" onclick="location.href='restore.cgi'">Start New Restore</button>\n};
print qq{<button type="button" class="btn btn-info btn-sm" onclick="location.href='restore.cgi'">Start New Restore</button>\n};
print GnizaWHM::UI::page_footer();
Whostmgr::HTMLInterface::footer();

View File

@@ -640,7 +640,7 @@ sub render_schedule_form {
print qq{<div class="flex gap-2 mt-4">\n};
my $btn_label = $is_edit ? 'Save Changes' : 'Create Schedule';
print qq{ <button type="submit" class="btn btn-primary btn-sm" onclick="return gnizaCollectRemotes()">$btn_label</button>\n};
print qq{ <button type="button" class="btn btn-ghost btn-sm" onclick="location.href='schedules.cgi'">Cancel</button>\n};
print qq{ <button type="button" class="btn btn-info btn-sm" onclick="location.href='schedules.cgi'">Cancel</button>\n};
print qq{</div>\n};
print qq{</form>\n};

View File

@@ -63,7 +63,7 @@ sub handle_step1 {
print qq{<input type="hidden" name="wizard" value="1">\n};
print qq{<div class="flex gap-2 mt-4">\n};
print qq{ <button type="submit" class="btn btn-primary btn-sm" onclick="return gnizaPrepStep2()">Next: Configure Remote</button>\n};
print qq{ <button type="button" class="btn btn-ghost btn-sm" onclick="location.href='index.cgi'">Cancel</button>\n};
print qq{ <button type="button" class="btn btn-info btn-sm" onclick="location.href='index.cgi'">Cancel</button>\n};
print qq{</div>\n};
print qq{</form>\n};
} else {
@@ -89,7 +89,7 @@ sub handle_step1 {
print qq{</div>\n};
print qq{<div class="flex gap-2 mt-4">\n};
print qq{ <button type="submit" class="btn btn-primary btn-sm">Next: Configure Remote</button>\n};
print qq{ <button type="button" class="btn btn-ghost btn-sm" onclick="location.href='index.cgi'">Cancel</button>\n};
print qq{ <button type="button" class="btn btn-info btn-sm" onclick="location.href='index.cgi'">Cancel</button>\n};
print qq{</div>\n};
print qq{</form>\n};
}