Add lead workflows, PDF signing, AR projects and photo gallery integration
This commit is contained in:
28
GasTankAR/Views/Leads/Signing/LeadSigningFooterView.swift
Normal file
28
GasTankAR/Views/Leads/Signing/LeadSigningFooterView.swift
Normal file
@ -0,0 +1,28 @@
|
||||
import SwiftUI
|
||||
|
||||
struct LeadSigningFooterView: View {
|
||||
let title: String
|
||||
let canSign: Bool
|
||||
let isSigning: Bool
|
||||
let isLast: Bool
|
||||
let onSign: () -> Void
|
||||
|
||||
var body: some View {
|
||||
VStack(alignment: .leading, spacing: 14) {
|
||||
Text("Mit der Unterschrift bestätigt der Kunde den Inhalt von „\(title)“. Die unterschriebene PDF wird lokal gespeichert.")
|
||||
.font(.caption).foregroundStyle(.secondary)
|
||||
.padding(.horizontal, 16)
|
||||
Button(action: onSign) {
|
||||
HStack {
|
||||
if isSigning { ProgressView().tint(.white) }
|
||||
Text(isLast ? "Unterschreiben und abschließen" : "Unterschreiben und weiter")
|
||||
.font(.headline)
|
||||
}
|
||||
.frame(maxWidth: .infinity).padding(.vertical, 12)
|
||||
}
|
||||
.buttonStyle(.borderedProminent)
|
||||
.buttonBorderShape(.roundedRectangle(radius: 12))
|
||||
.disabled(!canSign)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user