You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

16 lines
974 B

<div class="container-fluid mt-2 p-0" id="annotationForm"
data-controller="annotations" data-annotation-id data-doctrine-id="<%= params[:doctrine_id] %>"
data-document-id="<%= params[:document_id] %>" data-jurisprudence-id="<%= params[:jurisprudence_id] %>">
<div class="col-sm-12">
<div class="card-header" style="border-bottom: 1px solid darkred;"> <h4 class="mb-0"> New Annotation </h4> </div>
<div class="card-body">
<%= render(AnnotationFormComponent.new(current_user: current_user, annotation: @annotation,
opts: { document_id: params[:document_id] })) %>
</div>
<div class="card-footer d-flex justify-content-end mt-2">
<button type="button" class="btn btn-success me-2" data-action="click->annotations#save">Save</button>
<a class="btn btn-danger ms-2" href="<%= document_doctrine_path(params[:jurisprudence_id], params[:doctrine_id]) %>">Back</a>
</div>
</div>
</div>
</div>