Updated job view and edit

This commit is contained in:
2024-09-11 11:25:51 +02:00
parent 7d328368e9
commit 3899048349
5 changed files with 29 additions and 33 deletions

View File

@@ -1,11 +1,10 @@
<h1 class="text-4xl font-bold">Editing job</h1>
<div id="<%= dom_id @job %>" class="flex flex-row space-x-4 shadow">
<div>
<embed type="application/pdf" src="<%= url_for(@job.pdf) %>" width="800px" height="1000px" class="" />
<embed type="application/pdf" src="<%= url_for(@job.pdf) %>#view=Fit" width="700px" height="900px" class="" />
</div>
<div>
<%= render "form", job: @job %>
<%= link_to "Show this job", operator_job_path(@job), class: "ml-2 rounded-lg py-3 px-5 bg-gray-100 inline-block font-medium" %>
<%= link_to "Back to jobs", operator_jobs_path, class: "ml-2 rounded-lg py-3 px-5 bg-gray-100 inline-block font-medium" %>
<%= link_to "Show this job", operator_job_path(@job), class: "btn" %>
<%= link_to "Back to jobs", operator_jobs_path, class: "btn" %>
</div>
</div>