feat: add legal document acceptance and standard project files generation
Implement legal document acceptance tracking requiring users to accept terms of service and privacy policy before continuing to use the system. Add automatic generation of standard project files (LICENSE, README.md, RULES.md, cookies.html, termos-de-uso.html, privacidade.html) with download functionality. Enhance prompt building with detailed Portuguese instructions and system requirements. Update seeders with comprehensive legal content and standard files configuration for all prompt templates.
This commit is contained in:
@@ -23,6 +23,19 @@
|
||||
<div class="legal-content">
|
||||
{!! nl2br(e($document->content)) !!}
|
||||
</div>
|
||||
@if($pendingAcceptance ?? false)
|
||||
<hr>
|
||||
<div class="alert alert-info">
|
||||
<i class="bi bi-info-circle me-2"></i>
|
||||
Para continuar utilizando o sistema, você precisa aceitar esta versão dos {{ $document->type === 'terms-of-service' ? 'Termos de Uso' : 'Política de Privacidade' }}.
|
||||
</div>
|
||||
<form method="POST" action="{{ route('legal.document.accept', $document->type) }}">
|
||||
@csrf
|
||||
<button type="submit" class="btn btn-primary btn-lg w-100">
|
||||
<i class="bi bi-check-circle me-2"></i> Aceitar {{ $document->type === 'terms-of-service' ? 'Termos de Uso' : 'Política de Privacidade' }}
|
||||
</button>
|
||||
</form>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
Reference in New Issue
Block a user